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 Platform Description
listener V2TimSignalingListener yes All The signaling listener to remove.

Returned template

void

Return value details

This function has no return value

Code example

      V2TimSignalingListener listener = V2TimSignalingListener(
      onInvitationCancelled: (String inviteID, String inviter, String data) async {
      },
      onInvitationTimeout: (String inviteID, List<String> inviteeList) async {
      },
      onInviteeAccepted: (String inviteID, String invitee, String data) async {
      },
      onInviteeRejected: (String inviteID, String invitee, String data) async {
      },
      onReceiveNewInvitation: (String inviteID, String inviter, String groupID,
              List<String> inviteeList, String data) async
          {
      },
    );
    TencentImSDKPlugin.v2TIMManager
        .getSignalingManager()
        .addSignalingListener(listener: listener);
    TencentImSDKPlugin.v2TIMManager
        .getSignalingManager()
        .removeSignalingListener(listener: listener);

results matching ""

    No results matching ""