to top
Datalogic APIs
public final enum

ScreensaverPolicy

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

Summary

Enum Values
ScreensaverPolicy  CRADLE_CHARGING  Screensaver starts when device is charging in a cradle  
ScreensaverPolicy  UNKNOWN  Unknown policy  
ScreensaverPolicy  USB_CHARGING  Screensaver starts when device is charging via USB cable  
Public Methods
static ScreensaverPolicy fromInt(int value)
Retrieves the corresponding ScreensaverPolicy value, from a valid integer.
static ScreensaverPolicy fromString(String name)
Retrieves the corresponding ScreensaverPolicy value, from a valid string.
int toInt()
Converts the ScreensaverPolicy enum to its integer representing value.
String toString()
Converts the ScreensaverPolicy enum to its string representing value.
static ScreensaverPolicy valueOf(String name)
final static ScreensaverPolicy[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final ScreensaverPolicy CRADLE_CHARGING

Added in revision 44

Screensaver starts when device is charging in a cradle

public static final ScreensaverPolicy UNKNOWN

Added in revision 44

Unknown policy

public static final ScreensaverPolicy USB_CHARGING

Added in revision 44

Screensaver starts when device is charging via USB cable

Public Methods

public static ScreensaverPolicy fromInt (int value)

Added in revision 44

Retrieves the corresponding ScreensaverPolicy value, from a valid integer.

Parameters
value int
Returns
  • Type the corresponding one.

public static ScreensaverPolicy fromString (String name)

Added in revision 44

Retrieves the corresponding ScreensaverPolicy value, from a valid string.

Parameters
name String
Returns
  • Type the corresponding one.

public int toInt ()

Added in revision 44

Converts the ScreensaverPolicy enum to its integer representing value.

Returns
  • int

public String toString ()

Converts the ScreensaverPolicy enum to its string representing value.

Returns
  • String

public static ScreensaverPolicy valueOf (String name)

Added in revision 44

public static final ScreensaverPolicy[] values ()

Added in revision 44