public enum TiEventType extends Enum<TiEventType>
| Enum Constant and Description |
|---|
GPIO |
IOAGENT |
KEYBOARD |
NONE
Type define
|
| Modifier and Type | Method and Description |
|---|---|
static TiEventType |
fromSlot(int slot)
Get event type from hardware
|
static TiEventType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TiEventType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TiEventType GPIO
public static final TiEventType IOAGENT
public static final TiEventType KEYBOARD
public static final TiEventType NONE
public static TiEventType fromSlot(int slot)
slot - the event slot of hardwarepublic static TiEventType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static TiEventType[] values()
for (TiEventType c : TiEventType.values()) System.out.println(c);