PackageManager.ExtendVerificationTimeout 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 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 abstract void ExtendVerificationTimeout(int id, Android.Content.PM.PackageInstallVerification verificationCodeAtTimeout, long millisecondsToDelay);
[<Android.Runtime.Register("extendVerificationTimeout", "(IIJ)V", "GetExtendVerificationTimeout_IIJHandler")>]
abstract member ExtendVerificationTimeout : int * Android.Content.PM.PackageInstallVerification * int64 -> unit
Parameters
- id
- Int32
pending package identifier as passed via the
PackageManager#EXTRA_VERIFICATION_ID Intent extra.
- verificationCodeAtTimeout
- PackageInstallVerification
either
PackageManager#VERIFICATION_ALLOW or
PackageManager#VERIFICATION_REJECT. If
verificationCodeAtTimeout is neither
PackageManager#VERIFICATION_ALLOW or
PackageManager#VERIFICATION_REJECT, then
verificationCodeAtTimeout will default to
PackageManager#VERIFICATION_REJECT.
- millisecondsToDelay
- Int64
the amount of time requested for the timeout.
Must be positive and less than
PackageManager#MAXIMUM_VERIFICATION_TIMEOUT. If
millisecondsToDelay is out of bounds,
millisecondsToDelay will be set to the closest in
bounds value; namely, 0 or
PackageManager#MAXIMUM_VERIFICATION_TIMEOUT.
- 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 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#VERIFICATION_ALLOW or PackageManager#VERIFICATION_REJECT.
This method may only be called once per package id. Additional calls will have no effect.
Java documentation for android.content.pm.PackageManager.extendVerificationTimeout(int, int, long).
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.