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.
V2TIMFriendInfoabstract
Swift - V2TIMFriendInfo
Swift

Class V2TIMFriend​Info

public class V2TIMFriendInfo  

Definition of V2TIMFriendInfo

Initializers

init()

public init()  

Properties

description

public var description: String  

user​ID

public var userID: String   

User's userID

friend​Remark

public var friendRemark: String?  

Friend remarks

  • The maximum length of friend remarks cannot exceed 96 bytes.

  • For field descriptions, see here

friend​Add​Time

public var friendAddTime: UInt  

Get the UTC timestamp when a friend was added

friend​Custom​Info

public var friendCustomInfo: Dictionary<String, Data>?  

Custom friend fields

You need to configure custom fields in the console first (Configuration -> Custom Friend Fields). Then you can call this API to set the custom fields. You don't need to add the Tag_SNS_Custom_ prefix for keys.

friend​Groups

public var friendGroups: Array<String>  

Groups to which a friend belongs

  • A maximum of 32 lists are supported.

  • The list name cannot be empty.

  • The length of a list name cannot exceed 30 bytes

  • One user can be added to multiple friend lists.

  • For field descriptions, see here

user​Full​Info

public var userFullInfo: V2TIMUserFullInfo  

User profile of a friend