setGroupMemberInfo

Introduction

Set and modify the profile and information of a a specific group member.

This method is works for group owner and group administrators.

nameCardBar and customInfo can be modified.

Parameter details

Parameter name Parameter type Required Platform Description
groupID String yes All The group ID.
userID String yes All The target user ID.
nameCard String no All The nameCard to be set and modified.
customInfo Map< String, String > no All The custom attributes to be set and modified.

Returned template

V2TimCallback

{
    code : int
    desc : String
}

Return value details

name type description
code int Request result: Error codes. 0 means success.
desc String The description of the error. It will be empty if success.

Code example


    V2TimCallback setGroupMemberInfoRes = await TencentImSDKPlugin.v2TIMManager
        .getGroupManager()
        .setGroupMemberInfo(
          groupID: "groupID",
          userID: "userID",
          nameCard: "",
          customInfo: {"custom":"custom"}
          );
    if (setGroupMemberInfoRes.code == 0) {

    }

results matching ""

    No results matching ""