Get the unique ID that identifies this QR verification flow, be either a to-device request ID or a room event ID.
Get the device ID of the other side.
Get the user id of the other user that is participating in this verification flow.
Get the room id if the verification is happening inside a room.
Get our own user ID.
Cancel the verification flow.
Returns either an OutgoingRequest
which should be sent out, or
undefined
if the verification is already cancelled.
Get info about the cancellation if the verification flow has been cancelled.
Cancel the verification.
This cancels the verification with given code (e.g. m.user
).
Returns either an OutgoingRequest
which should be sent out, or
undefined
if the verification is already cancelled.
Confirm that the other side has scanned our QR code.
Returns either an OutgoingRequest
which should be sent out, or
undefined
if the verification is already confirmed.
Has the scanning of the QR code been confirmed by us?
Has the QR verification been scanned by the other side.
When the verification object is in this state it’s required that the user confirms that the other side has scanned the QR code.
Has the verification flow been cancelled?
Has the verification flow completed?
Is this a verification that is verifying one of our own devices?
Notify the other side that we have successfully scanned the QR code and that the QR verification flow can start.
This will return some OutgoingContent if the object is in the correct state to start the verification flow, otherwise None.
Have we successfully scanned the QR code and are able to send a reciprocation event?
Register a callback which will be called whenever there is an update to the request
The callback
is called with no parameters.
Get the current state of this request.
Returns a QrState
.
Generate a the raw bytes that should be encoded as a QR code is representing this verification flow.
The to_qr_code
method can be used to instead output a QrCode
object that can be rendered.
Generate a QR code object that is representing this verification flow.
The QrCode can then be rendered as an image or as an unicode string.
The to_bytes
method can be used to instead output the raw
bytes that should be encoded as a QR code.
Returns a QrCode
.
Did we initiate the verification request?
Generated using TypeDoc
QR code based verification.