GiftStore class abstract

Gift management class, used to handle gift-related business logic in live rooms/voice chat rooms.

Constructors

GiftStore()

Properties

giftState GiftState
Gift state subscription for the current room, containing information such as available gift lists. By subscribing to this state, you can get real-time updates of gift data in the room. {@link GiftState}
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addGiftListener(GiftListener listener) → void
Gift event publisher, through which you can subscribe/remove gift events in live rooms/voice chat rooms. After subscription, you will receive corresponding notifications when audiences send gifts. {@link GiftListener}
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refreshUsableGifts() Future<CompletionHandler>
Manually refresh the available gift list for the current room.
removeGiftListener(GiftListener listener) → void
sendGift({required String giftID, required int count}) Future<CompletionHandler>
Send a specified gift to the current room
setLanguage(String language) → void
Set the display language for gift information.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

create(String liveID) GiftStore
Create a gift management instance.