Function | Description |
Singleton object. | |
Live list event callbacks. | |
Live list event callbacks. | |
Get live list. | |
Get live info. | |
Create live. | |
Join live. | |
Leave live. | |
End live. | |
Update live info. | |
Query metadata. | |
Update metadata. |
void addLiveListListener(LiveListListener listener);
Parameter | Type | Required | Description |
listener | Required | Listener. |
void removeLiveListListener(LiveListListener listener);
Parameter | Type | Required | Description |
listener | Required | Listener. |
Future<CompletionHandler> fetchLiveList({required String cursor,required int count,});
Parameter | Type | Required | Description |
cursor | String | Required | Cursor. |
count | int | Required | Count. |
Future<LiveInfoCompletionHandler> createLive(LiveInfo liveInfo);
Parameter | Type | Required | Description |
liveInfo | Required | Live info. |
Future<LiveInfoCompletionHandler> joinLive(String liveID);
Parameter | Type | Required | Description |
liveID | String | Required | Live ID. |
Future<CompletionHandler> leaveLive();
Future<StopLiveCompletionHandler> endLive();
Future<CompletionHandler> updateLiveInfo({required LiveInfo liveInfo,required List<ModifyFlag> modifyFlagList,});
Parameter | Type | Required | Description |
liveInfo | Required | Live info. | |
modifyFlag | List<ModifyFlag> | Required | Modify flag. |
Future<MetaDataCompletionHandler> queryMetaData(List<String> keys);
Parameter | Type | Required | Description |
keys | List<String> | Required | Key list. |
Future<CompletionHandler> updateLiveMetaData(Map<String, String> metaData);
Parameter | Type | Required | Description |
metaData | Map<String, String> | Required | Metadata. |
Enum Value | Description |
free | Free to take seat. |
apply | Apply to take seat. |
Enum Value | Description |
endedByHost | Ended by host. |
endedByServer | Ended by server. |
Enum Value | Description |
byAdmin | Kicked out by admin. |
byLoggedOnOtherDevice | Logged on other device. |
byServer | Kicked out by server. |
forNetworkDisconnected | Network disconnected. |
forJoinRoomStatusInvalidDuringOffline | Join room status invalid during offline. |
forCountOfJoinedRoomsExceedLimit | Count of joined rooms exceed limit. |
Property | Type | Description |
liveID | String | Live ID. |
liveName | String | Live name. |
notice | String | Live notice. |
isMessageDisable | bool | Whether message is disabled. |
isPublicVisible | bool | Whether publicly visible. |
isSeatEnabled | bool | Whether seat is enabled. |
keepOwnerOnSeat | bool | Whether to keep owner on seat. |
maxSeatCount | int | Maximum seat count. |
seatMode | Take seat mode. | |
seatTemplate | SeatLayoutTemplate | Seat layout template for simplifying seat configuration. |
seatLayoutTemplateID | int | Seat layout template ID. |
coverURL | String | Cover URL. |
backgroundURL | String | Background URL. |
categoryList | List<int> | Category list. |
activityStatus | int | Activity status. |
liveOwner | Live owner info. | |
createTime | int | Create time. |
totalViewerCount | int | Total viewer count. |
isGiftEnabled | bool | Whether gift is enabled. |
metaData | Map<String, String> | Metadata. |
void Function(String liveID, LiveEndedReason reason, String message)? onLiveEnded;
Parameter | Type | Description |
liveID | String | Live ID. |
reason | Ended reason. | |
message | String | Message. |
void Function(String liveID, LiveKickedOutReason reason, String message)? onKickedOutOfLive;LiveListListener({this.onLiveEnded, this.onKickedOutOfLive});
Parameter | Type | Description |
liveID | String | Live ID. |
reason | Kicked out reason. | |
message | String | Message. |
Property | Type | Description |
liveInfo | Live info returned on success. |
Property | Type | Description |
statisticsData | TUILiveStatisticsData | Live statistics data returned on success. |
Property | Type | Description |
metaData | Map<String, String> | Metadata returned on success. |
Feedback