listen

open fun <T> listen(event: EventName, handler: EventCallback<T>): ERROR CLASS: Symbol not found for js.promise.Promise<{tauri/apps/api/UnlistenFn=} kotlin/Function0<kotlin/Unit>>(source)

Listen to an emitted event on this webview.

Parameters

event

Event name. Must include only alphanumeric characters, -, /, : and _.

handler

Event handler.