isFullon upload, the original size of the image can also be returned.
messageIdof the parent of this message
parentIdof this message
text: Text message
dislike: 2 }
AmityMessageRepositoryclass. Before calling any messaging methods, you must ensure to first instantiate a repository instance using the
AmityChatClientinstance you created on setup.
syncStateproperty in the message model; for web you should use
AmityMessage.getState()method in the
isFullImage()to true. Note: File size is limited to 1 GB
JsonObectof your choice as part of the message.
stackFromEndusing obtain MessageCollection is the same as
stackFromEndof RecyclerView's LayoutManager. Otherwise it may cause a jumping issue.
excludingTagsparameters let you filter messages based on the tags set (or not set) in each message
parentIdparameter lets you filter messages by their relationship:
parentIdis passed, any message will match.
parentIdis passed, query for all messages without a parent.
parentIdis passed: query for all messages with the
getUrl()without specifying image size returns a URL of a medium-size image.
SMALLis used for image thumbnails, with a maximum image size of 160 pixels per dimension. For example, this should be used for small previews in an image gallery that displays a large number of images in a grid.
MEDIUMis used for standard image display, with a maximum image size of 600 pixels per dimension.
LARGEis used for full-screen image display, with a maximum image size of 1500 pixels per dimension.
FULLis used to get the original image. This size is only valid if the image is uploaded with the method
true. If a
FULLsized image is not available, a
LARGEsized image will be returned instead.
editedAtwill be set to the current time. This allows you to provide UI to the user to inform the user of specific messages that have been edited, if needed.
Int, the total reaction count on the message.
List<String>, a collection of reactions that have been added by the active user.
AmityReactionMap, an extension of
Map<String, Int>of reaction name and its count.
Flowable<PagedList<AmityReaction>>of all reactions in the specified message.
USER- When using mention of this type, a specific member being mentioned will receive a push notification. Up to 30 channel members can be mentioned per message.
CHANNEL- When using mention of this type, all channel members will receive push notification.
AmityMessagehas a property called
metadatawhich can hold an object and will not be tampered by the system. So, it can be utilized as a storage for UI-related data.
metadatacontaining sufficient data to highlight text with indices.
bodyTemplateparameters respectively. Here is a sample model: