Package 

Object MediaGalleryPreviewActivity.Companion

    • Method Detail

      • getIntent

         final Intent getIntent(Context context, Message message, Integer attachmentPosition, Boolean videoThumbnailsEnabled, DownloadAttachmentUriGenerator downloadAttachmentUriGenerator, DownloadRequestInterceptor downloadRequestInterceptor, StreamCdnImageResizing streamCdnImageResizing, Boolean skipEnrichUrl, MediaGalleryConfig config)

        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.
        downloadAttachmentUriGenerator - Used to generate download URIs for attachments.
        downloadRequestInterceptor - Used to intercept download requests.
        streamCdnImageResizing - Sets the Stream CDN hosted image resizing strategy.
        skipEnrichUrl - If set to true will skip enriching URLs when you update the message by deleting an attachment contained within it.
        config - The MediaGalleryConfig for configuring the media gallery.