RiveFit

Defines how Rive animations should be fitted within their container. This enum provides a unified API across Android and iOS platforms.

Entries

Link copied to clipboard

Scale the animation to fill the entire container, potentially cropping content.

Link copied to clipboard

Scale the animation to fit within the container, maintaining aspect ratio. This ensures the entire animation is visible within the bounds.

Link copied to clipboard

Scale the animation to cover the entire container, maintaining aspect ratio. This may crop parts of the animation to fill the container.

Link copied to clipboard

Scale the animation to fit the width of the container.

Link copied to clipboard

Scale the animation to fit the height of the container.

Link copied to clipboard

Do not scale the animation, use its original size.

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
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard
fun valueOf(value: String): RiveFit

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.