Enum Class TouchPhase

java.lang.Object
java.lang.Enum<TouchPhase>
technology.sola.engine.input.TouchPhase
All Implemented Interfaces:
Serializable, Comparable<TouchPhase>, Constable

@NullMarked public enum TouchPhase extends Enum<TouchPhase>
TouchPhase enum contains information about the phase of a touch gesture.
  • Enum Constant Details

    • BEGAN

      public static final TouchPhase BEGAN
      Touch gesture has started by pressing a finger on the screen.
    • MOVED

      public static final TouchPhase MOVED
      Touch gesture continues for a finger already on the screen.
    • ENDED

      public static final TouchPhase ENDED
      Touch gesture has ended by removing a finger from the screen.
    • CANCELLED

      public static final TouchPhase CANCELLED
      Touch gesture that had BEGAN was not completed.
    • STATIONARY

      public static final TouchPhase STATIONARY
      Touch gesture that had BEGAN and is not moving. This may not be used by all SolaPlatforms.
  • Method Details

    • values

      public static TouchPhase[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TouchPhase valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null