OfflinePackListItem
fun OfflinePackListItem(pack: OfflinePack, offlineManager: OfflineManager, modifier: Modifier = Modifier, leadingContent: @Composable () -> Unit = {
OfflinePackListItemDefaults.LeadingContent(pack)
}, supportingContent: @Composable () -> Unit = {
OfflinePackListItemDefaults.SupportingContent(pack.downloadProgress)
}, trailingContent: @Composable () -> Unit = {
OfflinePackListItemDefaults.TrailingContent(pack, offlineManager)
}, headlineContent: @Composable () -> Unit)(source)
A ListItem to manage an OfflinePack.
By default, it includes controls to pause, resume, invalidate, and delete the pack, and a CircularProgressIndicator for download progress.
Supply headlineContent with a pack name, for example from OfflinePack.metadata.
Swipe the item from end to start to request deletion. The default trailing delete button and the swipe gesture both require confirmation before deleting the pack.
Pass the OfflineManager from the org.maplibre.compose.map.MapRuntime that created pack.
You can customize each part of the ListItem by supplying alternate leadingContent, supportingContent, and trailingContent.