LikeStore

abstract class LikeStore

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

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Create a like management instance.

Properties

Link copied to clipboard
abstract val likeState: LikeState

Like state subscription for the current room, containing information such as accumulated like count. By subscribing to this state, you can get real-time updates of like data in the room. {@link LikeState}

Functions

Link copied to clipboard
abstract fun addLikeListener(listener: LikeListener?)

Like event publisher, through which you can subscribe/remove like events in live rooms/voice chat rooms. After subscription, you will receive corresponding notifications when audiences send likes. {@link LikeListener}

Link copied to clipboard
abstract fun removeLikeListener(listener: LikeListener?)
Link copied to clipboard
abstract fun sendLike(count: Int = 1, completion: CompletionHandler?)

Send likes to the current room. All users who have subscribed to like events will receive this like notification.