Quality

Describes if the rendering should focus on performance or quality. PERFORMANCE will use lower resolutions, while QUALITY will use the devicePixelRatio to render high quality images.

Entries

Link copied to clipboard

Will render to lower resolutions, ignoring devicePixelRatio on retina-like screens

Link copied to clipboard

Will render to higher resolutions, using devicePixelRatio on retina-like screens

Link copied to clipboard

Will choose PERFORMANCE or QUALITY based on some heuristics

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
open override val level: Float
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open operator fun compareTo(other: Quality): Int
Link copied to clipboard
fun computeTargetScale(width: Int, height: Int, devicePixelRatio: Float, targetPixels: Int = UPPER_BOUND_RENDERED_PIXELS): Float
Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.