DevicePolicyManager.GetResolvedDeviceWidePolicy(PolicyIdentifier) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the resolved value of the given device-wide policy.
[Android.Runtime.Register("getResolvedDeviceWidePolicy", "(Landroid/app/admin/PolicyIdentifier;)Ljava/lang/Object;", "GetGetResolvedDeviceWidePolicy_Landroid_app_admin_PolicyIdentifier_Handler", ApiSince=37)]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public virtual Java.Lang.Object? GetResolvedDeviceWidePolicy(Android.App.Admin.PolicyIdentifier id);
[<Android.Runtime.Register("getResolvedDeviceWidePolicy", "(Landroid/app/admin/PolicyIdentifier;)Ljava/lang/Object;", "GetGetResolvedDeviceWidePolicy_Landroid_app_admin_PolicyIdentifier_Handler", ApiSince=37)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
abstract member GetResolvedDeviceWidePolicy : Android.App.Admin.PolicyIdentifier -> Java.Lang.Object
override this.GetResolvedDeviceWidePolicy : Android.App.Admin.PolicyIdentifier -> Java.Lang.Object
Parameters
Which policy to retrieve.
Returns
The resolved value of the policy.
- Attributes
Remarks
Returns the resolved value of the given device-wide policy. The resolved value is the value that is currently being enforced on the device after conflict resolution has been performed between all the policies set by all admins at all active scopes. The value can change when the current user changes or when users log in or out.
Use getPolicy(PolicyIdentifier, int) to get the value set by the caller, which may differ.
Can only be applied on a RESOURCE_DEVICE_WIDE policy. Use getResolvedPerUserPolicy(PolicyIdentifier) for per-user policies.
Returns null when the policy is not set.
Android reference for android.app.admin.DevicePolicyManager.getResolvedDeviceWidePolicy.
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.