-
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, String selectedAttachmentUrl, Boolean videoThumbnailsEnabled, 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, String selectedAttachmentUrl, Boolean videoThumbnailsEnabled, 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.selectedAttachmentUrl- The preview URL of the selected attachment to display first.videoThumbnailsEnabled- Whether video thumbnails will be displayed in previews or not.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.
-
-
-
-