Represents image thumbnail. Currently this is valid only for image files. Thumbnails can be generated when you send a file message.

Properties

height: number = 0

The height of thumbnail.

plainUrl: string

The URL of the generated thumbnail, which does not contain sendbirdChat.eKey as a parameter. If the file encryption feature is enabled, accessing this plainUrl will be denied.

realHeight: number = 0

The actual height of thumbnail.

realWidth: number = 0

The actual width of thumbnail.

width: number = 0

The width of thumbnail.

Accessors

  • get url(): string
  • The URL of the generated thumbnail. If the file encryption feature is enabled, this will have sendbirdChat.eKey combined with the plainUrl so the thumbnail can be accessed. For caching the thumbnail, it is recommended to use plainUrl as the key of the file cache.

    Returns string