public class PowerManagerWrapper
extends java.lang.Object
Constructor and Description |
---|
PowerManagerWrapper() |
Modifier and Type | Method and Description |
---|---|
static PowerManagerWrapper |
getInstance()
Singleton implementation for PowerManagerWrapper.
|
boolean |
isDeviceIdleMode(android.content.Context connectionContext)
Wrap the calling to method isDeviceIdleMode() of final class PowerManager.
|
boolean |
isIgnoringBatteryOptimizations(android.content.Context connectionContext)
Wrap the calling to method isIgnoringBatteryOptimizations() of final class PowerManager.
|
public static PowerManagerWrapper getInstance()
public boolean isDeviceIdleMode(android.content.Context connectionContext)
connectionContext
- Context used to query if app is in idle modepublic boolean isIgnoringBatteryOptimizations(android.content.Context connectionContext)
connectionContext
- Context used to query if app is ignoring battery optimizations