FidoNonDiscoverableActivity

Transparent activity for handling Google Play Services FIDO2 authentication flow.

This activity provides a headless interface for launching FIDO2 authentication prompts using the Google Play Services FIDO2 API. It manages the PendingIntent lifecycle and provides thread-safe result handling for concurrent FIDO2 operations.

Usage Pattern:

  1. Created automatically by getPublicKeyCredential() function

  2. Receives PendingIntent from Google Play Services FIDO2 API

  3. Launches authentication prompt and handles user interaction

  4. Returns result to the suspended coroutine

  5. Self-terminates after completing the operation

Thread Safety:

  • Uses atomic operations and mutex for concurrent operation prevention

  • Ensures only one FIDO2 operation can be active at a time

  • Properly handles cancellation and cleanup

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
protected open override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?)
Link copied to clipboard
protected open override fun onCreate(savedInstanceState: Bundle?)