AspectRatio

data class AspectRatio(val insets: RectMargins? = null, val aspectRatio: Double = 0.66666666666) : ContentDisplayAreaOptions

Restrict the Content Display Area based on a fixed aspect-ratio.

Constructors

Link copied to clipboard
constructor(insets: RectMargins? = null, aspectRatio: Double = 0.66666666666)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val aspectRatio: Double = 0.66666666666

The aspect-ratio to use for Content Display Areas. Defined as (width / height).

Link copied to clipboard
open override val insets: RectMargins? = null

Configures insets that reserve space along the edges of the ReaderView, typically set to match the device's safe area insets to keep content clear of camera notches, rounded corners, or system UI elements.

Link copied to clipboard
open override val type: ContentDisplayAreaType

Identifies the type of Content Display Area options.

Functions

Link copied to clipboard
open override fun serialize(generator: JsonGenerator)