public interface CefMessageRouterHandler extends CefNative
限定符和类型 | 方法和说明 |
---|---|
boolean |
onQuery(CefBrowser browser, CefFrame frame, long queryId, java.lang.String request, boolean persistent, CefQueryCallback callback)
Called when the browser receives a JavaScript query.
(当浏览器收到JavaScript查询时调用。)
|
void |
onQueryCanceled(CefBrowser browser, CefFrame frame, long queryId)
Called when a pending JavaScript query is canceled.
(取消待处理的JavaScript查询时调用。)
|
getNativeRef, setNativeRef
boolean onQuery(CefBrowser browser, CefFrame frame, long queryId, java.lang.String request, boolean persistent, CefQueryCallback callback)
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.
(-查询的唯一ID。)
persistent
- True if the query is persistent.
(-如果查询是持久性的,则为true。)
callback
- Object used to continue or cancel the query asynchronously.
(-用于异步继续或取消查询的对象。)
void onQueryCanceled(CefBrowser browser, CefFrame frame, long queryId)
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.
(-查询的唯一ID。)