to top
Datalogic APIs
Added in revision 5
public interface

Trigger

com.datalogic.device.input.Trigger
Known Indirect Subclasses

Class Overview

Interface representing a trigger associated by default with the scan action.

Summary

Public Methods
abstract int getId()
Return the unique ID associated with the trigger.
abstract String getName()
Return the name associated with the trigger.
abstract int getScanCode()
Return the unique scan code associated with the trigger.
abstract boolean isAvailable()
Checks if the trigger is available on the device.
abstract boolean isEnabled()
Checks if the trigger is enabled.
abstract boolean setEnabled(boolean enabled)
Enables or disables the trigger by specifying a boolean value.

Public Methods

public abstract int getId ()

Added in revision 5

Return the unique ID associated with the trigger.

Returns
  • int the trigger unique ID.

public abstract String getName ()

Added in revision 5

Return the name associated with the trigger.

Returns
  • int the trigger name.

public abstract int getScanCode ()

Added in revision 5

Return the unique scan code associated with the trigger.

Returns
  • int the scan code.

public abstract boolean isAvailable ()

Added in revision 13

Checks if the trigger is available on the device.

Returns
  • boolean true in case the trigger is available, false otherwise or in case of failure.

public abstract boolean isEnabled ()

Added in revision 5

Checks if the trigger is enabled.

Returns
  • boolean true in case the trigger is enabled, false otherwise or in case of failure.

public abstract boolean setEnabled (boolean enabled)

Added in revision 5

Enables or disables the trigger by specifying a boolean value.

Parameters
enabled boolean that specifies whether or not the trigger will be enabled.
Returns
  • boolean true in case of success, false otherwise.