MediaGalleryPreviewScreen
A stateful composable function rendering a screen for previewing visual media attachments (images and videos). Renders a screen with the following structure:
Header consisting of:
Leading content (close icon)
Center content (title)
Trailing content (options icon)
Content (pager with images/videos)
Footer consisting of:
Leading content (share icon)
Center content (page indicator or sharing progress)
Trailing content (photos/gallery icon)
Parameters
The MediaGalleryPreviewViewModel instance to use for managing the state of the screen.
The initial page to display in the pager.
Callback to be invoked when the leading content in the header is clicked. Usually closes the screen.
Callback to be invoked when an option in the options menu is clicked.
Callback to be invoked when the share icon in the footer is clicked.
Callback to be invoked when the user confirms sharing an attachment.
The Modifier to be applied to the screen.
The configuration for the media gallery.
Callback to be invoked when the trailing content in the header is clicked. By default, it shows the options menu.
Callback to be invoked when the leading content in the footer is clicked. By default, it shares the attachment.
Callback to be invoked when the trailing content in the footer is clicked. By default, it shows a bottom sheet gallery with all attachments in the message.
Callback to be invoked when the user dismisses the share large file dialog.
Callback to be invoked when the options menu is dismissed.
Callback to be invoked when the gallery bottom sheet is dismissed.
Composable function to render the header. By default, it renders a MediaGalleryPreviewHeader.
Composable function to render the content. By default, it renders a MediaGalleryPager.
Composable function to render the footer. By default, it renders a MediaGalleryPreviewFooter.
Composable function to render the options menu. By default, it renders a MediaGalleryOptionsMenu.
A stateless composable function rendering a screen for previewing visual media attachments (images and videos). Renders a screen with the following structure:
Header consisting of:
Leading content (close icon)
Center content (title)
Trailing content (options icon)
Content (pager with images/videos)
Footer consisting of:
Leading content (share icon)
Center content (page indicator or sharing progress)
Trailing content (photos/gallery icon)
Parameters
The message containing the attachments to be previewed.
TThe network connection state.
The currently logged user.
The initial page to display in the pager.
Callback to be invoked when the leading content in the header is clicked. Usually closes the screen.
Callback to be invoked when an option in the options menu is clicked.
Callback to be invoked when the share icon in the footer is clicked.
The Modifier to be applied to the screen.
The configuration for the media gallery.
Callback to be invoked when the trailing content in the header is clicked. By default, it shows the options menu.
Callback to be invoked when the leading content in the footer is clicked. By default, it shares the attachment.
Callback to be invoked when the trailing content in the footer is clicked. By default, it shows a bottom sheet gallery with all attachments in the message.
Callback to be invoked when the user confirms sharing a large file.
Callback to be invoked when the user dismisses the share large file dialog.
Callback to be invoked when the options menu is dismissed.
Callback to be invoked when the gallery bottom sheet is dismissed.
Composable function to render the header. By default, it renders a MediaGalleryPreviewHeader.
Composable function to render the content. By default, it renders a MediaGalleryPager.
Composable function to render the footer. By default, it renders a MediaGalleryPreviewFooter.
Composable function to render the options menu. By default, it renders a MediaGalleryOptionsMenu.