RestrictionsManager.ApplicationRestrictions Property

Definition

Returns any available set of application-specific restrictions applicable to this application.

public virtual Android.OS.Bundle? ApplicationRestrictions { [Android.Runtime.Register("getApplicationRestrictions", "()Landroid/os/Bundle;", "GetGetApplicationRestrictionsHandler")] get; }
[<get: Android.Runtime.Register("getApplicationRestrictions", "()Landroid/os/Bundle;", "GetGetApplicationRestrictionsHandler")>]
member this.ApplicationRestrictions : Android.OS.Bundle

Property Value

the application restrictions as a Bundle. Returns null if there are no restrictions.

        &lt;p&gt;Starting from Android version <code data-dev-comment-type="c">android.os.Build.VERSION_CODES#UPSIDE_DOWN_CAKE</code>,
        it is possible for there to be multiple managing apps on the device with the ability to set
        restrictions, e.g. a Device Policy Controller (DPC) and a Supervision admin.
        This API will only return the restrictions set by the DPCs. To retrieve restrictions
        set by all managing apps, use
        <code data-dev-comment-type="c">android.content.RestrictionsManager#getApplicationRestrictionsPerAdmin</code> instead.
Attributes

Remarks

Returns any available set of application-specific restrictions applicable to this application.

Java documentation for android.content.RestrictionsManager.getApplicationRestrictions().

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