Android.Content.PM.PackageManager.ExtendVerificationTimeout Method
Allows a package listening to the Android.Content.Intent.ActionPackageNeedsVerification to extend the default timeout for a response and declare what action to perform after the timeout occurs.

Syntax

[Android.Runtime.Register("extendVerificationTimeout", "(IIJ)V", "GetExtendVerificationTimeout_IIJHandler")]
public abstract void ExtendVerificationTimeout (int id, [Android.Runtime.GeneratedEnum] PackageInstallVerification verificationCodeAtTimeout, long millisecondsToDelay)

Parameters

id
pending package identifier as passed via the PackageManager.ExtraVerificationId Intent extra.
verificationCodeAtTimeout
either PackageManager.VerificationAllow or PackageManager.VerificationReject. If verificationCodeAtTimeout is neither PackageManager.VerificationAllow or PackageManager.VerificationReject, then verificationCodeAtTimeout will default to PackageManager.VerificationReject.
millisecondsToDelay
the amount of time requested for the timeout. Must be positive and less than PackageManager.MaximumVerificationTimeout. If millisecondsToDelay is out of bounds, millisecondsToDelay will be set to the closest in bounds value; namely, 0 or PackageManager.MaximumVerificationTimeout.

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 extend the default timeout for a response and declare what action to perform after the timeout occurs. The response must include the verificationCodeAtTimeout which is one of PackageManager.VerificationAllow or PackageManager.VerificationReject. This method may only be called once per package id. Additional calls will have no effect.

[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 17