Partager via


PolicyUpdateReceiver.ActionDevicePolicySetResult Field

Definition

Action for a broadcast sent to admins to communicate back the result of setting a policy in DevicePolicyManager.

[Android.Runtime.Register("ACTION_DEVICE_POLICY_SET_RESULT", ApiSince=34)]
public const string ActionDevicePolicySetResult;
[<Android.Runtime.Register("ACTION_DEVICE_POLICY_SET_RESULT", ApiSince=34)>]
val mutable ActionDevicePolicySetResult : string

Field Value

Attributes

Remarks

Action for a broadcast sent to admins to communicate back the result of setting a policy in DevicePolicyManager.

Admins wishing to receive these updates (via #onPolicySetResult) should include this action in the intent filter for their receiver in the manifest, the receiver must be protected by android.Manifest.permission#BIND_DEVICE_ADMIN to ensure that only the system can send updates.

Admins shouldn't implement #onReceive and should instead implement #onPolicySetResult.

Java documentation for android.app.admin.PolicyUpdateReceiver.ACTION_DEVICE_POLICY_SET_RESULT.

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