Android.Test.Mock.MockPackageManager.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 override void ExtendVerificationTimeout (int id, [Android.Runtime.GeneratedEnum] Android.Content.PM.PackageInstallVerification verificationCodeAtTimeout, long millisecondsToDelay)

Parameters

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

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 Android.Content.PM.PackageManager.VerificationAllow or Android.Content.PM.PackageManager.VerificationReject. This method may only be called once per package id. Additional calls will have no effect.

[Android Documentation]

Requirements

Namespace: Android.Test.Mock
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 17