cef_browser_process_handler_t.on_already_running_app_relaunch

Implement this function to provide app-specific behavior when an already running app is relaunched with the same CefSettings.root_cache_path value. For example, activate an existing app window or create a new app window. |command_line| will be read-only. Do not keep a reference to |command_line| outside of this function. Return true (1) if the relaunch is handled or false (0) for default relaunch behavior. Default behavior will create a new default styled Chrome window.

To avoid cache corruption only a single app instance is allowed to run for a given CefSettings.root_cache_path value. On relaunch the app checks a process singleton lock and then forwards the new launch arguments to the already running app process before exiting early. Client apps should therefore check the cef_initialize() return value for early exit before proceeding.

This function will be called on the browser process UI thread.

struct cef_browser_process_handler_t
extern (System)
int function(cef_browser_process_handler_t* self, cef_command_line_t* command_line, const(cef_string_t)* current_directory) nothrow on_already_running_app_relaunch;

Meta