public final enum

SuspendTimeout

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

Class Overview

The SuspendTimeout enumeration defines different available display sleep timeouts.

Summary

Enum Values
SuspendTimeout  MINUTES_1  One minute  
SuspendTimeout  MINUTES_10  Ten minutes  
SuspendTimeout  MINUTES_15  Fifteen minutes  
SuspendTimeout  MINUTES_2  Two minutes  
SuspendTimeout  MINUTES_20  Twenty minutes  
SuspendTimeout  MINUTES_3  Three minutes  
SuspendTimeout  MINUTES_30  Thirty minutes  
SuspendTimeout  MINUTES_4  Four minutes  
SuspendTimeout  MINUTES_5  Five minutes  
SuspendTimeout  NEVER  Endless timeout, screen will not turn off  
SuspendTimeout  SECONDS_15  Fifteen seconds  
SuspendTimeout  SECONDS_30  Thirty seconds  
Public Methods
static SuspendTimeout fromSeconds(int seconds)
Converts an amount of seconds to the right SuspendTimeout value, if available.
int toSeconds()
Converts the SuspendTimeout to the corresponding number of seconds.
static SuspendTimeout valueOf(String name)
final static SuspendTimeout[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final SuspendTimeout MINUTES_1

Added in revision 1

One minute

public static final SuspendTimeout MINUTES_10

Added in revision 1

Ten minutes

public static final SuspendTimeout MINUTES_15

Added in revision 1

Fifteen minutes

public static final SuspendTimeout MINUTES_2

Added in revision 1

Two minutes

public static final SuspendTimeout MINUTES_20

Added in revision 1

Twenty minutes

public static final SuspendTimeout MINUTES_3

Added in revision 1

Three minutes

public static final SuspendTimeout MINUTES_30

Added in revision 1

Thirty minutes

public static final SuspendTimeout MINUTES_4

Added in revision 1

Four minutes

public static final SuspendTimeout MINUTES_5

Added in revision 1

Five minutes

public static final SuspendTimeout NEVER

Added in revision 1

Endless timeout, screen will not turn off

public static final SuspendTimeout SECONDS_15

Added in revision 1

Fifteen seconds

public static final SuspendTimeout SECONDS_30

Added in revision 1

Thirty seconds

Public Methods

public static SuspendTimeout fromSeconds (int seconds)

Added in revision 1

Converts an amount of seconds to the right SuspendTimeout value, if available.

Parameters
seconds int the amount of seconds
Returns
  • SuspendTimeout the corresponding or the most close SuspendTimeout value. If no corresponding value is found, NEVER will be chosen.

public int toSeconds ()

Added in revision 1

Converts the SuspendTimeout to the corresponding number of seconds.

Returns
  • int a number representing the amount of seconds associated.

public static SuspendTimeout valueOf (String name)

Added in revision 1

public static final SuspendTimeout[] values ()

Added in revision 1