TUILiveListManager class abstract
Abstract class for managing live list operations.
This class provides APIs for adding and removing event callbacks, setting and getting live information, fetching the live list, and more.
Instances of this class should be obtained via
TUIRoomEngine.sharedInstance().getExtension(TUIExtensionType.liveListManager)
.
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addObserver(
TUILiveListObserver observer) → void - ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// Add event callback.
-
fetchLiveList(
String cursor, int count) → Future< TUIValueCallBack< TUILiveListResult> > - Fetch live list.
-
getLiveInfo(
String roomId) → Future< TUIValueCallBack< TUILiveInfo> > - Get live info.
-
joinLive(
String roomId) → Future< TUIValueCallBack< TUILiveInfo> > - Join live room
-
leaveLive(
) → Future< TUIActionCallback> - Leave live room
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeObserver(
TUILiveListObserver observer) → void - Remove event callback.
-
setLiveInfo(
String roomId, {String? name, String? notice, bool? disableMessage, bool? isPublicVisible, TUISeatMode? takeSeatMode, String? coverUrl, String? backgroundUrl, List< int> ? categoryList, int? activityStatus}) → Future<TUIActionCallback> - Set live info.
-
startLive(
TUILiveInfo liveInfo) → Future< TUIValueCallBack< TUILiveInfo> > - Host starts live
-
startPreloadVideoStream(
String roomId, bool isMuteAudio, int viewId, TUIPlayCallback? playCallback) → void - Start preloading the room video stream
-
stopLive(
) → Future< TUIValueCallBack< TUILiveStatisticsData> > - Host stop live
-
stopPreloadVideoStream(
String roomId) → void - Stop the preloading of the room video stream
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited