RtcEngineContext
- Flutter
更新时间不可用
RtcEngineContext 定义。
@JsonSerializable(explicitToJson: true, includeIfNull: false)
class RtcEngineContext {
const RtcEngineContext(
{this.appId,
this.channelProfile,
this.audioScenario,
this.areaCode,
this.logConfig,
this.threadPriority,
this.domainLimit,
this.autoRegisterAgoraExtensions});
@JsonKey(name: 'appId')
final String? appId;
@JsonKey(name: 'channelProfile')
final ChannelProfileType? channelProfile;
@JsonKey(name: 'audioScenario')
final AudioScenarioType? audioScenario;
@JsonKey(name: 'areaCode')
final int? areaCode;
@JsonKey(name: 'logConfig')
final LogConfig? logConfig;
@JsonKey(name: 'threadPriority')
final ThreadPriorityType? threadPriority;
@JsonKey(name: 'domainLimit')
final bool? domainLimit;
@JsonKey(name: 'autoRegisterAgoraExtensions')
final bool? autoRegisterAgoraExtensions;
factory RtcEngineContext.fromJson(Map<String, dynamic> json) =>
_$RtcEngineContextFromJson(json);
Map<String, dynamic> toJson() => _$RtcEngineContextToJson(this);
}属性
| 参数名 | 描述 |
|---|---|
appId | |
channelProfile | 频道使用场景。详见 ChannelProfileType。 |
audioScenario | 音频场景。不同的音频场景下,设备的音量类型是不同的。 详见 AudioScenarioType 。 |
areaCode | 服务器的访问区域。该功能为高级设置,适用于有访问安全限制的场景。支持的区域详见 AreaCode。区域码支持位操作。 |
logConfig | 设置 SDK 输出的日志文件。详见 LogConfig。 默认情况下,SDK 会生成 5 个 SDK 日志文件和 5 个 API 调用日志文件,规则如下: |
domainLimit | |
autoRegisterAgoraExtensions | 是否在初始化 RtcEngine 时自动注册声网插件:
|