getSignalingManager

Introduction

The entry point for for the signaling-related methods.

The main class of TencentImSDKPlugin.v2TIMManager.getSignalingManager().

Parameter details

This API has no parameters

Returned template

V2TIMSignalingManager

Return value details

name type description
V2TIMSignalingManager V2TIMSignalingManager The entry point for for the signaling-related methods.

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); 
    V2TimValueCallback<String> inviteRes = await TencentImSDKPlugin.v2TIMManager
        .getSignalingManager()
        .invite(
            invitee: "",
            data: "data",
            timeout: 30,
            onlineUserOnly: false,
            offlinePushInfo: OfflinePushInfo());
    if (inviteRes.code == 0) {
      String? inviteId = inviteRes.data;
    }

results matching ""

    No results matching ""