CreateCredentialCallback

interface CreateCredentialCallback


Callback interface for a credential providr to return credential creation results.

Summary

Public functions

Unit
onConditionalCreateResult(
    result: CreateCredentialResponse,
    pendingIntent: PendingIntent
)

Called when the create credential API returns a response for the conditional create scenario.

Unit

Called when the create credential API returns an error.

Public functions

onConditionalCreateResult

fun onConditionalCreateResult(
    result: CreateCredentialResponse,
    pendingIntent: PendingIntent
): Unit

Called when the create credential API returns a response for the conditional create scenario.

Parameters
result: CreateCredentialResponse

The response from the create credential API.

pendingIntent: PendingIntent

The pending intent to be used to manage credentials.

onError

fun onError(error: CreateCredentialException): Unit

Called when the create credential API returns an error.

Parameters
error: CreateCredentialException

The error from the create credential API.