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