generate Quick Code
suspend fun generateQuickCode(user: User, pinProvider: PinProvider): MIRACLResult<QuickCode, QuickCodeException>
Generates a QuickCode for a registered user.
Return
a MIRACLResult representing the result of the QuickCode generation:
If successful, returns MIRACLSuccess with the generated QuickCode.
If an error occurs, returns MIRACLError with a QuickCodeException describing issues with the operation.
Parameters
user
the user to generate the QuickCode for.
pin Provider
a callback called from the SDK, when the user PIN is required.
fun generateQuickCode(user: User, pinProvider: PinProvider, resultHandler: ResultHandler<QuickCode, QuickCodeException>)
Generate QuickCode for a registered user.
Parameters
user
the user to generate QuickCode for.
pin Provider
a callback called from the SDK, when the user PIN is required.
result Handler
a callback to handle the result of the QuickCode generation.
If successful, the result is MIRACLSuccess with the QuickCode.
If an error occurs, the result is MIRACLError with exception describing issues with the operation.