Package 

Class BackgroundPowerSaver

  • All Implemented Interfaces:
    android.app.Application.ActivityLifecycleCallbacks

    @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.

    • Method Summary

      Modifier and Type Method Description
      • Methods inherited from class org.altbeacon.beacon.powersave.BackgroundPowerSaverInternal

        onActivityCreated, onActivityDestroyed, onActivityPaused, onActivityResumed, onActivitySaveInstanceState, onActivityStarted, onActivityStopped
      • Methods inherited from class android.app.Application.ActivityLifecycleCallbacks

        onActivityCreated, onActivityDestroyed, onActivityPaused, onActivityPostCreated, onActivityPostDestroyed, onActivityPostPaused, onActivityPostResumed, onActivityPostSaveInstanceState, onActivityPostStarted, onActivityPostStopped, onActivityPreCreated, onActivityPreDestroyed, onActivityPrePaused, onActivityPreResumed, onActivityPreSaveInstanceState, onActivityPreStarted, onActivityPreStopped, onActivityResumed, onActivitySaveInstanceState, onActivityStarted, onActivityStopped
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BackgroundPowerSaver

        BackgroundPowerSaver(Context context)
        Constructs a new BackgroundPowerSaver using the default background determination strategy
      • BackgroundPowerSaver

        BackgroundPowerSaver(Context context, boolean countActiveActivityStrategy)