PackageManager.VerifyPendingInstall(Int32, PackageInstallVerification) 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.
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.