Click or drag to resize
CfxApp Class

[This is preliminary documentation and is subject to change.]

Implement this structure to provide handler implementations. Methods will be called by the process and/or thread indicated.
Inheritance Hierarchy
SystemObject
  ChromiumCfxObject
    ChromiumCfxBase
      ChromiumCfxClientBase
        ChromiumCfxApp

Namespace: Chromium
Assembly: ChromiumFX (in ChromiumFX.dll)
Syntax
public class CfxApp : CfxClientBase

The CfxApp type exposes the following members.

Constructors
  NameDescription
Public methodCfxApp
Initializes a new instance of the CfxApp class
Top
Properties
  NameDescription
Public propertyCallbacksDisabled
When true, all CEF callback events are disabled for this handler. Incoming callbacks will return default values to CEF.
(Inherited from CfxClientBase.)
Public propertyNativePtr
Provides access to the underlying native cef struct. This is a refcounted client struct derived from cef_base_t. Add a ref in order to keep it alive when this managed object go out of scope.
(Inherited from CfxClientBase.)
Top
Methods
  NameDescription
Public methodRetrieveBrowserProcessHandler
Retrieves the CfxBrowserProcessHandler provided by the event handler attached to the GetBrowserProcessHandler event, if any. Returns null if no event handler is attached.
Public methodRetrieveRenderProcessHandler
Retrieves the CfxRenderProcessHandler provided by the event handler attached to the GetRenderProcessHandler event, if any. Returns null if no event handler is attached.
Public methodRetrieveResourceBundleHandler
Retrieves the CfxResourceBundleHandler provided by the event handler attached to the GetResourceBundleHandler event, if any. Returns null if no event handler is attached.
Top
Events
  NameDescription
Public eventGetBrowserProcessHandler
Return the handler for functionality specific to the browser process. This function is called on multiple threads in the browser process.
Public eventGetRenderProcessHandler
Return the handler for functionality specific to the render process. This function is called on the render process main thread.
Public eventGetResourceBundleHandler
Return the handler for resource bundle events. If CfxSettings.PackLoadingDisabled is true (1) a handler must be returned. If no handler is returned resources will be loaded from pack files. This function is called by the browser and render processes on multiple threads.
Public eventOnBeforeCommandLineProcessing
Provides an opportunity to view and/or modify command-line arguments before processing by CEF and Chromium. The |ProcessType| value will be NULL for the browser process. Do not keep a reference to the CfxCommandLine object passed to this function. The CfxSettings.CommandLineArgsDisabled value can be used to start with an NULL command-line object. Any values specified in CfxSettings that equate to command-line arguments will be set before this function is called. Be cautious when using this function to modify command-line arguments for non-browser processes as this may result in undefined behavior including crashes.
Public eventOnRegisterCustomSchemes
Provides an opportunity to register custom schemes. Do not keep a reference to the |Registrar| object. This function is called on the main thread for each process and the registered schemes should be the same across all processes.
Top
Remarks
See also the original CEF documentation in cef/include/capi/cef_app_capi.h.
See Also