public interface Trigger
| Modifier and Type | Method and Description |
|---|---|
int |
getId()
Return the unique ID associated with the trigger.
|
java.lang.String |
getName()
Return the name associated with the trigger.
|
int |
getScanCode()
Return the unique scan code associated with the trigger.
|
boolean |
isAvailable()
Checks if the trigger is available on the device.
|
boolean |
isEnabled()
Checks if the trigger is enabled.
|
boolean |
setEnabled(boolean enabled)
Enables or disables the trigger by specifying a
boolean value. |
int getScanCode()
int the scan code.java.lang.String getName()
int the trigger name.int getId()
int the trigger unique ID.boolean setEnabled(boolean enabled)
boolean value.enabled - boolean that specifies whether or not the trigger will be enabled.boolean true in case of success, false otherwise.boolean isEnabled()
boolean true in case the trigger is enabled, false otherwise or in case of failure.boolean isAvailable()
boolean true in case the trigger is available, false otherwise or in case of failure.