-
public class MediaGalleryPreviewActivity.Companion
-
-
Field Summary
Fields Modifier and Type Field Description private final StringKeyMediaGalleryPreviewResultpublic final static MediaGalleryPreviewActivity.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final IntentgetIntent(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. final StringgetKeyMediaGalleryPreviewResult()Represents the key for the result of the preview, like scrolling to the message. -
-
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.
-
getKeyMediaGalleryPreviewResult
final String getKeyMediaGalleryPreviewResult()
Represents the key for the result of the preview, like scrolling to the message.
-
-
-
-