NIMUser Class Reference

Inherits from NSObject
Declared in NIMUser.h

Overview

User

  userId

User ID

@property (nullable, nonatomic, copy) NSString *userId

Discussion

User ID

Declared In

NIMUser.h

  alias

Alias that contains up to 128 characters

@property (nullable, nonatomic, copy) NSString *alias

Discussion

Alias that contains up to 128 characters

Declared In

NIMUser.h

  ext

Extension field

@property (nullable, nonatomic, copy) NSString *ext

Discussion

Extension field

Declared In

NIMUser.h

  serverExt

Server extension field

@property (nullable, nonatomic, copy, readonly) NSString *serverExt

Discussion

Server extension field

This field can only be edited on the server and can only be read by clients

Declared In

NIMUser.h

  userInfo

User profile, only valid when the CommsEase hosting service is used User profile is not guaranteed to be updated in real time except for the current user. The profiles of other users can be updated when: 1. Call - (void)fetchUserInfos:completion: to update users 2. messages are received from the user 3. The app is restarted and friends profiles are synced

@property (nullable, nonatomic, strong, readonly) NIMUserInfo *userInfo

Discussion

User profile, only valid when the CommsEase hosting service is used User profile is not guaranteed to be updated in real time except for the current user. The profiles of other users can be updated when: 1. Call - (void)fetchUserInfos:completion: to update users 2. messages are received from the user 3. The app is restarted and friends profiles are synced

Declared In

NIMUser.h

– notifyForNewMsg

Enable or disable alerts for new messages

- (BOOL)notifyForNewMsg

Return Value

result

Discussion

Enable or disable alerts for new messages

Declared In

NIMUser.h

– isInMyBlackList

Check if the user is in the blacklist

- (BOOL)isInMyBlackList

Return Value

result

Discussion

Check if the user is in the blacklist

Declared In

NIMUser.h