ios_setRTCRoomDelegateRts method

Future<int?> ios_setRTCRoomDelegateRts(
  1. id<ByteRTCRTSRoomDelegate> roomDelegate
)

@platform ios @detail api @brief By setting ByteRTCRTSRoomDelegate{@link #ByteRTCRTSRoomDelegate}, you can get infromed of events realted to this ByteRTCRTSRoom object. @param roomDelegate Refer to ByteRTCRTSRoomDelegate{@link #ByteRTCRTSRoomDelegate}. @return
+ 0: Success. + < 0 : Fail. See ByteRTCReturnStatus{@link #ByteRTCReturnStatus} for more details

Implementation

Future<int?> ios_setRTCRoomDelegateRts(
    id<$p_i.ByteRTCRTSRoomDelegate> roomDelegate) async {
  $() => ($instance as $p_i.ByteRTCRoom).setRTCRoomDelegateRts(roomDelegate);

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