Agora RTC Objective-C API Reference Refactor

Public Member Functions
IServiceObserver Class Reference

## Public Member Functions
virtual void | onPermissionError (agora::rtc::PERMISSION_TYPE permissionType)
virtual void | onAudioDeviceError (ERROR_CODE_TYPE error, const char *description)
virtual void | onFetchConfigResult (int code, rtc::CONFIG_FETCH_TYPE configType, const char *configContent)

## Detailed Description

The IServiceObserver class.

## Constructor & Destructor Documentation

## ◆ ~IServiceObserver()

virtual ~IServiceObserver | ( |  | ) |
| inlinevirtual

## Member Function Documentation

## ◆ onPermissionError()

virtual void onPermissionError | ( | agora::rtc::PERMISSION_TYPE | permissionType | ) |
| inlinevirtual

Reports the permission error.

Parameters

  permission | PERMISSION

## ◆ onAudioDeviceError()

virtual void onAudioDeviceError | ( | ERROR_CODE_TYPE | error,
|  | const char * | description
| ) |  |
| inlinevirtual

Reports the audio device error.

Parameters

  error | ERROR_CODE_TYPE

## ◆ onFetchConfigResult()

virtual void onFetchConfigResult | ( | int | code,
|  | rtc::CONFIG_FETCH_TYPE | configType,
|  | const char * | configContent
| ) |  |
| inlinevirtual

Reports the config fetch result.

Parameters

  code | The error code of fetching config. 0(ERR_OK): Success. 10(ERR_TIMEDOUT): Fetching config is timed out.
  configType | The type of fetching config. 1(CONFIG_FETCH_TYPE_INITIALIZE): Fetch config when initializing RtcEngine without channel info. 2(CONFIG_FETCH_TYPE_JOIN_CHANNEL): Fetch config when joining channel with channel info, such as channel name and uid.
  configContent | The config fetched from server.