public static final enum

WifiManager.SleepPolicy

extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ com.datalogic.device.wifi.WifiManager.SleepPolicy

Class Overview

The policy for deciding when Wi-Fi should go to sleep (which will in turn switch to using the mobile data as an Internet connection).

Summary

Enum Values
WifiManager.SleepPolicy  DEFAULT  Sleep shortly after the turning off. 
WifiManager.SleepPolicy  NEVER  Never go to sleep. 
WifiManager.SleepPolicy  NEVER_WHILE_PLUGGED  Sleep shortly after the turning off the device is on battery, and never go to sleep when the device is plugged in. 
Public Methods
static WifiManager.SleepPolicy valueOf(String name)
final static SleepPolicy[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final WifiManager.SleepPolicy DEFAULT

Added in revision 32

Sleep shortly after the turning off.

public static final WifiManager.SleepPolicy NEVER

Added in revision 32

Never go to sleep.

public static final WifiManager.SleepPolicy NEVER_WHILE_PLUGGED

Added in revision 32

Sleep shortly after the turning off the device is on battery, and never go to sleep when the device is plugged in.

Public Methods

public static WifiManager.SleepPolicy valueOf (String name)

Added in revision 32

public static final SleepPolicy[] values ()

Added in revision 32