Langue

RestrictionsManager.ApplicationRestrictions Propriété

Définition

Retourne tout ensemble disponible de restrictions spécifiques à l’application applicables à cette 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

Valeur de propriété

restrictions d’application en tant que bundle. Retourne null s’il n’existe aucune restriction.

        &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.
Attributs

Remarques

Retourne tout ensemble disponible de restrictions spécifiques à l’application applicables à cette application.

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

Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.

S’applique à