TRTCSwitchRoomConfig class
Room switch parameter
Constructors
- TRTCSwitchRoomConfig({required String userSig, int roomId = 0, String privateMapKey = "", String strRoomId = ""})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- privateMapKey ↔ String
-
- Field description: room signature, which is optional. If you want only users with the specified
userIds
to enter a room, you need to useprivateMapKey
to restrict the permission.- Recommended value: we recommend you use this parameter only if you have high security requirements. For more information, please see Enabling Advanced Permission Control.
getter/setter pair - Field description: room signature, which is optional. If you want only users with the specified
- roomId ↔ int
-
- Field description: numeric room ID. Users (userId) in the same room can see one another and make audio/video calls.
- Recommended value: value range: 1–4294967294.
- Note:
- roomId and strRoomId are mutually exclusive. If you decide to use strRoomId , then roomId should be entered as 0. If both are entered, roomId will be used.
- do not mix roomId and strRoomId , because they are not interchangeable. For example, the number 123 and the string 123 are two completely different rooms in TRTC.
getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- strRoomId ↔ String
-
- Field description: string-type room ID. Users (userId) in the same room can see one another and make audio/video calls.
- Recommended value: the length limit is 64 bytes. The following 89 characters are supported: letters (a–z and A–Z), digits (0–9), space, "!", "#", "$", "%", "&", "(", ")", "+", "-", ":", ";", "<", "=", ".", ">", "?", "@", "[", "]", "^", "_", "{", "}", "|", "~", and ",".
- Either
roomId
orstrRoomId
must be entered. If you decide to usestrRoomId
, thenroomId
should be entered as 0. If both are entered,roomId
will prevail. Please note that when the samesdkAppId
is used for interconnection, please be sure to use the same room ID type to avoid affecting the interconnection.getter/setter pair - userSig ↔ String
-
- Field description: user signature, which is required. It is the authentication signature corresponding to the current userId and acts as the login password for Tencent Cloud services.
- Recommended value: for the calculation method, please see UserSig.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited