com.miracl.miracltrust.delegate

Types

PinConsumer

interface PinConsumer

An interface used to allow the application, using the MIRACLTrust SDK, to pass the PIN to the SDK.

Functions

consume

abstract fun consume(@Nullable pin: String?): Unit

PinProvider

interface PinProvider

An interface used to allow the MIRACLTrust SDK to request PIN. The application using the SDK is responsible for obtaining the PIN from the user and then pass it to the PinConsumer.

Functions

provide

abstract fun provide(@NonNull pinConsumer: PinConsumer): Unit

ResultHandler

interface ResultHandler<SUCCESS : Any!, FAIL : Any!>

An interface used to connect MIRACLTrust SDK output to your application. The result could be either MiraclSuccess or MiraclError.

Functions

onResult

abstract fun onResult(@NonNull result: MiraclResult<SUCCESS, FAIL>): Unit