Language

DevicePolicyManager.IsCallerApplicationRestrictionsManagingPackage Property

Definition

Determines whether the caller has been granted permission to manage application restrictions for the calling user as a delegate.

public virtual bool IsCallerApplicationRestrictionsManagingPackage { [Android.Runtime.Register("isCallerApplicationRestrictionsManagingPackage", "()Z", "GetIsCallerApplicationRestrictionsManagingPackageHandler", ApiSince=24)] get; }
[<get: Android.Runtime.Register("isCallerApplicationRestrictionsManagingPackage", "()Z", "GetIsCallerApplicationRestrictionsManagingPackageHandler", ApiSince=24)>]
member this.IsCallerApplicationRestrictionsManagingPackage : bool

Property Value

true if the caller has the application-restrictions delegation; otherwise, false.

Attributes

Remarks

Determines whether the caller has been granted permission to manage application restrictions for the calling user as a delegate.

On Android 7 (API 24 and 25), this is done by comparing the calling Linux UID with the UID of the package specified by that method. On Android 8 (API 26) and later, it checks whether the calling package has the application-restrictions delegation.

This member is deprecated. From android.os.Build.VERSION_CODES#O. Use #getDelegatedScopes instead.

Java documentation for android.app.admin.DevicePolicyManager.isCallerApplicationRestrictionsManagingPackage().

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