ScaleMode

Represents the scaling mode for the Player content within its parent container.

Entries

Link copied to clipboard

Resizes the Player content to fit within the parent while maintaining its aspect ratio. This ensures the entire content is visible, but may result in black bars (letterboxing or pillarboxing) on the sides or top/bottom if the aspect ratios of the media and container do not match.

Link copied to clipboard

Stretches the Player to fill its parent, ignoring the defined aspect ratio. This may cause the content to be distorted horizontally or vertically to match the parent's dimensions.

Link copied to clipboard

Trims the Player to fill its parent while maintaining its aspect ratio. Any content that extends beyond the bounds of the container will be clipped.

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
Link copied to clipboard

Functions

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

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.