Input

class Input(val message: Message, val initialPosition: Int = 0, val videoThumbnailsEnabled: Boolean, val streamCdnImageResizing: StreamCdnImageResizing, val skipEnrichUrl: Boolean = false)

Defines the input for the MediaGalleryPreviewContract.

Parameters

message

The message containing the attachments.

initialPosition

The initial position of the media gallery, based on the clicked item.

videoThumbnailsEnabled

Whether video thumbnails will be displayed in previews or not.

skipEnrichUrl

If set to true will skip enriching URLs when you update the message by deleting an attachment contained within it. Set to false by default.

Constructors

Link copied to clipboard
constructor(message: Message, initialPosition: Int = 0, videoThumbnailsEnabled: Boolean, streamCdnImageResizing: StreamCdnImageResizing, skipEnrichUrl: Boolean = false)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val skipEnrichUrl: Boolean = false
Link copied to clipboard