-
public final class MediaGalleryPreviewContract extends ActivityResultContract<MediaGalleryPreviewContract.Input, MediaGalleryPreviewResult>
The contract used to start the MediaGalleryPreviewActivity given a message ID and the position of the clicked attachment.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classMediaGalleryPreviewContract.InputDefines the input for the MediaGalleryPreviewContract.
-
Constructor Summary
Constructors Constructor Description MediaGalleryPreviewContract(MediaGalleryConfig config)
-
Method Summary
Modifier and Type Method Description IntentcreateIntent(Context context, MediaGalleryPreviewContract.Input input)Creates the intent to start the MediaGalleryPreviewActivity. MediaGalleryPreviewResultparseResult(Integer resultCode, Intent intent)We parse the result as MediaGalleryPreviewResult, which can be null in case there is no result to return. -
-
Constructor Detail
-
MediaGalleryPreviewContract
MediaGalleryPreviewContract(MediaGalleryConfig config)
- Parameters:
config- The configuration for the media gallery.
-
-
Method Detail
-
createIntent
Intent createIntent(Context context, MediaGalleryPreviewContract.Input input)
Creates the intent to start the MediaGalleryPreviewActivity.
-
parseResult
MediaGalleryPreviewResult parseResult(Integer resultCode, Intent intent)
We parse the result as MediaGalleryPreviewResult, which can be null in case there is no result to return.
-
-
-
-