addSignalingListener

Introduction

Add a signaling listener.

Invoking this method will add a new signaling listener to the array of listeners.

Signaling APIs are a set of invitation process control APIs based on IM messages. They can be used to implement a variety of real-time features, including:

Audio-video chat rooms: mic on or mic off

Chatting: audio/video calls

Education: control of the process for teachers to invite students to "raise hands"

Use Cases

Parameter details

Parameter name Parameter type Required Platform Description
listener V2TimSignalingListener yes All The instance of the signaling listener.

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);

results matching ""

    No results matching ""