Settings.ActionIgnoreBatteryOptimizationSettings Field

Definition

Activity Action: Show screen for controlling which apps can ignore battery optimizations.

[Android.Runtime.Register("ACTION_IGNORE_BATTERY_OPTIMIZATION_SETTINGS", ApiSince=23)]
public const string ActionIgnoreBatteryOptimizationSettings;
[<Android.Runtime.Register("ACTION_IGNORE_BATTERY_OPTIMIZATION_SETTINGS", ApiSince=23)>]
val mutable ActionIgnoreBatteryOptimizationSettings : string

Field Value

Attributes

Remarks

Activity Action: Show screen for controlling which apps can ignore battery optimizations.

Input: Nothing.

Output: Nothing.

You can use android.os.PowerManager#isIgnoringBatteryOptimizations PowerManager.isIgnoringBatteryOptimizations() to determine if an application is already ignoring optimizations. You can use #ACTION_REQUEST_IGNORE_BATTERY_OPTIMIZATIONS to ask the user to put you on this list.

Java documentation for android.provider.Settings.ACTION_IGNORE_BATTERY_OPTIMIZATION_SETTINGS.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to