ChannelsService class
Channel control is HTTP only. One handle owns capture in the main isolate.
- Inheritance
-
- Object
- ClientModule
- ChannelsService
- Implemented types
Constructors
-
ChannelsService(Core core, Map<
String, Object?> ? config())
Properties
-
config
→ Map<
String, Object?> ? Function() -
final
- core → Core
-
final
- current → ChannelHandle?
-
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- loginSessionId → String?
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- supported → bool
-
no setteroverride
Methods
-
getChannel(
String channelId) → Future< RTCChannel> -
override
-
getCurrentSession(
) → Future< ChannelSession?> -
override
-
join(
String channelId, {ChannelJoinOptions options = const ChannelJoinOptions()}) → Future< ChannelHandle> -
override
-
listParticipants(
String channelId, {String? cursor, int? limit}) → Future< DRPage< ChannelParticipant> > -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onLeader(
) → void -
本地数据加载完、开始连接之前(Web SDK 的“成为主标签页”)。
inherited
-
onReload(
) → Future< void> -
从本地存储重新加载内存中的数据。
inherited
-
onSignedIn(
bool fresh) → Future< void> -
登录或恢复登录、数据库已打开:从本地存储加载需要的数据。
inherited
-
onSignedOut(
) → void -
退出、会话结束、切换用户:清除内存中的数据、释放列表。
override
-
registerProvider(
MediaProviderAdapter provider) → void -
resume(
{required String channelId, required String sessionId, DRCancelToken? cancel}) → Future< ChannelHandle> -
Reconnect the current device's session without creating a new reservation.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited