tencent cloud

Feedback

TUILiveListManager

Last updated: 2024-08-30 16:47:21
    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
    (LiveInfo liveInfo
    
    List<LiveModifyFlag> modifyFlagList)

    Live information changed callback.

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

    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
    (LiveInfo liveInfo
    
    List<LiveModifyFlag> modifyFlagList
    
    TUIRoomDefine.ActionCallback callback)

    Modify live information.

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

    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
    Room information (Read only). More details, see TUIRoomInfo.
    viewCount
    Total views (the count of user entering live room).
    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