generateQuickCode

Generates a QuickCode for a registered user.

Return

A MIRACLResult representing the result of the QuickCode generation:

Parameters

user

The user for whom the QuickCode is generated.

pinProvider

A callback called by the SDK when the PIN is requested.


fun generateQuickCode(user: User, pinProvider: PinProvider, resultHandler: ResultHandler<QuickCode, QuickCodeException>)

Generates a QuickCode for a registered user.

Parameters

user

The user for whom the QuickCode is generated.

pinProvider

A callback called by the SDK when the PIN is requested.

resultHandler

A callback to handle the result of the QuickCode generation.

  • If successful, the result is a MIRACLSuccess with the QuickCode.

  • If an error occurs, the result is a MIRACLError with an exception describing issues with the operation.