onQuery

open fun onQuery(browser: CefBrowser, frame: CefFrame, queryId: Long, request: String, persistent: Boolean, callback: CefQueryCallback): Boolean

Called when the browser receives a JavaScript query.

Return

True to handle the query or false to propagate the query to other registered handlers, if any. If no handlers return true from this method then the query will be automatically canceled with an error code of -1 delivered to the JavaScript onFailure callback.

Parameters

browser

The corresponding browser.

frame

The frame generating the event. Instance only valid within the scope of this method.

queryId

The unique ID for the query.

persistent

True if the query is persistent.

callback

Object used to continue or cancel the query asynchronously.