findAsync

suspend fun findAsync(promptInfo: BiometricPrompt.PromptInfo? = Security.promptInfo, where: (Token.Metadata) -> Boolean): List<Credential>

Return all Credential objects matching the given where expression. The where expression is supplied with Token.Metadata and should return true for cases where the user wants to fetch Credential with given Token.Metadata.

Parameters

promptInfo

The BiometricPrompt.PromptInfo for displaying biometric prompt. A non-null value is required if a fetched Credential is stored using a biometric Credential.Security.

where

A function specifying whether a Credential with Token.Metadata should be fetched. This function should return true for Credential with Token.Metadata that should be retrieved from storage.