CefMessageRouterHandler

Implement this interface to handle queries. All methods will be executed on the browser process UI thread.

Inheritors

Functions

Link copied to clipboard
abstract fun getNativeRef(identifer: String): Long
Method is called by the native code to get the reference to an previous stored identifier.
Link copied to clipboard
abstract fun onQuery(browser: CefBrowser, frame: CefFrame, queryId: Long, request: String, persistent: Boolean, callback: CefQueryCallback): Boolean
Called when the browser receives a JavaScript query.
Link copied to clipboard
abstract fun onQueryCanceled(browser: CefBrowser, frame: CefFrame, queryId: Long)
Called when a pending JavaScript query is canceled.
Link copied to clipboard
abstract fun setNativeRef(identifer: String, nativeRef: Long)
Method is called by the native code to store a reference to an implemented native JNI counterpart.