CredentialManagerCallback


interface CredentialManagerCallback<R : Any?, E : Any>


Callback interface intended for use when an asynchronous Credential Manager operation may result in a failure.

This interface may be used in cases where an asynchronous Credential Manager API may complete either with a value, or an exception.

Parameters
<R : Any?>

the type of the result that's being sent

<E : Any>

the type of the exception being returned

Summary

Public functions

Unit
onError(e: E)
Unit
onResult(result: R)

Public functions

onError

Added in 1.2.0
fun onError(e: E): Unit

onResult

Added in 1.2.0
fun onResult(result: R): Unit