Configurations for RTM Client.

Hierarchy

  • RtmConfig

Constructors

Properties

appId?: string

The App ID of your project.

areaCode?: RTM_AREA_CODE = RTM_AREA_CODE.RTM_AREA_CODE_GLOB

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.

context?: any
  • 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.
encryptionConfig?: RtmEncryptionConfig

The config for encryption setting

eventHandler?: IRtmEventHandler

The callbacks handler

logConfig?: RtmLogConfig

The config for customer set log path, log size and log level.

presenceTimeout?: number = 300

Presence timeout in seconds, specify the timeout value when you lost connection between sdk and rtm service.

proxyConfig?: RtmProxyConfig

The config for proxy setting

useStringUserId?: boolean = true

Whether to use String user IDs, if you are using RTC products with Int user IDs, set this value as 'false'. Otherwise errors might occur.

userId?: string

The ID of the user.