public abstract class CefAppHandlerAdapter extends java.lang.Object implements CefAppHandler
构造器和说明 |
---|
CefAppHandlerAdapter(java.lang.String[] args) |
限定符和类型 | 方法和说明 |
---|---|
CefPrintHandler |
getPrintHandler()
Return the handler for printing on Linux.
返回在Linux上打印的处理程序。 |
void |
onBeforeCommandLineProcessing(java.lang.String process_type, CefCommandLine command_line)
Provides an opportunity to view and/or modify command-line arguments before processing by CEF and Chromium.
提供在CEF和Chromium处理之前查看和/或修改命令行参数的机会。 |
boolean |
onBeforeTerminate()
Provides an opportunity to hook into the native shutdown process.
提供挂钩到本机关闭过程的机会。 |
void |
onContextInitialized()
Called on the browser process UI thread immediately after the CEF context has been initialized.
初始化CEF上下文后立即调用浏览器进程UI线程。 |
void |
onRegisterCustomSchemes(CefSchemeRegistrar registrar)
Provides an opportunity to register custom schemes.
提供注册自定义方案的机会。 |
void |
onScheduleMessagePumpWork(long delay_ms)
Called from any thread when work has been scheduled for the browser process main (UI) thread.
在为浏览器进程主(UI)线程安排工作时从任何线程调用。 |
void |
stateHasChanged(CefApp.CefAppState state)
Implement this method to get state changes of the CefApp.
实现此方法以获取CefApp的状态更改。 |
public CefPrintHandler getPrintHandler()
CefAppHandler
getPrintHandler
在接口中
CefAppHandler
public void onBeforeCommandLineProcessing(java.lang.String process_type, CefCommandLine command_line)
CefAppHandler
onBeforeCommandLineProcessing
在接口中
CefAppHandler
process_type
- type of process (empty for browser process).
- 进程类型(浏览器进程为空)。
command_line
- values of the command line.
- 命令行的值。
public boolean onBeforeTerminate()
CefAppHandler
onBeforeTerminate
在接口中
CefAppHandler
public void onContextInitialized()
CefAppHandler
onContextInitialized
在接口中
CefAppHandler
public void onRegisterCustomSchemes(CefSchemeRegistrar registrar)
CefAppHandler
onRegisterCustomSchemes
在接口中
CefAppHandler
public void onScheduleMessagePumpWork(long delay_ms)
CefAppHandler
onScheduleMessagePumpWork
在接口中
CefAppHandler
public void stateHasChanged(CefApp.CefAppState state)
CefAppHandler
CefApp.CefAppState
for a complete list of possible states. For example, this method can be used e.g. to get informed if CefApp has completed its initialization or its shutdown process.
stateHasChanged
在接口中
CefAppHandler
state
- The current state of CefApp.
- CefApp的当前状态。