ScalingMode
enum ScalingMode : Enum<ScalingMode>
Specifies how the video content is scaled or stretched.
Entries
| Fit | Fit Specifies that the player should preserve the video’s aspect ratio and fit the video within the container's bounds. |
| Stretch | Stretch Specifies that the video should be stretched to fill the container’s bounds. The aspect ratio may not be preserved. |
| Zoom | Zoom Specifies that the player should preserve the video’s aspect ratio and fill the container’s bounds. |
Properties
| Name | Summary |
|---|---|
| entries | val entries: EnumEntries<ScalingMode> Returns a representation of an immutable list of all enum entries, in the order they're declared. |
Functions
| Name | Summary |
|---|---|
| valueOf | fun valueOf(value: String): ScalingMode 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.) |
| values | fun values(): Array<ScalingMode> Returns an array containing the constants of this enum type, in the order they're declared. |