Android.Content.PM.PackageManager.VerifyPendingInstall Method
Allows a package listening to the Android.Content.Intent.ActionPackageNeedsVerification to respond to the package manager.

Syntax

[Android.Runtime.Register("verifyPendingInstall", "(II)V", "GetVerifyPendingInstall_IIHandler")]
public abstract void VerifyPendingInstall (int id, [Android.Runtime.GeneratedEnum] PackageInstallVerification verificationCode)

Parameters

id
pending package identifier as passed via the PackageManager.ExtraVerificationId Intent extra.
verificationCode
either PackageManager.VerificationAllow or PackageManager.VerificationReject.

Exceptions

TypeReason
Java.Lang.SecurityExceptionif the caller does not have the PACKAGE_VERIFICATION_AGENT permission.

Remarks

Allows a package listening to the Android.Content.Intent.ActionPackageNeedsVerification to respond to the package manager. The response must include the verificationCode which is one of PackageManager.VerificationAllow or PackageManager.VerificationReject.

[Android Documentation]

Requirements

Namespace: Android.Content.PM
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 14