Show QR
METHOD NAME showQR
This method is Cancelable.
Requires state
IDLE
and during process moves toPROMPT
Description
Display a QR code on the screen. This request responds immediately once the QR code on the custom screen is displayed. On a cancel event or when the specified timeout expires, the screen returns to the IDLE
state.
Parameters
object
-
commandId
string
REQUIRED
Id that is used as a reference to cancel the command -
qrData
string
REQUIRED
The data to show inside the QR code. -
title
string
The title at the top of the screen is displayed to the user -
body
string
The message body on the screen displayed to the user -
timeout
int
Time in seconds until a response with aTIMEOUT
result is returned.
Default: 60 seconds. The value must be greater than zero -
cancelable
boolean
A flag indicates if the user can cancel the operation from the selection screen. Defaulttrue
Result
null
when a request is valid, and the QR is displayed
Errors
MissingParams
InvalidParams
on incorrect OTPIllegalState