ImageViewer

fun ImageViewer(mediaInfo: MediaInfo, modifier: Modifier = Modifier, downloadState: DownloadState = DownloadState.Idle, onNavigationIconClick: () -> Unit = {}, onClickDownload: (MediaInfo) -> Unit = {}, onDownloadCompleted: (Boolean) -> Unit = {}, onClickDelete: () -> Unit = {}, loading: @Composable () -> Unit = {})

Represents the image viewer that shows the image in full screen.

Since

1.0.0-beta.1

Parameters

mediaInfo

The MediaInfo to show.

modifier

The modifier to be applied to the view.

downloadState

The state of the download.

onNavigationIconClick

The handler for when the navigation icon is clicked.

onClickDownload

The handler for when the download is clicked.

onDownloadCompleted

The handler for when the download is completed.

onClickDelete

The handler for when the delete is clicked.

loading

The loading view to show when the image is loading.