Rate this page:

VIUser

Interface that represents user information. Voximplant users are created via the Voximplant control panel or HTTP API.

Props

conversationList

Copy URL
@property (strong, nullable, readonly, nonatomic) 

NSArray<NSString *> *

conversationList

An array of UUIDs of the conversations that the user currently belongs to.

Can be empty array if user doesn't belong to any conversation or nil if this property is accessed not for the current user.

Returns

  • type:

    NSArray<NSString *> *

customData

Copy URL
@property (strong, readonly, nonatomic) 

NSDictionary<NSString *, NSObject *> *

customData

The specified user's public custom data available to all users.

A custom data can be set via the [VIMessenger editUserWithCustomData:privateCustomData:completion:] method.

Returns

  • type:

    NSDictionary<NSString *, NSObject *> *

deleted

Copy URL
@property (assign, readonly, nonatomic, getter = isDeleted) 

BOOL

deleted

A Boolean value that determines whether the user is deleted or not.

Returns

  • type:

    BOOL

displayName

Copy URL
@property (strong, readonly, nonatomic) 

NSString *

displayName

The user's display name which is specified during user creation via the Voximplant control panel or HTTP API.

The display name is available to all users.

Returns

  • type:

    NSString *

imId

Copy URL
@property (strong, readonly, nonatomic) 

NSNumber *

imId

The IM unique id that is used to identify users in events and specify in user-related methods.

Returns

  • type:

    NSNumber *

leaveConversationList

Copy URL
@property (strong, nullable, readonly, nonatomic) 

NSArray<NSString *> *

leaveConversationList

An array of UUIDs for the conversations that:

  • the user belonged to, but currently is not participating in
  • are not removed

Can be empty array if user didn't leave any conversation or nil if this property is accessed not for the current user.

Returns

  • type:

    NSArray<NSString *> *

name

Copy URL
@property (strong, readonly, nonatomic) 

NSString *

name

The Voximplant user identifier, for example 'username@appname.accname'.

Returns

  • type:

    NSString *

notifications

Copy URL
@property (strong, nullable, readonly, nonatomic) 

NSArray<VIMessengerNotification> *

notifications

An array of messenger notifications that the current user is subscribed to.

Note that if the property is accessed not for the current user, the result will be nil.

Returns

privateCustomData

Copy URL
@property (strong, nullable, readonly, nonatomic) 

NSDictionary<NSString *, NSObject *> *

privateCustomData

A private custom data available only to the current user.

Value of this property is nil if this property is accessed not for the current user.

Returns

  • type:

    NSDictionary<NSString *, NSObject *> *