ios_setRTCGameRoomDelegate method

Future<int?> ios_setRTCGameRoomDelegate(
  1. id<ByteRTCGameRoomDelegate> roomDelegate
)

@platform ios @detail api @author luomingkang @brief Listens for event callbacks related to the ByteRTCGameRoom{@link #ByteRTCGameRoom} instance by setting the event handler of this instance. @param roomDelegate Refer to ByteRTCRoomDelegate{@link #ByteRTCRoomDelegate}. @return - 0: Success. - < 0 : Fail. See ByteRTCReturnStatus{@link #ByteRTCReturnStatus} for more details

Implementation

Future<int?> ios_setRTCGameRoomDelegate(
    id<$p_i.ByteRTCGameRoomDelegate> roomDelegate) async {
  $() => ($instance as $p_i.ByteRTCGameRoom)
      .setRTCGameRoomDelegate(roomDelegate);

  if (Platform.isIOS) {
    return $();
  } else {
    throw UnsupportedError(
        'Not Support Platform ${Platform.operatingSystem}');
  }
}