getSignalingInfo

Introduction

Get the information about the signaling message.

A new custom message will be sent for each signaling events, including invite/cancel/accept/reject/timeout, if the onlineUserOnly is set to false. While the onRecvNewMessage on each users will be triggered for this custom message, and users can load this message manually.

The detailed information related to a signaling, can be queried by this method, and the returns of null, represent the ID provided is not related to a signaling.

Parameter details

Parameter name Parameter type Required Platform Description
msgID String yes All The ID of the signaling.

Returned template

V2TimValueCallback<V2TimSignalingInfo>
{
    code : int
    desc : String
    data : {
          inviteID : String
          inviter : String // The user ID of the inviter.
          inviteeList : List<dynamic> // The list of invitees.
          groupID : String // The group ID related to the invitation.
          data : String // The custom data of the invitation.
          timeout : int // The timeout configuration of the invitation.
          actionType : int // The action type of the invitation.
          businessID : int // Not works on iOS devices.
          isOnlineUserOnly : bool // Whether the message can be received by online users only. Not works on iOS devices.
          offlinePushInfo : V2TimOfflinePushInfo //Offline push information. The title, body and external content carried and shown when a message is pushed offline. Not works on iOS devices.
    }
}

Return value details

name type description
code int Request result: Error codes. 0 means success.
desc String The description of the error. It will be empty if success.
data V2TimSignalingInfo The query result.

Code example

    V2TimValueCallback<V2TimSignalingInfo> getSignalingInfoRes =
        await TencentImSDKPlugin.v2TIMManager
            .getSignalingManager()
            .getSignalingInfo(msgID: "msgID");
    if (getSignalingInfoRes.code == 0) {
      getSignalingInfoRes.data?.actionType;
      getSignalingInfoRes.data?.businessID;
      getSignalingInfoRes.data?.data;
      getSignalingInfoRes.data?.groupID;
      getSignalingInfoRes.data?.inviteID;
      getSignalingInfoRes.data?.inviteeList;
      getSignalingInfoRes.data?.inviter;
      getSignalingInfoRes.data?.isOnlineUserOnly;
      getSignalingInfoRes.data?.offlinePushInfo;
      getSignalingInfoRes.data?.timeout;
    }

results matching ""

    No results matching ""