getIntent

fun getIntent(context: Context, message: Message, attachmentPosition: Int, videoThumbnailsEnabled: Boolean, streamCdnImageResizing: StreamCdnImageResizing = StreamCdnImageResizing.defaultStreamCdnImageResizing(), skipEnrichUrl: Boolean = false): Intent

Used to build an Intent to start the MediaGalleryPreviewActivity with the required data.

Parameters

context

The context to start the activity with.

message

The Message containing the attachments.

attachmentPosition

The initial position of the clicked media attachment.

videoThumbnailsEnabled

Whether video thumbnails will be displayed in previews or not.

streamCdnImageResizing

Sets the Stream CDN hosted image resizing strategy. Turned off by default. Please note that only Stream CDN hosted images containing original width (ow) and original height (oh) parameters are able to be resized.

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.