Package im.zego.zegoexpress.entity
Class ZegoRoomConfig
- java.lang.Object
-
- im.zego.zegoexpress.entity.ZegoRoomConfig
-
public class ZegoRoomConfig extends java.lang.Object
Advanced room configuration. Configure maximum number of users in the room and authentication token, etc.
-
-
Field Summary
Fields Modifier and Type Field Description int
capabilityNegotiationTypes
The bitmask marker for capability negotiation, refer to enum [ZegoRoomCapabilityNegotiationTypesBitMask], when this param converted to binary, 0b01 that means 1 << 0 for enable the capability negotiation of all user in the room, 0x10 that means 1 << 1 for enable the capability negotiation of publisher in the room.boolean
isUserStatusNotify
Whether to enable the user in and out of the room callback notification [onRoomUserUpdate], the default is off.int
maxMemberCount
The maximum number of users in the room, Passing 0 means unlimited, the default is unlimited.java.lang.String
token
The token issued by the developer's business server is used to ensure security.
-
Constructor Summary
Constructors Constructor Description ZegoRoomConfig()
-
-
-
Field Detail
-
maxMemberCount
public int maxMemberCount
The maximum number of users in the room, Passing 0 means unlimited, the default is unlimited.
-
isUserStatusNotify
public boolean isUserStatusNotify
Whether to enable the user in and out of the room callback notification [onRoomUserUpdate], the default is off. If developers need to use ZEGO Room user notifications, make sure that each user who login sets this flag to true
-
token
public java.lang.String token
The token issued by the developer's business server is used to ensure security. For the generation rules, please refer to [Using Token Authentication](https://doc-zh.zego.im/article/10360), the default is an empty string, that is, no authentication. In versions 2.17.0 and above, if appSign is not passed in when calling the [createEngine] API to create an engine, or if appSign is empty, this parameter must be set for authentication when logging in to a room.
-
capabilityNegotiationTypes
public int capabilityNegotiationTypes
The bitmask marker for capability negotiation, refer to enum [ZegoRoomCapabilityNegotiationTypesBitMask], when this param converted to binary, 0b01 that means 1 << 0 for enable the capability negotiation of all user in the room, 0x10 that means 1 << 1 for enable the capability negotiation of publisher in the room. The masks can be combined to allow different types of capability negotiation.
-
-