public final enum

UnlockPolicy

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

Class Overview

Enumerative representing the Policy to unlock the Cradle.

Summary

Enum Values
UnlockPolicy  UNLOCK_POLICY_BOTH  Cradle can be unlocked both from power menu and notification. 
UnlockPolicy  UNLOCK_POLICY_NONE  Unlock feature is disabled. 
UnlockPolicy  UNLOCK_POLICY_NOTIFICATION  A notification with unlock button is shown to the user if the cradle is locked. 
UnlockPolicy  UNLOCK_POLICY_NOT_SUPPORTED  Unlock policy not supported. 
UnlockPolicy  UNLOCK_POLICY_POWER  Cradle can be unlocked from power menu. 
UnlockPolicy  UNLOCK_POLICY_UNKNOWN  Unknown unlock policy. 
Public Methods
static UnlockPolicy fromInt(int n)
Retrieves the corresponding UnlockPolicy value, from a valid integer.
int toInt()
Converts the UnlockPolicy enum to its integer representing value.
static UnlockPolicy valueOf(String name)
final static UnlockPolicy[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final UnlockPolicy UNLOCK_POLICY_BOTH

Added in revision 32

Cradle can be unlocked both from power menu and notification.

public static final UnlockPolicy UNLOCK_POLICY_NONE

Added in revision 32

Unlock feature is disabled.

public static final UnlockPolicy UNLOCK_POLICY_NOTIFICATION

Added in revision 32

A notification with unlock button is shown to the user if the cradle is locked.

public static final UnlockPolicy UNLOCK_POLICY_NOT_SUPPORTED

Added in revision 32

Unlock policy not supported.

public static final UnlockPolicy UNLOCK_POLICY_POWER

Added in revision 32

Cradle can be unlocked from power menu.

public static final UnlockPolicy UNLOCK_POLICY_UNKNOWN

Added in revision 32

Unknown unlock policy.

Public Methods

public static UnlockPolicy fromInt (int n)

Added in revision 32

Retrieves the corresponding UnlockPolicy value, from a valid integer.

Parameters
n int
Returns
  • Type the corresponding one.

public int toInt ()

Added in revision 32

Converts the UnlockPolicy enum to its integer representing value.

Returns
  • int

public static UnlockPolicy valueOf (String name)

Added in revision 32

public static final UnlockPolicy[] values ()

Added in revision 32