Viewing Messages
Viewing Text Message
Viewing Image Message
To get an image URL from AmityMessage
:
Calling getUrl()
without specifying image size returns a URL of a medium-size image.
Please use the appropriate image size depending on your use-case to save bandwidth.
SMALL
is 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.MEDIUM
is used for standard image display, with a maximum image size of 600 pixels per dimension.LARGE
is used for full-screen image display, with a maximum image size of 1500 pixels per dimension.FULL
is used to get the original image. This size is only valid if the image is uploaded with the methodisFullImage()
set totrue
. If aFULL
sized image is not available, aLARGE
sized image will be returned instead.
To render image with Glide
To render image with Picasso
Viewing File Message
To get file URL and file name from AmityMessage
Viewing Custom Message
To get customedJsonObject
from AmityMessage
Last updated