MockPackageManager.ExtendVerificationTimeout Method

Definition

Allows a package listening to the ActionPackageNeedsVerification to extend the default timeout for a response and declare what action to perform after the timeout occurs.

[Android.Runtime.Register("extendVerificationTimeout", "(IIJ)V", "GetExtendVerificationTimeout_IIJHandler")]
public override void ExtendVerificationTimeout (int id, Android.Content.PM.PackageInstallVerification verificationCodeAtTimeout, long millisecondsToDelay);
[<Android.Runtime.Register("extendVerificationTimeout", "(IIJ)V", "GetExtendVerificationTimeout_IIJHandler")>]
override this.ExtendVerificationTimeout : int * Android.Content.PM.PackageInstallVerification * int64 -> unit

Parameters

id
Int32

pending package identifier as passed via the ExtraVerificationId Intent extra.

verificationCodeAtTimeout
PackageInstallVerification

either VerificationAllow or VerificationReject. If verificationCodeAtTimeout is neither VerificationAllow or VerificationReject, then verificationCodeAtTimeout will default to VerificationReject.

millisecondsToDelay
Int64

the amount of time requested for the timeout. Must be positive and less than MaximumVerificationTimeout. If millisecondsToDelay is out of bounds, millisecondsToDelay will be set to the closest in bounds value; namely, 0 or MaximumVerificationTimeout.

Attributes

Remarks

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