All CEF/CefGlue handlers can be configured.
Custom handlers can be registered in ChromelyApp Configure method.
The following handlers can be customized and registered:
- CefLifeSpanHandler
- CefLoadHandler
- CefRequestHandler
- CefDisplayHandler
- CefContextMenuHandler
- CefFocusHandler
- CefKeyboardHandler
- CefJSDialogHandler
- CefDialogHandler
- CefDragHandler
- CefDownloadHandler
- CefFindHandler
For example to register CefContext Menu Handler:
public class CusomChromelyApp : ChromelyBasicApp
{
public override void ConfigureServices(IServiceCollection services)
{
base.ConfigureServices(services);
services.AddSingleton<CefContextMenuHandler, CustomContextMenuHandler>();
}
}
public class CustomContextMenuHandler : CefContextMenuHandler
{
}