to top
Datalogic APIs
public interface

MotionTrigger

implements Trigger
com.datalogic.device.input.MotionTrigger

Class Overview

Interface representing a trigger that automatically executes a specific action (scan by default) when a motion event is detected.

Summary

Nested Classes
class MotionTrigger.Sensitivity Class representing the sensitivity used to trigger the action, constituted by an id and a name. 
Public Methods
abstract MotionTrigger.Sensitivity getCurrentSensitivity()
Gets the currently set sensitivity between the ones supported.
abstract List<MotionTrigger.Sensitivity> getSupportedSensitivities()
Returns the list of supported sensitivities.
abstract boolean isVibrationEnabled()
Checks if the vibration during motion is enabled.
abstract boolean setCurrentSensitivity(MotionTrigger.Sensitivity sensitivity)
Sets the current sensitivity between the ones supported.
abstract void setVibrationEnabled(boolean enable)
Enables or disables the vibration when a motion is detected.
[Expand]
Inherited Methods
From interface com.datalogic.device.input.Trigger

Public Methods

public abstract MotionTrigger.Sensitivity getCurrentSensitivity ()

Added in revision 11

Gets the currently set sensitivity between the ones supported.

Returns
  • The current sensitivity.

public abstract List<MotionTrigger.Sensitivity> getSupportedSensitivities ()

Added in revision 11

Returns the list of supported sensitivities.

Returns

public abstract boolean isVibrationEnabled ()

Added in revision 11

Checks if the vibration during motion is enabled.

Returns
  • boolean true if the vibration during motion is enabled, false otherwise.

public abstract boolean setCurrentSensitivity (MotionTrigger.Sensitivity sensitivity)

Added in revision 11

Sets the current sensitivity between the ones supported.

Parameters
sensitivity The sensitivity to set.
Returns
  • boolean true if the sensitivity has been set successfully, false otherwise.

public abstract void setVibrationEnabled (boolean enable)

Added in revision 11

Enables or disables the vibration when a motion is detected.

Parameters
enable True to enable vibration, false otherwise.