onUserMessageReceivedOutsideRoom method
FutureOr<void>
onUserMessageReceivedOutsideRoom(
- dynamic msgid,
- dynamic uid,
- dynamic message
override
@detail callback @author hanchenchen.c @brief > This callback will be deprecated in version 3.64. Please use onUserMessageReceivedOutsideRoom{@link #IRTCEngineEventHandler#onUserMessageReceivedOutsideRoom-2} instead. @brief Receive this callback when you receive a text message from an out-of-room user calling sendUserMessageOutsideRoom{@link #RTCEngine#sendUserMessageOutsideRoom} @param uid User ID of the message sender. @param message The content of the received text message.
Implementation
FutureOr<void> onUserMessageReceivedOutsideRoom(
dynamic msgid, dynamic uid, dynamic message) async {
if ($instance == null || $instance is! IRTCEngineEventHandler) {
return;
}
return ($instance as IRTCEngineEventHandler)
.onUserMessageReceivedOutsideRoom
?.call(int.tryParse(msgid.toString()) ?? 0, uid.toString(),
message.toString());
}