U2fPendingIntent
Stay organized with collections
Save and categorize content based on your preferences.
This interface is deprecated.
Please use Fido
APIs instead.
Interface for apps to launch a PendingIntent
.
Public Method Summary
abstract boolean |
|
abstract void |
|
Public Methods
public abstract boolean
hasPendingIntent
()
Returns true if an Activity
can
launch the returned PendingIntent
.
Returns
- true if the result has a
PendingIntent
public abstract void
launchPendingIntent
( Activity
activity, int
requestCode)
Launches the Pending intent
Parameters
Throws
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eU2fPendingIntent\u003c/code\u003e is deprecated and developers should use Fido APIs instead.\u003c/p\u003e\n"],["\u003cp\u003eThis interface allows apps to launch a \u003ccode\u003ePendingIntent\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ehasPendingIntent()\u003c/code\u003e checks if an Activity can launch the \u003ccode\u003ePendingIntent\u003c/code\u003e, returning true if possible.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003elaunchPendingIntent()\u003c/code\u003e initiates the \u003ccode\u003ePendingIntent\u003c/code\u003e from an Activity, passing an Activity context and request code.\u003c/p\u003e\n"]]],[],null,["# U2fPendingIntent\n\npublic interface **U2fPendingIntent** \n**This interface is deprecated.** \n\nPlease use [Fido](/android/reference/com/google/android/gms/fido/Fido) APIs instead.\n\nInterface for apps to launch a `PendingIntent`. \n\n### Public Method Summary\n\n|------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract boolean | [hasPendingIntent](/android/reference/com/google/android/gms/fido/u2f/U2fPendingIntent#hasPendingIntent())() Returns true if an [Activity](//developer.android.com/reference/android/app/Activity.html) can launch the returned `PendingIntent`. |\n| abstract void | [launchPendingIntent](/android/reference/com/google/android/gms/fido/u2f/U2fPendingIntent#launchPendingIntent(android.app.Activity,%20int))([Activity](//developer.android.com/reference/android/app/Activity.html) activity, int requestCode) Launches the Pending intent |\n\nPublic Methods\n--------------\n\n#### public abstract boolean\n**hasPendingIntent** ()\n\nReturns true if an [Activity](//developer.android.com/reference/android/app/Activity.html) can\nlaunch the returned `PendingIntent`. \n\n##### Returns\n\n- true if the result has a `PendingIntent` \n\n#### public abstract void **launchPendingIntent** ([Activity](//developer.android.com/reference/android/app/Activity.html) activity, int requestCode)\n\nLaunches the Pending intent \n\n##### Parameters\n\n| activity | An Activity context to use to launch the intent. The Activity's onActivityResult method will be invoked after the user is done. |\n| requestCode | The request code to pass to onActivityResult. |\n|-------------|---------------------------------------------------------------------------------------------------------------------------------|\n\n##### Throws\n\n| | If the resolution intent has been canceled or is no longer able to execute the request. |\n| [IllegalStateException](//developer.android.com/reference/java/lang/IllegalStateException.html) | if hasPendingIntent is false |\n| [IntentSender.SendIntentException](//developer.android.com/reference/android/content/IntentSender.SendIntentException.html) | |\n|-----------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------|"]]