public interface CefLoadHandler
| 限定符和类型 | 接口和说明 |
|---|---|
static class |
CefLoadHandler.ErrorCode |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
onLoadEnd(CefBrowser browser, CefFrame frame, int httpStatusCode)
Called when the browser is done loading a frame.
(当浏览器完成加载框架时调用。)
|
void |
onLoadError(CefBrowser browser, CefFrame frame, CefLoadHandler.ErrorCode errorCode, java.lang.String errorText, java.lang.String failedUrl)
Called when the resource load for a navigation fails or is canceled.
(当导航的资源加载失败或被取消时调用。)
|
void |
onLoadingStateChange(CefBrowser browser, boolean isLoading, boolean canGoBack, boolean canGoForward)
Called when the loading state has changed.
(加载状态更改时调用。)
|
void |
onLoadStart(CefBrowser browser, CefFrame frame, CefRequest.TransitionType transitionType)
Called when the browser begins loading a frame.
(当浏览器开始加载框架时调用。)
|
void onLoadEnd(CefBrowser browser, CefFrame frame, int httpStatusCode)
browser - The corresponding browser.
(-相应的浏览器。)
frame - The frame generating the event. Instance only valid within the scope of this method.
(-生成事件的框架。实例仅在此方法的范围内有效。)
httpStatusCode - The status code of the load.
(-负载的状态码。)
void onLoadError(CefBrowser browser, CefFrame frame, CefLoadHandler.ErrorCode errorCode, java.lang.String errorText, java.lang.String failedUrl)
browser - The corresponding browser.
(-相应的浏览器。)
frame - The frame generating the event. Instance only valid within the scope of this method.
(-生成事件的框架。实例仅在此方法的范围内有效。)
errorCode - The error code number.
(-错误代码编号。)
errorText - The error text.
(-错误文本。)
failedUrl - The URL that failed to load.
(-无法加载的网址。)
void onLoadingStateChange(CefBrowser browser, boolean isLoading, boolean canGoBack, boolean canGoForward)
browser - The corresponding browser.
(-相应的浏览器。)
isLoading - true if it is loading.
(-如果正在加载,则为true。)
canGoBack - true if you can navigate back.
(-如果可以返回导航,则为true。)
canGoForward - true if you can navigate forward.
(-如果可以向前导航,则为true。)
void onLoadStart(CefBrowser browser, CefFrame frame, CefRequest.TransitionType transitionType)
browser - The corresponding browser.
(-相应的浏览器。)
frame - The frame generating the event. Instance only valid within the scope of this method.
(-生成事件的框架。实例仅在此方法的范围内有效。)
transitionType - The transition type.
(-过渡类型。)