deleteGroupAttributes

Introduction

Delete some attributes from the group.

It will delete all attributes, if the keys is null.

Only works with AVChatRoom temporarily.

initGroupAttributes, setGroupAttributes, deleteGroupAttributes methods calculate request rate merged: SDK limit rate at 5 seconds 10 times, and the 8511 error code is returned after over limit; The server limit rate at 5 times in a second, and 10049 error code is returned after exceeding the limit.

Parameter details

Parameter name Parameter type Required Platform Description
groupID String yes All The group ID.
keys List< String > yes All The keys of the attributes to be deleted.

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 deleteGroupAttributesRes = await TencentImSDKPlugin
        .v2TIMManager
        .getGroupManager()
        .deleteGroupAttributes(
          groupID: "groupID", 
          keys: ["custom"]
        );
    if (deleteGroupAttributesRes.code == 0) {
    }

results matching ""

    No results matching ""