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.
|
class |
CefApp.CefVersion |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
addAppHandler(CefAppHandler appHandler)
Assign an AppHandler to 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 |
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.
|
static CefApp |
getInstance()
Get an instance of this class.
|
static CefApp |
getInstance(CefSettings settings) |
static CefApp |
getInstance(String[] args) |
static CefApp |
getInstance(String[] args,
CefSettings settings) |
static CefApp.CefAppState |
getState()
Returns the current state of 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).
|
boolean |
registerSchemeHandlerFactory(String schemeName,
String domainName,
CefSchemeHandlerFactory factory)
Register a scheme handler factory for the specified |scheme_name| and
optional |domain_name|.
|
void |
setSettings(CefSettings settings) |
getPrintHandler, onBeforeCommandLineProcessing, onBeforeTerminate, onContextInitialized, onRegisterCustomSchemes, stateHasChangedpublic static void addAppHandler(CefAppHandler appHandler) throws IllegalStateException
appHandler - An instance of CefAppHandler.IllegalStateException - in case of CefApp is already initializedpublic static CefApp getInstance() throws UnsatisfiedLinkError
UnsatisfiedLinkErrorpublic static CefApp getInstance(String[] args) throws UnsatisfiedLinkError
public static CefApp getInstance(CefSettings settings) throws UnsatisfiedLinkError
public static CefApp getInstance(String[] args, CefSettings settings) throws UnsatisfiedLinkError
public final void setSettings(CefSettings settings) throws IllegalStateException
public final CefApp.CefVersion getVersion()
public static final CefApp.CefAppState getState()
public final void dispose()
public CefClient createClient()
public boolean registerSchemeHandlerFactory(String schemeName, String domainName, CefSchemeHandlerFactory factory)
public boolean clearSchemeHandlerFactories()
protected final void clientWasDisposed(CefClient client)
client - the disposed client.protected final void handleBeforeTerminate()
Copyright © 2017. All rights reserved.