Language

DevicePolicyManager.GetResolvedPerUserPolicy(PolicyIdentifier) Method

Definition

Returns the resolved value of the given per-user policy.

[Android.Runtime.Register("getResolvedPerUserPolicy", "(Landroid/app/admin/PolicyIdentifier;)Ljava/lang/Object;", "GetGetResolvedPerUserPolicy_Landroid_app_admin_PolicyIdentifier_Handler", ApiSince=37)]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public virtual Java.Lang.Object? GetResolvedPerUserPolicy(Android.App.Admin.PolicyIdentifier id);
[<Android.Runtime.Register("getResolvedPerUserPolicy", "(Landroid/app/admin/PolicyIdentifier;)Ljava/lang/Object;", "GetGetResolvedPerUserPolicy_Landroid_app_admin_PolicyIdentifier_Handler", ApiSince=37)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
abstract member GetResolvedPerUserPolicy : Android.App.Admin.PolicyIdentifier -> Java.Lang.Object
override this.GetResolvedPerUserPolicy : Android.App.Admin.PolicyIdentifier -> Java.Lang.Object

Parameters

id
PolicyIdentifier

Which policy to retrieve.

Returns

The resolved value of the policy.

Attributes

Remarks

Returns the resolved value of the given per-user policy. The resolved value is the value that is currently being enforced on the device for the context user after conflict resolution has been performed between all the policies set by all admins at all active scopes.

Use getPolicy(PolicyIdentifier, int) to get the value set by the caller, which may differ.

Can only be applied on a RESOURCE_PER_USER policy. Use getResolvedDeviceWidePolicy(PolicyIdentifier) for device-wide policies.

Returns null when the policy is not set.

Android reference for android.app.admin.DevicePolicyManager.getResolvedPerUserPolicy.

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