Agora RTC Objective-C API Reference  Refactor
Data Fields
RtcEngineContext Struct Reference

Data Fields

IRtcEngineEventHandlereventHandler
 
const char * appId
 
void * context
 
bool enableAudioDevice
 
CHANNEL_PROFILE_TYPE channelProfile
 
AUDIO_SCENARIO_TYPE audioScenario
 
unsigned int areaCode
 
commons::LogConfig logConfig
 
Optional< THREAD_PRIORITY_TYPEthreadPriority
 
bool useExternalEglContext
 

Constructor & Destructor Documentation

◆ RtcEngineContext()

RtcEngineContext ( )
inline

Field Documentation

◆ eventHandler

IRtcEngineEventHandler* eventHandler

The event handler for IRtcEngine.

◆ appId

const char* appId

The App ID issued to the developers by Agora. Apply for a new one from Agora if it is missing from your kit.

◆ context

void* context
  • For Android, it is the context of Activity or Application.
  • For Windows, it is the window handle of app. Once set, this parameter enables you to plug or unplug the video devices while they are powered.

◆ enableAudioDevice

bool enableAudioDevice

Determines whether to enable audio device -true: (Default) enable audio device -false, disable audio device. If you want to pull the decoded and mixed audio data for playback from pullAudioFrame. This value must be false

◆ channelProfile

CHANNEL_PROFILE_TYPE channelProfile

The channel profile. See CHANNEL_PROFILE_TYPE.

◆ audioScenario

AUDIO_SCENARIO_TYPE audioScenario

The audio application scenario. See AUDIO_SCENARIO_TYPE.

Note
Agora recommends the following scenarios:
  • AUDIO_SCENARIO_DEFAULT(0)
  • AUDIO_SCENARIO_GAME_STREAMING(3)
  • AUDIO_SCENARIO_HIGH_DEFINITION(6)

◆ areaCode

unsigned int areaCode

The region for connection. This advanced feature applies to scenarios that have regional restrictions.

For the regions that Agora supports, see AREA_CODE.

After specifying the region, the SDK connects to the Agora servers within that region.

◆ logConfig

commons::LogConfig logConfig

The config for custumer set log path, log size and log level

◆ threadPriority

Optional<THREAD_PRIORITY_TYPE> threadPriority

Thread priority for SDK common threads

◆ useExternalEglContext

bool useExternalEglContext

Whether use egl context in current thread as sdk‘s root egl context which shared by all egl related modules. eg. camera capture, video renderer.

Note
This property applies to Android only.