-
- All Implemented Interfaces:
-
androidx.lifecycle.DefaultLifecycleObserver,androidx.lifecycle.LifecycleObserver
@Deprecated() public class BackgroundPowerSaver extends BackgroundPowerSaverInternal
Simply creating an instance of this class and holding a reference to it in your Application can improve battery life by 60% by slowing down scans when your app is in the background.
-
-
Constructor Summary
Constructors Constructor Description BackgroundPowerSaver(Context context)Constructs a new BackgroundPowerSaver using the default background determination strategy BackgroundPowerSaver(Context context, boolean countActiveActivityStrategy)
-
Method Summary
Modifier and Type Method Description -
Methods inherited from class org.altbeacon.beacon.powersave.BackgroundPowerSaverInternal
enableDefaultBackgroundStateInference, onStart, onStop -
Methods inherited from class androidx.lifecycle.DefaultLifecycleObserver
onCreate, onDestroy, onPause, onResume, onStart, onStop -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-