ios_setRTCGameRoomDelegate method

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

@platform ios @detail api @author luomingkang @brief 通过设置 ByteRTCGameRoom{@link #ByteRTCGameRoom} 对象的事件句柄,监听此对象对应的回调事件。 @param roomDelegate 参见 ByteRTCRoomDelegate{@link #ByteRTCRoomDelegate}。 @return - 0: 调用成功。 - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明

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}');
  }
}