BookLibraryUiConfiguration

data class BookLibraryUiConfiguration(val topLevelTitle: String? = null, val libraryFilters: List<Filter>? = null, val showBlurredDetailBackground: Boolean? = null, val defaultCoverSize: IntSize? = null, val detailView: BookLibraryUiConfiguration.DetailView? = null, val podcastSeriesView: BookLibraryUiConfiguration.PodcastSeriesView? = null, val coverCornerRadiusRatio: Int? = null)

Configuration class for various UI bits.

Constructors

Link copied to clipboard
constructor(topLevelTitle: String? = null, libraryFilters: List<Filter>? = null, showBlurredDetailBackground: Boolean? = null, defaultCoverSize: IntSize? = null, detailView: BookLibraryUiConfiguration.DetailView? = null, podcastSeriesView: BookLibraryUiConfiguration.PodcastSeriesView? = null, coverCornerRadiusRatio: Int? = null)

Types

Link copied to clipboard
data class DetailView(val descriptionTextSize: Int?, val secondaryTitleTextSize: Int?, val titleTextSize: Int?, val detailTitleTextSize: Int?, val detailValueTextSize: Int?)
Link copied to clipboard
data class PodcastSeriesView(val episodeTitleSize: Int?, val episodeDescriptionSize: Int?)

Properties

Link copied to clipboard

Ratio to be used for calculating corner radiuses in various places.

Link copied to clipboard
val defaultCoverSize: IntSize?

Default size for a cover that's used if the feed doesn't contain the size. Mainly in podcasts.

Link copied to clipboard

Overrides for the detail view.

Link copied to clipboard

List of filters to be used in the user library view.

Link copied to clipboard

Overrides for the podcast series view.

Link copied to clipboard

Show a blurred version of the item cover as the background in the detail view.

Link copied to clipboard

The title for the top-level views in the library view.

Functions

Link copied to clipboard
fun cornerRadius(widthPx: Int): Float?