public final enum

SosTriggerMethod

extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ com.datalogic.device.emergency.SosTriggerMethod

Class Overview

The SosTriggerMethod enumeration defines the SOS trigger activation methods.

Summary

Enum Values
SosTriggerMethod  LONG_PRESS_TIMEOUT  Long press timeout: The SOS action is triggered when the KEYCODE_SOS trigger is held down for the duration specified by SOS_TRIGGER_LONG_PRESS_TIMEOUT
SosTriggerMethod  MULTIPRESS  Multipress: The SOS action is triggered when the KEYCODE_SOS trigger is pressed multiple times in sequence, as specified by SOS_TRIGGER_MULTIPRESS_COUNT
SosTriggerMethod  SINGLE_PRESS  Single press: The SOS action is triggered with a single press of the KEYCODE_SOS trigger. 
Public Methods
static SosTriggerMethod fromInt(int n)
Converts an integer to its corresponding SosTriggerMethod value.
int toInt()
Converts the SosTriggerMethod to its integer corresponding value.
static SosTriggerMethod valueOf(String name)
final static SosTriggerMethod[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final SosTriggerMethod LONG_PRESS_TIMEOUT

Added in revision 46

Long press timeout: The SOS action is triggered when the KEYCODE_SOS trigger is held down for the duration specified by SOS_TRIGGER_LONG_PRESS_TIMEOUT.

public static final SosTriggerMethod MULTIPRESS

Added in revision 46

Multipress: The SOS action is triggered when the KEYCODE_SOS trigger is pressed multiple times in sequence, as specified by SOS_TRIGGER_MULTIPRESS_COUNT.

public static final SosTriggerMethod SINGLE_PRESS

Added in revision 46

Single press: The SOS action is triggered with a single press of the KEYCODE_SOS trigger.

Public Methods

public static SosTriggerMethod fromInt (int n)

Added in revision 46

Converts an integer to its corresponding SosTriggerMethod value.

Parameters
n the integer value to convert
Returns
  • SosTriggerMethod

public int toInt ()

Added in revision 46

Converts the SosTriggerMethod to its integer corresponding value.

Returns
  • int

public static SosTriggerMethod valueOf (String name)

Added in revision 46

public static final SosTriggerMethod[] values ()

Added in revision 46