reject
功能介绍
接收方拒绝邀请
参数详解
参数名称 |
参数类型 |
是否必填 |
描述 |
inviteID |
String |
是 |
邀请请求的id |
data |
String |
是 |
拒绝邀请时发送的自定义消息 |
返回值
V2TimCallback
{
code : int
desc : String
}
返回值详解
名称 |
数值类型 |
描述 |
code |
int |
请求结果错误码 |
desc |
String |
请求结果描述 |
代码示例
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 {
V2TimCallback rejectRes = await TencentImSDKPlugin.v2TIMManager
.getSignalingManager()
.reject(
inviteID: inviteID,
data: "");
if (rejectRes.code == 0) {
}
},
);
TencentImSDKPlugin.v2TIMManager
.getSignalingManager()
.addSignalingListener(listener: listener);