invite method
Future<V2TimValueCallback<String> >
invite({
- required String invitee,
- required String data,
- int timeout = 30,
- bool onlineUserOnly = false,
- OfflinePushInfo? offlinePushInfo,
override
Implementation
@override
Future<V2TimValueCallback<String>> invite({
required String invitee,
required String data,
int timeout = 30,
bool onlineUserOnly = false,
OfflinePushInfo? offlinePushInfo,
}) async {
Map<String, dynamic> param = {
"invitee": invitee,
"data": data,
"timeout": timeout,
"onlineUserOnly": onlineUserOnly,
"offlinePushInfo": offlinePushInfo?.toJson(),
};
var resp = V2TimValueCallback<String>.fromJson(
formatJson(
await _channel.invokeMethod(
"invite",
buildSignalingManagerParam(
param,
),
),
),
);
log("invite", param, resp.toLogString());
return resp;
}