IMSDK
IM features a comprehensive suite of solutions including global access, one-to-one chat, group chat, message push, profile and relationship chain hosting, and account authentication. It also provides complete app access and backend management APIs.
V2TIMFriendInfo

Properties

NSString * userID
 
NSString * friendRemark
 
uint64_t friendAddTime
 
NSDictionary< NSString *, NSData * > * friendCustomInfo
 
NSArray * friendGroups
 
V2TIMUserFullInfo * userFullInfo
 

Property Documentation

◆ userID

- (NSString*) userID
readwritenonatomicstrong

User's userID.

◆ friendRemark

- (NSString*) friendRemark
readwritenonatomicstrong

Friend remarks

Attention
  • The maximum length of friend remarks cannot exceed 96 bytes.
  • For field descriptions, see Console

◆ friendAddTime

- (uint64_t) friendAddTime
readnonatomicassign

UTC timestamp of adding friend.

◆ friendCustomInfo

- (NSDictionary<NSString *,NSData *>*) friendCustomInfo
readwritenonatomicstrong

Custom friend fields First, you need to set the custom friend field in the console (Feature Configuration -> Custom Friend Field). Then you need to call this API to set the custom friend field. The value of key does not need the Tag_SNS_Custom_ prefix.

◆ friendGroups

- (NSArray*) friendGroups
readnonatomicstrong

Groups to which a friend belongs

Attention
  • A maximum of 32 lists are supported.
  • The list name cannot be empty.
  • The length of a list name cannot exceed 30 bytes
  • The same friend can belong to multiple different lists.
  • For field descriptions, see Console

◆ userFullInfo

- (V2TIMUserFullInfo*) userFullInfo
readnonatomicstrong

User profile of a friend.