Freigeben über


PowerManager.IsDeviceLightIdleMode Property

Definition

Returns true if the device is currently in light idle mode.

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

Property Value

Returns true if currently in active device light idle mode, else false. This is when light idle mode restrictions are being actively applied; it will return false if the device is in a long-term idle mode but currently running a maintenance window where restrictions have been lifted.

Attributes

Remarks

Returns true if the device is currently in light idle mode. This happens when a device has had its screen off for a short time, switching it into a batching mode where we execute jobs, syncs, networking on a batching schedule. You can monitor for changes to this state with #ACTION_DEVICE_LIGHT_IDLE_MODE_CHANGED.

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

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