onRoomBinaryMessageReceived method

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

@detail callback @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! IRTSRoomEventHandler) {
    return;
  }
  return ($instance as IRTSRoomEventHandler)
      .onRoomBinaryMessageReceived
      ?.call(int.tryParse(msgid.toString()) ?? 0, uid.toString(), message);
}