CreateCredentialCallback

public interface CreateCredentialCallback


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

Summary

Public methods

abstract void

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

abstract void

Called when the create credential API returns an error.

Public methods

onConditionalCreateResult

abstract void onConditionalCreateResult(
    @NonNull CreateCredentialResponse result,
    @NonNull PendingIntent pendingIntent
)

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

Parameters
@NonNull CreateCredentialResponse result

The response from the create credential API.

@NonNull PendingIntent pendingIntent

The pending intent to be used to manage credentials.

onError

abstract void onError(@NonNull CreateCredentialException error)

Called when the create credential API returns an error.

Parameters
@NonNull CreateCredentialException error

The error from the create credential API.