Click or drag to resize
CfxDownloadHandler Class

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

Structure used to handle file downloads. The functions of this structure will called on the browser process UI thread.
Inheritance Hierarchy
SystemObject
  ChromiumCfxObject
    ChromiumCfxBase
      ChromiumCfxClientBase
        ChromiumCfxDownloadHandler

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

The CfxDownloadHandler type exposes the following members.

Constructors
  NameDescription
Public methodCfxDownloadHandler
Initializes a new instance of the CfxDownloadHandler 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
Events
  NameDescription
Public eventOnBeforeDownload
Called before a download begins. |SuggestedName| is the suggested name for the download file. By default the download will be canceled. Execute |Callback| either asynchronously or in this function to continue the download if desired. Do not keep a reference to |DownloadItem| outside of this function.
Public eventOnDownloadUpdated
Called when a download's status or progress information has been updated. This may be called multiple times before and after on_before_download(). Execute |Callback| either asynchronously or in this function to cancel the download if desired. Do not keep a reference to |DownloadItem| outside of this function.
Top
Remarks
See also the original CEF documentation in cef/include/capi/cef_download_handler_capi.h.
See Also