RoomConfig class

@brief 房间配置

Inheritance

Constructors

RoomConfig({RoomProfile? profile, String? streamId, bool? isPublishAudio, bool? isPublishVideo, bool? isAutoSubscribeAudio, bool? isAutoSubscribeVideo})

Properties

$instance → dynamic
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isAutoSubscribeAudio bool
@brief 是否自动订阅音频流,默认为自动订阅。
包含主流和屏幕流。
getter/setter pairinherited
isAutoSubscribeVideo bool
@brief 是否自动订阅视频流,默认为自动订阅。
包含主流和屏幕流。
getter/setter pairinherited
isPublishAudio bool
@brief 是否自动发布音频流,默认为自动发布。 + 若调用 setUserVisibility{@link #RTCRoom#setUserVisibility} 将自身可见性设为 false,无论是默认的自动发布流还是手动设置的自动发布流都不会进行发布,你需要将自身可见性设为 true 后方可发布。 + 多房间场景下,若已在其中一个房间成功设置了自动发布,其他房间的自动发布设置均不会生效。若每个房间均不做设置,则默认在第一个加入的房间内自动发布流。
getter/setter pairinherited
isPublishVideo bool
@brief 是否自动发布视频流,默认为自动发布。 + 若调用 setUserVisibility{@link #RTCRoom#setUserVisibility} 将自身可见性设为 false,无论是默认的自动发布流还是手动设置的自动发布流都不会进行发布,你需要将自身可见性设为 true 后方可发布。 + 多房间场景下,若已在其中一个房间成功设置了自动发布,其他房间的自动发布设置均不会生效。若每个房间均不做设置,则默认在第一个加入的房间内自动发布流。
getter/setter pairinherited
profile RoomProfile
@brief 房间模式,参看 ChannelProfile{@link #ChannelProfile},默认为 CHANNEL_PROFILE_COMMUNICATION,进房后不可更改。
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
streamId String
@brief 流 ID,进房后不可更改。
getter/setter pairinherited

Methods

$createInstance(List args) → dynamic
Factory method for creating instances
inherited
$destroy() → void
inherited
$init(List args) → void
inherited
android_getProfile() Future<int?>
@platform android @hidden constructor/destructor
inherited
android_getStreamId() Future<string?>
@platform android @hidden constructor/destructor
inherited
findOverrideIndices(List args, List<List<int>> indicesList) List<int>
查找重载参数下标列表 @desc android 构造函数存在重载 此方法通过实际传入参数与构造函数参数列表集合的比对,来获取当前实际的需要使用的参数列表
inherited
fn2AndroidClass(Function callback, dynamic nativeClass(), String methodName) → dynamic
与 ts runtime 中的 fn2AndroidClass 功能一致 将 Dart 函数转换为 Android 回调类实例供 Android 侧使用
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited
transformToPlatformConstructorArgs(List args, List<int> indices, Map<String, dynamic> typeMap, Map<String, dynamic> enumMap, Map<String, dynamic> classMap, String platformVar) List
实例化参数处理 将 pack 过后的 enum / class 转成 android / ios 平台侧的 enum / class
inherited
updateInstance(dynamic instance) → void
inherited

Operators

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