When sending an image file, you can determine whether to create thumbnails of the image to fetch and render into your UI. You can specify up to three different sizes for thumbnail images.
Note: Supported file types are
video/*. The Chat SDK doesn't support creating thumbnails when sending a file message via URL.
sendFileMessage() method requires passing a
FileMessageCreateParams object as an argument to a parameter containing an array of items that each specify the maximum width and height of a thumbnail image. The callback function subsequently returns a list of
Thumbnail items that each contain the URL of the generated thumbnail image file.
A thumbnail image is generated to fit within the bounds of the provided
maxHeight. If the size of the original image is smaller than the specified dimensions, the original image will have the width and height of the specified dimensions. The URL of the thumbnail returns the location of the generated thumbnail file within the Sendbird server.