addInvitedSignaling
Introduction
Create an invitation with signaling.
Parameter details
Parameter name |
Parameter type |
Required |
Description |
info |
V2TimSignalingInfo |
yes |
The detailed information of the invitation. |
Returned template
V2TimCallback
{
code : number
desc : string
}
Return value details
name |
type |
description |
code |
number |
Request result: Error codes. 0 means success. |
desc |
string |
The description of the error. It will be empty if success. |
Code example
import { TencentImSDKPlugin } from 'react-native-tim-js';
const addInvitedSignalingRes = await TencentImSDKPlugin.v2TIMManager
.getSignalingManager()
.addInvitedSignaling({
actionType: 1,
businessID: 1,
data: '',
groupID: '',
inviteeList: [],
inviteID: '',
timeout: 30,
inviter: '',
isOnlineUserOnly: false,
offlinePushInfo: {},
});
if (addInvitedSignalingRes.code === 0) {
}