ios_setRTCRoomDelegate method
@platform ios @detail api @author shenpengliang @brief Listens for event callbacks related to the ByteRTCRoom{@link #ByteRTCRoom} 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_setRTCRoomDelegate(
id<$p_i.ByteRTCRoomDelegate> roomDelegate) async {
$() => ($instance as $p_i.ByteRTCRoom).setRTCRoomDelegate(roomDelegate);
if (Platform.isIOS) {
return $();
} else {
throw UnsupportedError(
'Not Support Platform ${Platform.operatingSystem}');
}
}