Class to define possible directions in which common gesture modifiers like draggable and scrollable can drag.

Summary

Enum Values

Horizontal

Horizontal orientation representing X axis.

Vertical

Vertical orientation representing Y axis

Public functions

Orientation
valueOf(value: String)

Returns the enum constant of this type with the specified name.

Cmn
Array<Orientation>

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

Cmn

Public properties

EnumEntries<Orientation>

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

Cmn

Enum Values

Horizontal

val Orientation.HorizontalOrientation

Horizontal orientation representing X axis.

Note: this value specifies just the axis, not the direction (left-to-right or right-to-left). To support RTL cases, use reverseDirection = true on scrollable and draggable.

Vertical

val Orientation.VerticalOrientation

Vertical orientation representing Y axis

Public functions

valueOf

fun valueOf(value: String): Orientation

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.)

Throws
kotlin.IllegalArgumentException

if this enum type has no constant with the specified name

values

fun values(): Array<Orientation>

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

This method may be used to iterate over the constants.

Public properties

entries

val entriesEnumEntries<Orientation>

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

This method may be used to iterate over the enum entries.