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)
virtual void | onLocalUserRegistered (rtc::uid_t uid, const char *userAccount)

## Detailed Description

The IServiceObserver class.

## Constructor & Destructor Documentation

## ◆ ~IServiceObserver()

virtual ~IServiceObserver | ( |  | ) |
| inline virtual

## Member Function Documentation

## ◆ onPermissionError()

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

Reports the permission error.

Parameters

  permission | PERMISSION

## ◆ onAudioDeviceError()

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

Reports the audio device error.

Parameters

  error | ERROR_CODE_TYPE

## ◆ onFetchConfigResult()

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

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.

## ◆ onLocalUserRegistered()

virtual void onLocalUserRegistered | ( | rtc::uid_t | uid,
|  | const char * | userAccount
| ) |  |
| inline virtual

Occurs when the local user registers a user account.

Parameters

  uid | The ID of the local user.
  userAccount | The user account of the local user.