public final enum

MappingTriggerPolicy

extends Enum<E extends Enum<E>>
implements Parcelable
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ com.datalogic.device.input.MappingTriggerPolicy

Class Overview

The key event trigger policy.

Summary

Enum Values
MappingTriggerPolicy  DOWN  Triggered whenever a key is pressed down  
MappingTriggerPolicy  LONG_PRESS_TIMED_OUT  Triggered when a long press is detected after pressing for a certain amount of time. 
MappingTriggerPolicy  LONG_PRESS_UP  Triggered when users release the key after a long press. 
MappingTriggerPolicy  MULTIPLE_PRESS_UP  Triggered when a multiple press is detected, such as a double click. 
MappingTriggerPolicy  SINGLE_PRESS_UP  Triggered when a single press is detected. 
MappingTriggerPolicy  UP  Triggered whenever a key is releasing  
MappingTriggerPolicy  VERY_LONG_PRESS_TIMED_OUT  Triggered when a very long press is detected after pressing for a certain amount of time. 
MappingTriggerPolicy  VERY_LONG_PRESS_UP  Triggered when users release the key after a very long press. 
[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public static final Creator<MappingTriggerPolicy> CREATOR
Public Methods
int describeContents()
static MappingTriggerPolicy valueOf(String name)
final static MappingTriggerPolicy[] values()
void writeToParcel(Parcel parcel, int flags)
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface android.os.Parcelable
From interface java.lang.Comparable

Enum Values

public static final MappingTriggerPolicy DOWN

Added in revision 35

Triggered whenever a key is pressed down

public static final MappingTriggerPolicy LONG_PRESS_TIMED_OUT

Added in revision 35

Triggered when a long press is detected after pressing for a certain amount of time. You may configure the timeout by ARG_LONG_PRESS_TIMEOUT

public static final MappingTriggerPolicy LONG_PRESS_UP

Added in revision 35

Triggered when users release the key after a long press.
Note that you must use this policy together with LONG_PRESS_TIMED_OUT. If you want to map some actions to this event only, prepare a Map with LONG_PRESS_TIMED_OUT mapped to null. For example:
Map{ LONG_PRESS_TIMED_OUT -> null, LONG_PRESS_UP -> [your customized action]}
Then use this map as the mappingInfo (second parameter) of mapKey(VScanEntry, Map)

public static final MappingTriggerPolicy MULTIPLE_PRESS_UP

Added in revision 35

Triggered when a multiple press is detected, such as a double click. You may configure the arguments of the multiple press by using these arguments: ARG_MULTIPLE_PRESS_COUNT (2 for double click), ARG_MULTIPLE_PRESS_MAX_INTERVAL, ARG_MULTIPLE_PRESS_MAX_BREAK

public static final MappingTriggerPolicy SINGLE_PRESS_UP

Added in revision 35

Triggered when a single press is detected.

public static final MappingTriggerPolicy UP

Added in revision 35

Triggered whenever a key is releasing

public static final MappingTriggerPolicy VERY_LONG_PRESS_TIMED_OUT

Added in revision 35

Triggered when a very long press is detected after pressing for a certain amount of time. You may configure the timeout by ARG_VERY_LONG_PRESS_TIMEOUT

public static final MappingTriggerPolicy VERY_LONG_PRESS_UP

Added in revision 35

Triggered when users release the key after a very long press.
Note that you must use this policy together with VERY_LONG_PRESS_TIMED_OUT. If you want to map some actions to this event only, prepare a Map with VERY_LONG_PRESS_TIMED_OUT mapped to null. For example:
Map{ VERY_LONG_PRESS_TIMED_OUT -> null, VERY_LONG_PRESS_UP -> [your customized action]}
Then use this map as the mappingInfo (second parameter) of mapKey(VScanEntry, Map)

Fields

public static final Creator<MappingTriggerPolicy> CREATOR

Added in revision 35

Public Methods

public int describeContents ()

Added in revision 35

public static MappingTriggerPolicy valueOf (String name)

Added in revision 35

public static final MappingTriggerPolicy[] values ()

Added in revision 35

public void writeToParcel (Parcel parcel, int flags)

Added in revision 35