Input

class Input(val message: Message, val initialPosition: Int = 0, val videoThumbnailsEnabled: Boolean, val downloadAttachmentUriGenerator: DownloadAttachmentUriGenerator, val downloadRequestInterceptor: DownloadRequestInterceptor, 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.

downloadAttachmentUriGenerator

The URI generator for downloading attachments.

downloadRequestInterceptor

The request interceptor for downloading attachments.

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, downloadAttachmentUriGenerator: DownloadAttachmentUriGenerator, downloadRequestInterceptor: DownloadRequestInterceptor, streamCdnImageResizing: StreamCdnImageResizing, skipEnrichUrl: Boolean = false)

Properties