Copyright (c) 2024 Tencent. All rights reserved.
Module: TUILiveListManager @ TUIKitEngine.
Function: Live APIs.
TUILiveListManager
TUILiveListManagerObserver
函数列表 | 描述 |
Live information change callback. |
TUILiveListManager
函数列表 | 描述 |
Set the event callback. | |
Modify live information. | |
Get live information. | |
Get live list. |
结构体类型
函数列表 | 描述 |
Live information. |
onLiveInfoChanged:modifyFlag:
onLiveInfoChanged:modifyFlag:
- (void)onLiveInfoChanged: | |
modifyFlag: | (TUILiveModifyFlag)modifyFlag |
Live information change callback.
参数 | 描述 |
liveInfo | Live information. |
modifyFlag | Modifiable parameter. More details, see TUILiveModifyFlag. |
setObserver:
setObserver:
- (void)setObserver: |
Set the event callback.
You can receive live room event notifications through the TUILiveListManagerObserver.
参数 | 描述 |
observer | Listening instance. |
setLiveInfo:modifyFlag:onSuccess:onError:
setLiveInfo:modifyFlag:onSuccess:onError:
- (void)setLiveInfo: | |
modifyFlag: | (TUILiveModifyFlag)modifyFlag |
onSuccess: | (TUISuccessBlock)onSuccess |
onError: | (TUIErrorBlock)onError |
Modify live information.
参数 | 描述 |
liveInfo | Live information. |
modifyFlag | Modifiable parameter. More details, see TUILiveModifyFlag. |
getLiveInfo:onSuccess:onError:
getLiveInfo:onSuccess:onError:
- (void)getLiveInfo: | (NSString *)roomId |
onSuccess: | (TUILiveInfoBlock)onSuccess |
onError: | (TUIErrorBlock)onError |
Get live information.
参数 | 描述 |
roomId | Room ID. |
fetchLiveList:count:onSuccess:onError:
fetchLiveList:count:onSuccess:onError:
- (void)fetchLiveList: | (NSString *)cursor |
count: | (NSInteger)count |
onSuccess: | (TUILiveInfoListBlock)onSuccess |
onError: | (TUIErrorBlock)onError |
Get live list.
参数 | 描述 |
count | Set the number of live lists to be obtained in each request. |
cursor | Set the index of live lists in each request. |
TUILiveInfo
TUILiveInfo
Live information.
枚举类型 | 描述 |
activityStatus | Live room active status: User-defined tag. |
categoryList | Live room catagory tag. |
coverUrl | Live room cover. |
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). |