ZegoUser

User object.

Declared in ZegoExpressDefines.h

Includes

Property Lists

  • userID - User ID, a string with a maximum length of 64 bytes or less. Only support numbers, English characters and '~', '!', '@', '#', '$', '', '^', '&', '*', '(', ')', '_', '+', '=', '-', ', ';', '’', ',', '.', '<', '>', '/', ''.
  • userName - User Name, a string with a maximum length of 256 bytes or less.

Public-Static-Func Lists

Public-Func Lists

Property Docs

userID

User ID, a string with a maximum length of 64 bytes or less. Only support numbers, English characters and '~', '!', '@', '#', '$', '', '^', '&', '*', '(', ')', '_', '+', '=', '-', ', ';', '’', ',', '.', '<', '>', '/', ''.

userName

User Name, a string with a maximum length of 256 bytes or less.

Public-Static-Func Docs

userWithUserID:

+ (instancetype)userWithUserID:(NSString *) userID;

Create a ZegoUser object.

userWithUserID:userName:

+ (instancetype)userWithUserID:(NSString *) userID userName:(NSString *) userName;

Create a ZegoUser object.

Public-Func Docs

initWithUserID:

- (instancetype)initWithUserID:(NSString *) userID;

Create a ZegoUser object.

initWithUserID:userName:

- (instancetype)initWithUserID:(NSString *) userID userName:(NSString *) userName;

Create a ZegoUser object.