public abstract class CefAppHandlerAdapter extends java.lang.Object implements CefAppHandler
| Constructor and Description |
|---|
CefAppHandlerAdapter(java.lang.String[] args) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
onAlreadyRunningAppRelaunch(CefCommandLine command_line,
java.lang.String current_directory)
Implement this method to provide app-specific behavior when an already
running app is relaunched with the same CefSettings.root_cache_path value.
|
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.
|
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.
|
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.
|
void |
stateHasChanged(CefApp.CefAppState state)
Implement this method to get state changes of the CefApp.
|
public boolean onAlreadyRunningAppRelaunch(CefCommandLine command_line, java.lang.String current_directory)
CefAppHandleronAlreadyRunningAppRelaunch in interface CefAppHandlerpublic void onBeforeCommandLineProcessing(java.lang.String process_type,
CefCommandLine command_line)
CefAppHandleronBeforeCommandLineProcessing in interface CefAppHandlerprocess_type - type of process (empty for browser process).command_line - values of the command line.public boolean onBeforeTerminate()
CefAppHandleronBeforeTerminate in interface CefAppHandlerpublic void onContextInitialized()
CefAppHandleronContextInitialized in interface CefAppHandlerpublic void onRegisterCustomSchemes(CefSchemeRegistrar registrar)
CefAppHandleronRegisterCustomSchemes in interface CefAppHandlerpublic void onScheduleMessagePumpWork(long delay_ms)
CefAppHandleronScheduleMessagePumpWork in interface CefAppHandlerpublic void stateHasChanged(CefApp.CefAppState state)
CefAppHandlerCefApp.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 in interface CefAppHandlerstate - The current state of CefApp.