tencent cloud

All product documents
Tencent Real-Time Communication
TUILiveListManager
Last updated: 2025-02-13 16:38:49
TUILiveListManager
Last updated: 2025-02-13 16:38:49
Copyright (c) 2024 Tencent. All rights reserved.
Module: TUILiveListManager @ TUIKitEngine.
Function: Live Room list APIS, the functions on this webpage only support to TUIRoomTypeLive room type.


TUILiveListManager

TUILiveListManagerObserver

FuncList
DESC
Live information changed callback.

TUILiveListManager

FuncList
DESC
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.

onLiveInfoChanged:modifyFlag:

onLiveInfoChanged:modifyFlag:
- (void)onLiveInfoChanged:
(TUILiveInfo *)liveInfo
modifyFlag:
(TUILiveModifyFlag)modifyFlag

Live information changed callback.

Param
DESC
liveInfo
Live information.
modifyFlag
Modifiable parameter. More details, see TUILiveModifyFlag.

setObserver:

setObserver:
- (void)setObserver:
(id<TUILiveListManagerObserver>)observer

Set the event observer.

You can use TUILiveListManagerObserver to receive live room event.
Param
DESC
observer
Listening instance.

setLiveInfo:modifyFlag:onSuccess:onError:

setLiveInfo:modifyFlag:onSuccess:onError:
- (void)setLiveInfo:
(TUILiveInfo *)liveInfo
modifyFlag:
(TUILiveModifyFlag)modifyFlag
onSuccess:
(TUISuccessBlock)onSuccess
onError:
(TUIErrorBlock)onError

Modify live information.

Param
DESC
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.

Param
DESC
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 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.

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
Room information (Read only). More details, see TUIRoomInfo.
viewCount
Total views (the count of user entering live room).
Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon