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

Public Member Functions

void setUserID (String userID)
 
void setRole (int role)
 

Member Function Documentation

◆ setUserID()

void setUserID ( String  userID)
inline

Operated member

Parameters
userIDMember's userID

◆ setRole()

void setRole ( int  role)
inline

Member type

  1. If role is left empty or set to V2TIMGroupMemberFullInfo.V2TIM_GROUP_MEMBER_UNDEFINED, a user becomes a group member when the user enters the group by default.
  2. Work groups do not allow role to be set as the admin.
  3. All groups do not allow role to be set as the group owner.
Parameters
role