public class CefApp extends CefAppHandlerAdapter
| Modifier and Type | Class and Description |
|---|---|
static class |
CefApp.CefAppState
The CefAppState gives you a hint if the CefApp is already usable or not
usable any more.
|
class |
CefApp.CefVersion |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.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.
|
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|.
|
void |
setSettings(CefSettings settings) |
static boolean |
startup(java.lang.String[] args)
This method must be called at the beginning of the main() method to perform platform-
specific startup initialization.
|
onAlreadyRunningAppRelaunch, onBeforeCommandLineProcessing, onBeforeTerminate, onContextInitialized, onRegisterCustomSchemes, onScheduleMessagePumpWork, stateHasChangedpublic 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.UnsatisfiedLinkErrorpublic static CefApp getInstance(CefSettings settings) throws java.lang.UnsatisfiedLinkError
java.lang.UnsatisfiedLinkErrorpublic static CefApp getInstance(java.lang.String[] args) throws java.lang.UnsatisfiedLinkError
java.lang.UnsatisfiedLinkErrorpublic static CefApp getInstance(java.lang.String[] args, CefSettings settings) throws java.lang.UnsatisfiedLinkError
java.lang.UnsatisfiedLinkErrorpublic 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.IllegalStateExceptionpublic static final boolean startup(java.lang.String[] args)
args - Command-line arguments massed to main().