removeSignalingListener
Introduction
Remove a specific signaling listener.
It will remove all signaling listeners, if no listener is specified.
Parameter details
Parameter name | Parameter type | Required | Description |
---|---|---|---|
listener | V2TimSignalingListener | yes | The signaling listener to remove. |
Returned template
void
Return value details
This function has no return value
Code example
import { TencentImSDKPlugin } from 'react-native-tim-js';
const listener = {
onInvitationCancelled: (inviteID, inviter, data) => {
},
onInvitationTimeout: (inviteID, inviteeList) => {
},
onInviteeAccepted: (inviteID, invitee, data) => {
},
onInviteeRejected: (inviteID, invitee, data) => {
},
onReceiveNewInvitation: (inviteID, inviter, groupID, inviteeList, data) => {
},
};
TencentImSDKPlugin.v2TIMManager
.getSignalingManager()
.addSignalingListener(listener);
TencentImSDKPlugin.v2TIMManager
.getSignalingManager()
.removeSignalingListener(listener);