TUILiveListManager
Copyright (c) 2024 Tencent. All rights reserved.
Module: TUILiveListManager @ TUIKitEngine.
Function: Live APIs.
TUILiveListManager
TUILiveListManager
FuncList | DESC |
Live information changed callback. | |
Set the event observer. | |
Modify live information. | |
Get live information. | |
Get a list of live rooms, with a maximum of 50 returned per fetch. |
StructType
FuncList | DESC |
Live information. |
EnumType
EnumType | DESC |
The TUILiveInfo modifiable parameter key. |
onLiveInfoChanged
onLiveInfoChanged
void onLiveInfoChanged | |
|
Live information changed callback.
Param | DESC |
liveInfo | Live information. |
modifyFlag |
setObserver
setObserver
void setObserver | (Observer observer) |
Set the event observer.
You can use TUILiveListManagerObserver to receive live room event.
Param | DESC |
observer | Listening instance. |
setLiveInfo
setLiveInfo
void setLiveInfo | |
| |
| TUIRoomDefine.ActionCallback callback) |
Modify live information.
Param | DESC |
liveInfo | Live information. |
modifyFlag |
getLiveInfo
getLiveInfo
void getLiveInfo | (String roomId |
| LiveInfoCallback callback) |
Get live information.
Param | DESC |
roomId | Room ID. |
fetchLiveList
fetchLiveList
void fetchLiveList | (String cursor |
| int count |
| LiveInfoListCallback callback) |
Get a list of live rooms, with a maximum of 50 returned per fetch.
Param | DESC |
count | Set the number of live lists to be obtained in each request. |
cursor | Set the index of live lists in each request. |
TUILiveModifyFlag
TUILiveModifyFlag
The TUILiveInfo modifiable parameter key.
Enum | Value | DESC |
ACTIVITY_STATUS | 0x0100 | ActivityStatus: Live room active status, support for custom settings. |
COVER_URL | 0x0200 | CoverUrl: Live room cover. |
CATEGORY | 0x0400 | Category: Live room category. |
PUBLISH | 0x2000 | Publish: Live room public flag. |
BACKGROUND_URL | 0x40000 | BackgroundUrl: Live room background. |
TUILiveInfo
TUILiveInfo
Live information.
EnumType | DESC |
activityStatus | Live room active status: User-defined tag. |
backgroundUrl | CoverUrl: Live room background, maximum support is 200 bytes. |
categoryList | Live room category tags, a single room supports up to 3 tags. |
coverUrl | CoverUrl: Live room cover, maximum support is 200 bytes. |
isPublicVisible | The public parameter can control whether the live room can be seen by others. |
roomInfo | |
viewCount | Total views (the count of user entering live room). |