RtcEngineContext class

Configurations of initializing the SDK.

Annotations
  • @JsonSerializable(explicitToJson: true)

Constructors

RtcEngineContext(String appId, {List<AreaCode>? areaCode, LogConfig? logConfig})
Constructs the RtcEngineContext.

Properties

appId String
The App ID issued by Agora for your app development project. Only users who use the same App ID can join the same channel and communicate with each other.
getter/setter pair
areaCode List<AreaCode>?
The region for connection. This is an advanced feature and applies to scenarios that have regional restrictions. After specifying the region, the SDK connects to the Agora servers within that region.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
logConfig LogConfig?
The configuration of the log files. See LogConfig . By default, the SDK outputs five log files: agorasdk.log, agorasdk_1.log, agorasdk_2.log, agorasdk_3.log, and agorasdk_4.log. Each log file has a default size of 512 KB and is encoded in UTF-8 format. The SDK writes the latest log in agorasdk.log. When agorasdk.log is full, the SDK deletes the log file with the earliest modification time among the other four, renames agorasdk.log to the name of the deleted log file, and create a new agorasdk.log to record the latest log.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited