ios_setRTCRoomDelegateRts method
@platform ios
@detail api
@brief 通过设置 ByteRTCRTSRoomDelegate{@link #ByteRTCRTSRoomDelegate}代理,可以监听此 ByteRTCRTSRoom 对象对应的回调事件。
@param roomDelegate 参见 ByteRTCRTSRoomDelegate{@link #ByteRTCRTSRoomDelegate}。
@return
+ 0: 调用成功。
+ < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明
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}');
}
}