- All Implemented Interfaces:
Serializable,Comparable<TouchPhase>,Constable
TouchPhase enum contains information about the phase of a touch gesture.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTouch gesture has started by pressing a finger on the screen.Touch gesture that hadBEGANwas not completed.Touch gesture has ended by removing a finger from the screen.Touch gesture continues for a finger already on the screen.Touch gesture that hadBEGANand is not moving. -
Method Summary
Modifier and TypeMethodDescriptionstatic TouchPhaseReturns the enum constant of this class with the specified name.static TouchPhase[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BEGAN
Touch gesture has started by pressing a finger on the screen. -
MOVED
Touch gesture continues for a finger already on the screen. -
ENDED
Touch gesture has ended by removing a finger from the screen. -
CANCELLED
Touch gesture that hadBEGANwas not completed. -
STATIONARY
Touch gesture that hadBEGANand is not moving. This may not be used by allSolaPlatforms.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-