RestrictionsManager.ApplicationRestrictions Свойство

Определение

Возвращает любой доступный набор ограничений для конкретного приложения, применимых к этому приложению.

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

Значение свойства

ограничения приложения в виде пакета. Возвращает значение NULL, если нет ограничений.

        &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.
Атрибуты

Комментарии

Возвращает любой доступный набор ограничений для конкретного приложения, применимых к этому приложению.

Документация по Java для android.content.RestrictionsManager.getApplicationRestrictions().

Части этой страницы являются изменениями, основанными на работе, созданной и совместно используемой проектом и используемой в соответствии с условиями, Creative Commons 2.5 Attribution License Creative Commons 2.5 Attribution License.

Применяется к