Fido2PendingIntent
Stay organized with collections
Save and categorize content based on your preferences.
Public Method Summary
abstract boolean |
|
abstract void |
|
Public Methods
public abstract boolean
hasPendingIntent
()
public abstract void
launchPendingIntent
( Activity
activity, int
requestCode)
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\u003eFido2PendingIntent\u003c/code\u003e is deprecated and should be replaced with \u003ccode\u003eFido2ApiClient\u003c/code\u003e methods for registration and signing.\u003c/p\u003e\n"],["\u003cp\u003eIt provides methods to check for and launch a \u003ccode\u003ePendingIntent\u003c/code\u003e associated with FIDO2 operations.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ehasPendingIntent()\u003c/code\u003e checks if an \u003ccode\u003eActivity\u003c/code\u003e has a \u003ccode\u003ePendingIntent\u003c/code\u003e, returning \u003ccode\u003etrue\u003c/code\u003e if present.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003elaunchPendingIntent()\u003c/code\u003e launches the associated \u003ccode\u003ePendingIntent\u003c/code\u003e, initiating the FIDO2 operation.\u003c/p\u003e\n"]]],[],null,["# Fido2PendingIntent\n\npublic interface **Fido2PendingIntent** \n**This interface is deprecated.** \n\nUse [Fido2ApiClient.getRegisterPendingIntent(PublicKeyCredentialCreationOptions)](/android/reference/com/google/android/gms/fido/fido2/Fido2ApiClient#getRegisterPendingIntent(com.google.android.gms.fido.fido2.api.common.PublicKeyCredentialCreationOptions)) or\n[Fido2ApiClient.getSignPendingIntent(PublicKeyCredentialRequestOptions)](/android/reference/com/google/android/gms/fido/fido2/Fido2ApiClient#getSignPendingIntent(com.google.android.gms.fido.fido2.api.common.PublicKeyCredentialRequestOptions)) to avoid a\ndependence on this. \n\n### Public Method Summary\n\n|------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract boolean | [hasPendingIntent](/android/reference/com/google/android/gms/fido/fido2/Fido2PendingIntent#hasPendingIntent())() Returns `true` if an [Activity](//developer.android.com/reference/android/app/Activity.html) has a [PendingIntent](//developer.android.com/reference/android/app/PendingIntent.html). |\n| abstract void | [launchPendingIntent](/android/reference/com/google/android/gms/fido/fido2/Fido2PendingIntent#launchPendingIntent(android.app.Activity,%20int))([Activity](//developer.android.com/reference/android/app/Activity.html) activity, int requestCode) Launches the [PendingIntent](//developer.android.com/reference/android/app/PendingIntent.html). |\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) has a\n[PendingIntent](//developer.android.com/reference/android/app/PendingIntent.html). \n\n#### public abstract void **launchPendingIntent** ([Activity](//developer.android.com/reference/android/app/Activity.html) activity, int requestCode)\n\nLaunches the [PendingIntent](//developer.android.com/reference/android/app/PendingIntent.html). \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|-----------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------|"]]