removeGroupListener

Introduction

Remove a specific group listener.

All the group listeners will be removed, if the listener field is not set.

Parameter details

Parameter name Parameter type Required Description
listener V2TimGroupListener yes The listener to remove.

Returned template

void

Return value details

This function has no return value

Code example

import { TencentImSDKPlugin, V2TimGroupListener } from 'react-native-tim-js';

const groupListener: V2TimGroupListener = {
    onMemberEnter: (groupID, memberList) => {



    },
    onMemberLeave: (groupID, member) => {



    },
    onMemberInvited: (groupID, opUser, memberList) => {




    },
    onMemberKicked: (groupID, opUser, memberList) => {




    },
    onMemberInfoChanged: (groupID, groupMemberChangeInfoList) => {



    },
    onGroupCreated: (groupID) => {


    },
    onGroupDismissed: (groupID, opUser) => {



    },
    onGroupRecycled: (groupID, opUser) => {



    },
    onGroupInfoChanged: (groupID, changeInfos) => {



    },
    onReceiveJoinApplication: (groupID, member, opReason) => {




    },
    onApplicationProcessed: (groupID, opUser, isAgreeJoin, opReason) => {





    },
    onGrantAdministrator: (groupID, opUser, memberList) => {




    },
    onRevokeAdministrator: (groupID, opUser, memberList) => {




    },
    onQuitFromGroup: (groupID) => {


    },
    onReceiveRESTCustomData: (groupID, customData) => {



    },
    onGroupAttributeChanged: (groupID, groupAttribute) => {



    },
};


TencentImSDKPlugin.v2TIMManager.addGroupListener(groupListener);
TencentImSDKPlugin.v2TIMManager.removeGroupListener(groupListener);

results matching ""

    No results matching ""