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.
V2TIMFriendAddApplication

Public Member Functions

 V2TIMFriendAddApplication (String userID)
 
void setUserID (String userID)
 
void setFriendRemark (String remark)
 
void setFriendGroup (String friendGroup)
 
void setAddWording (String addWording)
 
void setAddSource (String addSource)
 
void setAddType (int addType)
 

Constructor & Destructor Documentation

◆ V2TIMFriendAddApplication()

V2TIMFriendAddApplication ( String  userID)
inline

Member Function Documentation

◆ setUserID()

void setUserID ( String  userID)
inline

Set the userID of a friend to be added

Parameters
userIDUser's userID

◆ setFriendRemark()

void setFriendRemark ( String  remark)
inline

Preset remarks for a friend

Parameters
remarkRemarks

◆ setFriendGroup()

void setFriendGroup ( String  friendGroup)
inline

Preset a friend list

Parameters
friendGroupUser's friend list name

◆ setAddWording()

void setAddWording ( String  addWording)
inline

Set remarks for a friend request

Parameters
addWordingRemarks for the friend request

◆ setAddSource()

void setAddSource ( String  addSource)
inline

Set the friend request source

Parameters
addSourceSource description

◆ setAddType()

void setAddType ( int  addType)
inline

Set the friend request type (two-way by default)

  • V2TIMFriendInfo.V2TIM_FRIEND_TYPE_SINGLE: one-way
  • V2TIMFriendInfo.V2TIM_FRIEND_TYPE_BOTH: two-way
    Parameters
    addType