-
- All Implemented Interfaces:
-
androidx.lifecycle.DefaultLifecycleObserver,androidx.lifecycle.LifecycleObserver
public class BackgroundPowerSaverInternal implements DefaultLifecycleObserver
-
-
Constructor Summary
Constructors Constructor Description BackgroundPowerSaverInternal(Context context)Constructs a new BackgroundPowerSaver using the default background determination strategy
-
Method Summary
Modifier and Type Method Description voidonStart(@NonNull() LifecycleOwner owner)voidonStop(@NonNull() LifecycleOwner owner)voidenableDefaultBackgroundStateInference()-
-
Constructor Detail
-
BackgroundPowerSaverInternal
BackgroundPowerSaverInternal(Context context)
Constructs a new BackgroundPowerSaver using the default background determination strategy
-
-
Method Detail
-
onStart
void onStart(@NonNull() LifecycleOwner owner)
-
onStop
void onStop(@NonNull() LifecycleOwner owner)
-
enableDefaultBackgroundStateInference
void enableDefaultBackgroundStateInference()
-
-
-
-