Message Reaction
Reaction Description
Name | Data Type | Description | Attributes |
|
| ID of a document | |
|
| Type of document | |
|
| Name of the reaction | ' |
|
| ID of the reaction | |
|
| ID of the reactor | ID of a creator |
|
| Display name of the reactor | |
|
| The date/time when a reaction is created | The date/time when a reaction is created |
Reaction Data
There are 3 Reaction related methods on AmityMessage
:
1. getReactionCount()
returns Int
, the total reaction count on the message.
2. getMyReactions()
returns List<String>
, a collection of reactions that have been added by the active user.
3. getReactions()
returns AmityReactionMap
, an extension of Map<String, Int>
of reaction name and its count.
Add/Remove Reaction
You can choose to add/remove a reaction to/from a message using the react()
method on AmityMessage
.
Reaction Query
To query for a list of all reactions on a message:
This method will return a Flowable<PagedList<AmityReaction>>
of all reactions in the specified message.
Last updated