getSignalingInfo method Null safety
- {required String msgID}
Get signaling information
If invite sets onlineUserOnly to false, each signaling operation (including invite, cancel, accept, reject, timeout) will generate a custom message, which will be thrown to the user through V2TIMAdvancedMsgListener -> onRecvNewMessage, and the user can also pass the historical message Pull, if you need to customize the text display according to the signaling information, you can call the following interface to obtain the signaling information.
Parameters msg Message object
Returns V2TIMSalingInfo signaling information, if null, msg is not a signaling message.
Implementation
Future<V2TimValueCallback<V2TimSignalingInfo>> getSignalingInfo({
required String msgID,
}) async {
return V2TimValueCallback<V2TimSignalingInfo>.fromJson(
formatJson(
await _channel.invokeMethod(
"getSignalingInfo",
buildParam(
{
"msgID": msgID,
},
),
),
),
);
}