Image Viewer
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
media Info
The MediaInfo to show.
modifier
The modifier to be applied to the view.
download State
The state of the download.
on Navigation Icon Click
The handler for when the navigation icon is clicked.
on Click Download
The handler for when the download is clicked.
on Download Completed
The handler for when the download is completed.
on Click Delete
The handler for when the delete is clicked.
loading
The loading view to show when the image is loading.