NIMUser Class Reference
| Inherits from | NSObject |
|---|---|
| Declared in | NIMUser.h |
userId
User ID
@property (nullable, nonatomic, copy) NSString *userIdDiscussion
User ID
Declared In
NIMUser.h
alias
Alias that contains up to 128 characters
@property (nullable, nonatomic, copy) NSString *aliasDiscussion
Alias that contains up to 128 characters
Declared In
NIMUser.h
ext
Extension field
@property (nullable, nonatomic, copy) NSString *extDiscussion
Extension field
Declared In
NIMUser.h
serverExt
Server extension field
@property (nullable, nonatomic, copy, readonly) NSString *serverExtDiscussion
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 *userInfoDiscussion
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)notifyForNewMsgReturn Value
result
Discussion
Enable or disable alerts for new messages
Declared In
NIMUser.h
– isInMyBlackList
Check if the user is in the blacklist
- (BOOL)isInMyBlackListReturn Value
result
Discussion
Check if the user is in the blacklist
Declared In
NIMUser.h