Sdílet prostřednictvím


PowerManager.IsLowPowerStandbyEnabled Property

Definition

Returns true if Low Power Standby is enabled.

public virtual bool IsLowPowerStandbyEnabled { [Android.Runtime.Register("isLowPowerStandbyEnabled", "()Z", "GetIsLowPowerStandbyEnabledHandler", ApiSince=33)] get; }
[<get: Android.Runtime.Register("isLowPowerStandbyEnabled", "()Z", "GetIsLowPowerStandbyEnabledHandler", ApiSince=33)>]
member this.IsLowPowerStandbyEnabled : bool

Property Value

Attributes

Remarks

Returns true if Low Power Standby is enabled.

When Low Power Standby is enabled, apps (including apps running foreground services) are subject to additional restrictions while the device is non-interactive, outside of device idle maintenance windows: Their network access is disabled, and any wakelocks they hold are ignored.

When Low Power Standby is enabled or disabled, a Intent with action #ACTION_LOW_POWER_STANDBY_ENABLED_CHANGED is broadcast to registered receivers.

Java documentation for android.os.PowerManager.isLowPowerStandbyEnabled().

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