RtcEngineContext
Definition of RtcEngineContext.
public class RtcEngineContext : OptionalJsonParse
{
public string appId;
public UInt64 context;
public CHANNEL_PROFILE_TYPE channelProfile;
public AUDIO_SCENARIO_TYPE audioScenario;
public AREA_CODE areaCode;
public LogConfig logConfig;
public bool domainLimit;
public bool autoRegisterAgoraExtensions;
};
Properties
- eventHandler
- Event handler of IRtcEngine. See IRtcEngineEventHandler.
- appId
- The App ID issued by Agora to the developer. Only apps using the same App ID can join the same channel for a call or live broadcast. An App ID can only be used to create one IRtcEngine. To change the App ID, you must call Dispose to destroy the current IRtcEngine and then create a new one.
- context
-
- On Windows, context is the window handle. If set, it indicates support for hot-plugging devices.
- On Android, context is the Android activity context.
- channelProfile
- Channel profile. See CHANNEL_PROFILE_TYPE.
- audioScenario
- Audio scenario. Different audio scenarios have different volume types. See AUDIO_SCENARIO_TYPE.
- areaCode
- Region for accessing the server. This is an advanced setting suitable for scenarios with access security restrictions. Supported regions are listed in AREA_CODE. Area codes support bitwise operations.
- logConfig
- Sets the log files output by the SDK. See LogConfig. By default, the SDK generates 5 SDK log files and 5 API call log files, following these rules:
- domainLimit
- Whether to enable domain name restriction:
- true: Enable domain name restriction. This setting is suitable for IoT devices accessing the network using IoT SIM cards. The SDK will only connect to servers in the domain or IP whitelist reported to the carrier.
- false: (Default) Disable domain name restriction. This setting is suitable for most common scenarios.
- autoRegisterAgoraExtensions
- Whether to automatically register Agora extensions when initializing IRtcEngine:
- true: (Default) Automatically register Agora extensions when initializing IRtcEngine.
- false: Do not register Agora extensions when initializing IRtcEngine. You need to call EnableExtension to register the Agora extensions.