Package-level declarations
Types
Link copied to clipboard
Represents the state of EntityScreen.
Link copied to clipboard
Represents the state of PlaylistDownloadScreen.
Functions
Link copied to clipboard
fun createPlaylistDownloadScreenStateLoaded(playlistModel: PlaylistUiModel, downloadMediaList: List<DownloadMediaUiModel>): PlaylistDownloadScreenState.Loaded<PlaylistUiModel, DownloadMediaUiModel>
A helper function to build a EntityScreenState.Loaded with PlaylistUiModel and DownloadMediaUiModel, calculating the value of PlaylistDownloadScreenState.Loaded.downloadMediaListState.
Link copied to clipboard
A default implementation of a header for EntityScreen.
Link copied to clipboard
fun EntityScreen(columnState: ScalingLazyColumnState, headerContent: @Composable () -> Unit, modifier: Modifier = Modifier, buttonsContent: @Composable () -> Unit? = null, content: ScalingLazyListScope.() -> Unit? = null)
A screen that displays a media collection and allow actions to be taken on it.
fun <Media> EntityScreen(columnState: ScalingLazyColumnState, headerContent: @Composable () -> Unit, mediaList: List<Media>, mediaContent: @Composable (media: Media) -> Unit, modifier: Modifier = Modifier, buttonsContent: @Composable () -> Unit? = null)
A screen that displays a Media collection and allow actions to be taken on it.
fun <Media> EntityScreen(columnState: ScalingLazyColumnState, entityScreenState: EntityScreenState<Media>, headerContent: @Composable () -> Unit, loadingContent: ScalingLazyListScope.() -> Unit, mediaContent: @Composable (media: Media) -> Unit, modifier: Modifier = Modifier, buttonsContent: @Composable () -> Unit? = null, failedContent: @Composable () -> Unit? = null)
Link copied to clipboard
fun PlaylistDownloadScreen(columnState: ScalingLazyColumnState, playlistName: String, playlistDownloadScreenState: PlaylistDownloadScreenState<PlaylistUiModel, DownloadMediaUiModel>, onDownloadButtonClick: (PlaylistUiModel) -> Unit, onCancelDownloadButtonClick: (PlaylistUiModel) -> Unit, onDownloadItemClick: (DownloadMediaUiModel) -> Unit, onDownloadItemInProgressClick: (DownloadMediaUiModel) -> Unit, onShuffleButtonClick: (PlaylistUiModel) -> Unit, onPlayButtonClick: (PlaylistUiModel) -> Unit, modifier: Modifier = Modifier, onDownloadCompletedButtonClick: (PlaylistUiModel) -> Unit? = null, defaultMediaTitle: String = "", downloadItemArtworkPlaceholder: Painter? = null, onDownloadItemInProgressClickActionLabel: String? = null)
An implementation of EntityScreen using PlaylistUiModel and DownloadMediaUiModel as models.
Link copied to clipboard
fun PlaylistStreamingScreen(columnState: ScalingLazyColumnState, playlistName: String, playlistDownloadScreenState: PlaylistDownloadScreenState<PlaylistUiModel, DownloadMediaUiModel>, onShuffleButtonClick: () -> Unit, onPlayButtonClick: () -> Unit, onPlayItemClick: (DownloadMediaUiModel) -> Unit, modifier: Modifier = Modifier, defaultMediaTitle: String = "")
An implementation of EntityScreen using PlaylistUiModel and DownloadMediaUiModel as models.