| Modifier and Type | Interface and Description |
|---|---|
static class |
MotionTrigger.Sensitivity
Class representing the sensitivity used to trigger the action, constituted by
an id and a name.
|
| Modifier and Type | Method and Description |
|---|---|
MotionTrigger.Sensitivity |
getCurrentSensitivity()
Gets the currently set sensitivity between the ones supported.
|
java.util.List<MotionTrigger.Sensitivity> |
getSupportedSensitivities()
Returns the list of supported sensitivities.
|
boolean |
isVibrationEnabled()
Checks if the vibration during motion is enabled.
|
boolean |
setCurrentSensitivity(MotionTrigger.Sensitivity sensitivity)
Sets the current sensitivity between the ones supported.
|
void |
setVibrationEnabled(boolean enable)
Enables or disables the vibration when a motion is detected.
|
getId, getName, getScanCode, isAvailable, isEnabled, setEnabledjava.util.List<MotionTrigger.Sensitivity> getSupportedSensitivities()
MotionTrigger.Sensitivity objects.boolean setCurrentSensitivity(MotionTrigger.Sensitivity sensitivity)
sensitivity - The sensitivity to set.boolean
true if the sensitivity has been set successfully, false otherwise.MotionTrigger.Sensitivity getCurrentSensitivity()
void setVibrationEnabled(boolean enable)
enable - True to enable vibration, false otherwise.boolean isVibrationEnabled()
boolean
true if the vibration during motion is enabled, false otherwise.