Function List | Description |
Gift quantity change callback | |
Gift message callback | |
Like message callback | |
add event callback | |
remove event callback | |
gift list | |
send a gift | |
Send a like | |
Number of gifts obtained by the room owner | |
Number of likes obtained |
Function List | Description |
gift information | |
gift classification information | |
Number of gifts Request result |
OnGiftCountChanged onGiftCountChanged = (String roomId,int totalGiftsSent,int totalGiftCoins,int totalUniqueGiftSenders) {};
Parameter | Description |
roomId | liveRoomId |
totalGiftsSent | Number of gifts |
totalGiftCoins | Gift value |
totalUniqueGiftSenders | Number of gift senders |
OnReceiveGiftMessage onReceiveGiftMessage = (String roomId,TUIGiftInfo giftInfo,int count,TUIUserInfo sender) {};
Parameter | Description |
roomId | liveRoomId |
giftInfo | gift information |
count | Number of gifts |
sender | Gift sender information |
OnReceiveLikesMessage onReceiveLikesMessage = (String roomId,int totalLikesReceived,TUIUserInfo sender) {};
Parameter | Description |
roomId | liveRoomId |
totalLikesReceived | Number of likes |
sender | Like sender information |
void addObserver(TUILiveGiftObserver observer);
Parameter | Description |
observer | instance of listen |
void removeObserver(TUILiveGiftObserver observer);
Parameter | Description |
observer | instance of listen |
Future<TUIValueCallBack<List<TUIGiftCategory>>> getGiftList(String roomId);
Parameter | Description |
roomId | liveRoomId |
Future<TUIActionCallback> sendGift(String roomId,String giftId,int count);
Parameter | Description |
roomId | liveRoomId |
giftId | gift ID |
count | Number of gifts |
Future<TUIActionCallback> sendLike(String roomId,int count);
Parameter | Description |
roomId | liveRoomId |
count | Number of likes |
Future<TUIValueCallBack<TUIGiftCountRequestResult>> getGiftCountByAnchor(String roomId);
Parameter | Description |
roomId | liveRoomId |
Future<TUIValueCallBack<int>> getLikesCount(String roomId);
Parameter | Description |
roomId | liveRoomId |
Enumeration Types | Description |
giftId | Gift ID |
name | Gift name |
desc | Gift description |
iconUrl | Gift icon URL |
resourceUrl | Gift resource URL |
level | Gift level |
coins | Gift price |
extensionInfo | Gift custom information |
Enumeration Types | Description |
categoryId | Gift category ID |
name | Gift category name |
desc | Gift category description |
extensionInfo | Gift custom information |
giftList | Gift category gift list |
Enumeration Types | Description |
totalGiftsSent | Number of gifts |
totalGiftCoins | Gift value |
totalUniqueGiftSenders | Number of gift senders |
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback