public class CefApp extends CefAppHandlerAdapter
限定符和类型 | 类和说明 |
---|---|
static class |
CefApp.CefAppState
The CefAppState gives you a hint if the CefApp is already usable or not usable any more.
(CefAppState会提示您CefApp是否已经可用或不再可用。)
|
class |
CefApp.CefVersion |
限定符和类型 | 方法和说明 |
---|---|
static void |
addAppHandler(CefAppHandler appHandler)
Assign an AppHandler to CefApp.
(将一个AppHandler分配给CefApp。)
|
boolean |
clearSchemeHandlerFactories()
Clear all registered scheme handler factories.
(清除所有注册的方案处理程序工厂。)
|
protected void |
clientWasDisposed(CefClient client)
This method is called by a CefClient if it was disposed.
(如果已处置此方法,则由CefClient调用。)
|
CefClient |
createClient()
Creates a new client instance and returns it to the caller.
(创建一个新的客户端实例,并将其返回给调用方。)
|
void |
dispose()
To shutdown the system, it's important to call the dispose method.
(要关闭系统,重要的是调用dispose方法。)
|
void |
doMessageLoopWork(long delay_ms)
Perform a single message loop iteration.
(执行单个消息循环迭代。)
|
static CefApp |
getInstance()
Get an instance of this class.
(获取此类的实例。)
|
static CefApp |
getInstance(CefSettings settings) |
static CefApp |
getInstance(java.lang.String[] args) |
static CefApp |
getInstance(java.lang.String[] args, CefSettings settings) |
static CefApp.CefAppState |
getState()
Returns the current state of CefApp.
(返回CefApp的当前状态。)
|
CefApp.CefVersion |
getVersion() |
protected void |
handleBeforeTerminate()
This method is invoked by the native code (currently on Mac only) in case of a termination event (e.g. someone pressed CMD+Q).
(如果发生终止事件(例如有人按下CMD + Q),则由本地代码(当前仅在Mac上)调用此方法。)
|
boolean |
registerSchemeHandlerFactory(java.lang.String schemeName, java.lang.String domainName, CefSchemeHandlerFactory factory)
Register a scheme handler factory for the specified |scheme_name| and optional |domain_name|.
(为指定的| scheme_name |注册方案处理程序工厂。和可选的| domain_name |。)
|
void |
setSettings(CefSettings settings) |
static boolean |
startup()
This method must be called at the beginning of the main() method to perform platform- specific startup initialization.
(必须在main()方法的开头调用此方法,以执行特定于平台的启动初始化。)
|
public static void addAppHandler(CefAppHandler appHandler) throws java.lang.IllegalStateException
appHandler
- An instance of CefAppHandler.
(-CefAppHandler的实例。)
java.lang.IllegalStateException
- in case of CefApp is already initialized
public boolean clearSchemeHandlerFactories()
protected final void clientWasDisposed(CefClient client)
client
- the disposed client.
(-被处置的客户。)
public CefClient createClient()
public final void dispose()
public final void doMessageLoopWork(long delay_ms)
public static CefApp getInstance() throws java.lang.UnsatisfiedLinkError
java.lang.UnsatisfiedLinkError
public static CefApp getInstance(CefSettings settings) throws java.lang.UnsatisfiedLinkError
java.lang.UnsatisfiedLinkError
public static CefApp getInstance(java.lang.String[] args) throws java.lang.UnsatisfiedLinkError
java.lang.UnsatisfiedLinkError
public static CefApp getInstance(java.lang.String[] args, CefSettings settings) throws java.lang.UnsatisfiedLinkError
java.lang.UnsatisfiedLinkError
public static final CefApp.CefAppState getState()
public final CefApp.CefVersion getVersion()
protected final void handleBeforeTerminate()
public boolean registerSchemeHandlerFactory(java.lang.String schemeName, java.lang.String domainName, CefSchemeHandlerFactory factory)
public final void setSettings(CefSettings settings) throws java.lang.IllegalStateException
java.lang.IllegalStateException
public static final boolean startup()