Direction
enum Direction
An enumeration used to specify the primary direction of certain gestures.
Summary
Public functions |
|
|---|---|
java-static Direction |
Returns the reverse of the given direction. |
java-static Direction! |
Returns the enum constant of this type with the specified name. |
java-static Array<Direction!>! |
values()Returns an array containing the constants of this enum type, in the order they're declared. |
Enum Values
DOWN
val Direction.DOWN: Direction
LEFT
val Direction.LEFT: Direction
RIGHT
val Direction.RIGHT: Direction
UP
val Direction.UP: Direction
Public functions
reverse
java-static fun reverse(direction: Direction): Direction
Returns the reverse of the given direction.
valueOf
java-static fun valueOf(name: String!): Direction!
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.)
| Returns | |
|---|---|
Direction! |
the enum constant with the specified name |
| Throws | |
|---|---|
java.lang.IllegalArgumentException |
if this enum type has no constant with the specified name |