Compartilhar via


PackageManager.VerifyPendingInstall(Int32, PackageInstallVerification) Method

Definition

Allows a package listening to the Intent#ACTION_PACKAGE_NEEDS_VERIFICATION package verification broadcast to respond to the package manager.

[Android.Runtime.Register("verifyPendingInstall", "(II)V", "GetVerifyPendingInstall_IIHandler")]
public abstract void VerifyPendingInstall (int id, Android.Content.PM.PackageInstallVerification verificationCode);
[<Android.Runtime.Register("verifyPendingInstall", "(II)V", "GetVerifyPendingInstall_IIHandler")>]
abstract member VerifyPendingInstall : int * Android.Content.PM.PackageInstallVerification -> unit

Parameters

id
Int32

pending package identifier as passed via the PackageManager#EXTRA_VERIFICATION_ID Intent extra.

verificationCode
PackageInstallVerification

either PackageManager#VERIFICATION_ALLOW or PackageManager#VERIFICATION_REJECT.

Attributes

Exceptions

if the caller does not have the PACKAGE_VERIFICATION_AGENT permission.

Remarks

Allows a package listening to the Intent#ACTION_PACKAGE_NEEDS_VERIFICATION package verification broadcast to respond to the package manager. The response must include the verificationCode which is one of PackageManager#VERIFICATION_ALLOW or PackageManager#VERIFICATION_REJECT.

Java documentation for android.content.pm.PackageManager.verifyPendingInstall(int, int).

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