VideoGravity

@Serializable
enum VideoGravity : Enum<VideoGravity>

Specifies how a video is scaled or stretched to fit within its container bounds.

Entries

Link copied to clipboard
@SerialName(value = "resize")
RESIZE

Stretches the video to fill the container bounds.

Link copied to clipboard
@SerialName(value = "resizeAspect")
RESIZE_ASPECT

Scales the video to fit within the container bounds while preserving the original aspect ratio.

Link copied to clipboard
@SerialName(value = "resizeAspectFill")
RESIZE_ASPECT_FILL

Scales the video to completely fill the container bounds while preserving the original aspect ratio.

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

Platform-compatible integer representation of this gravity.

Functions

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.