Chat SDK for Android v1.2.1
agora java chat SDK
Public Member Functions | List of all members
io.agora.chat.MessageReaction Class Reference

Inherits io.agora.chat.EMBase< T >.

Public Member Functions

String getReaction ()
 
int getUserCount ()
 
List< String > getUserList ()
 
boolean isAddedBySelf ()
 

Detailed Description

The message Reaction instance class, which has the following attributes:

Reaction: The message Reaction. UserCount: The count of users that added the Reaction. UserList: The list of users that added the Reaction. isAddedBySelf: Whether the current user added this Reaction.

Member Function Documentation

◆ getReaction()

String io.agora.chat.MessageReaction.getReaction ( )

Gets the Reaction.

Returns
The Reaction.

◆ getUserCount()

int io.agora.chat.MessageReaction.getUserCount ( )

Gets the count of users that added this Reaction.

Returns
The count of users that added the Reaction.

◆ getUserList()

List< String > io.agora.chat.MessageReaction.getUserList ( )

Gets the list of users that added this Reaction.

Note getReactionDetail(ChatManager) can return the entire list of users that added this Reaction with pagination, whereas other methods such as getMessageReaction(ChatMessage), getReactionList(ChatManager), and onReactionChanged(MessageListener) can only return the first three users.

Returns
The list of users that added this Reaction.

◆ isAddedBySelf()

boolean io.agora.chat.MessageReaction.isAddedBySelf ( )

Gets whether the current user has added the Reaction.

Returns
Whether the current user has added the Reaction.
  • true: Yes.
  • false: No.

The documentation for this class was generated from the following file: