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. (给CefApp分配AppHandler,注册CefAppHandler接口的实现)
|
boolean |
clearSchemeHandlerFactories()
Clear all registered scheme handler factories. (清除所有注册的handler方案)
|
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. (获取CefApp类的实例)
|
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) |
public static void addAppHandler(CefAppHandler appHandler) throws java.lang.IllegalStateException
appHandler
- An instance of CefAppHandler.java.lang.IllegalStateException
- in case of CefApp is already initializedpublic 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