onEvent
fun WebApp.onEvent(type: EventType.ViewportChanged, eventHandler: ViewportChangedEventHandler): (ViewportChangedData) -> Unit
fun WebApp.onEvent(type: EventType.InvoiceClosed, eventHandler: InvoiceClosedEventHandler): (InvoiceClosedInfo) -> Unit
fun WebApp.onEvent(type: EventType.PopupClosed, eventHandler: PopupClosedEventHandler): (String?) -> Unit
fun WebApp.onEvent(type: EventType.QRTextReceived, eventHandler: QRTextReceivedEventHandler): (String) -> Boolean
fun WebApp.onEvent(type: EventType.ClipboardTextReceived, eventHandler: TextReceivedEventHandler): (String) -> Unit
fun WebApp.onEvent(type: EventType.WriteAccessRequested, eventHandler: WriteAccessRequestedHandler): (RequestStatus) -> Unit
fun WebApp.onEvent(type: EventType.ContactRequested, eventHandler: ContactRequestedHandler): (RequestStatus) -> Unit
Return
The callback which should be used in case you want to turn off events handling