onRoomBinaryMessageReceived method

FutureOr<void> onRoomBinaryMessageReceived(
  1. dynamic msgid,
  2. dynamic uid,
  3. dynamic message
)
override

@detail callback @author hanchenchen.c @brief > This callback will be deprecated since version 3.64. Use onRoomBinaryMessageReceived{@link #IRTCRoomEventHandler#onRoomBinaryMessageReceived-2} instead. @brief Receives a callback for broadcast binary messages in the room.
This callback is received when other users in the room call sendRoomBinaryMessage{@link #RTSRoom#sendRoomBinaryMessage} to send a broadcast binary message. @param uid User ID of the message sender. @param message The content of the received binary message.

Implementation

FutureOr<void> onRoomBinaryMessageReceived(
    dynamic msgid, dynamic uid, dynamic message) async {
  if ($instance == null || $instance is! IRTCRoomEventHandler) {
    return;
  }
  return ($instance as IRTCRoomEventHandler)
      .onRoomBinaryMessageReceived
      ?.call(int.tryParse(msgid.toString()) ?? 0, uid.toString(), message);
}