ActivityManager.IsBackgroundRestricted Property

Definition

Query whether the user has enabled background restrictions for this app.

public virtual bool IsBackgroundRestricted { [Android.Runtime.Register("isBackgroundRestricted", "()Z", "GetIsBackgroundRestrictedHandler", ApiSince=28)] get; }
[<get: Android.Runtime.Register("isBackgroundRestricted", "()Z", "GetIsBackgroundRestrictedHandler", ApiSince=28)>]
member this.IsBackgroundRestricted : bool

Property Value

Boolean

true if user has enforced background restrictions for this app, false otherwise.

Attributes

Remarks

Java documentation for android.app.ActivityManager.isBackgroundRestricted().

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