on(xAppEvent, fn)
Certain events are sent to xApps. These events are usually an asynchronous callback containing data requested by calling one of the xApp UI actions.
To subscribe to one of the events emitted to xApps, use the on(...)
method on the SDK's xapp
object to register an event handler (callback function).
Payload
The payload
event is emitted when a payload has been resolved (signed / declined)
QR
The qr
event is emitted when the QR scanner dialog has been opened, and is now closed. If a QR was scanned the data is returned.
Destination
The destination
event is emitted when the destination picker dialog has been openend, and is now closed. If a destinationw as selected, the data is returned.
Network Switch
Last updated
Was this helpful?