# Interface ICefDownloadItem

Description
Hierarchy
Methods
Properties

## Unit

uCEFInterfaces

## Declaration

`type ICefDownloadItem = interface(ICefBaseRefCounted)`

## Description

Interface used to represent a download item.

UNKNOWN

<see href="https://bitbucket.org/chromiumembedded/cef/src/master/include/capi/cef_download_item_capi.h">CEF source file: /include/capi/cef_download_item_capi.h (cef_download_item_t))

## Hierarchy

- IInterface
- ICefBaseRefCounted
- ICefDownloadItem

## Overview

### Methods

Public | `function IsValid: Boolean;`
Public | `function IsInProgress: Boolean;`
Public | `function IsComplete: Boolean;`
Public | `function IsCanceled: Boolean;`
Public | `function IsInterrupted: Boolean;`
Public | `function GetInterruptReason: TCefDownloadInterruptReason;`
Public | `function GetCurrentSpeed: Int64;`
Public | `function GetPercentComplete: Integer;`
Public | `function GetTotalBytes: Int64;`
Public | `function GetReceivedBytes: Int64;`
Public | `function GetStartTime: TDateTime;`
Public | `function GetEndTime: TDateTime;`
Public | `function GetFullPath: ustring;`
Public | `function GetId: Cardinal;`
Public | `function GetUrl: ustring;`
Public | `function GetOriginalUrl: ustring;`
Public | `function GetSuggestedFileName: ustring;`
Public | `function GetContentDisposition: ustring;`
Public | `function GetMimeType: ustring;`
Public | `function IsPaused: boolean;`

### Properties

Public | `property CurrentSpeed : Int64 read GetCurrentSpeed;`
Public | `property PercentComplete : Integer read GetPercentComplete;`
Public | `property TotalBytes : Int64 read GetTotalBytes;`
Public | `property ReceivedBytes : Int64 read GetReceivedBytes;`
Public | `property StartTime : TDateTime read GetStartTime;`
Public | `property EndTime : TDateTime read GetEndTime;`
Public | `property FullPath : ustring read GetFullPath;`
Public | `property Id : Cardinal read GetId;`
Public | `property Url : ustring read GetUrl;`
Public | `property OriginalUrl : ustring read GetOriginalUrl;`
Public | `property SuggestedFileName : ustring read GetSuggestedFileName;`
Public | `property ContentDisposition : ustring read GetContentDisposition;`
Public | `property MimeType : ustring read GetMimeType;`
Public | `property InterruptReason : TCefDownloadInterruptReason read GetInterruptReason;`

## Description

### Methods

Public | `function IsValid: Boolean;`
Returns true (1) if this object is valid. Do not call any other functions if this function returns false (0). ###### Attributes GUID['{B34BD320-A82E-4185-8E84-B98E5EEC803F}']

Public | `function IsInProgress: Boolean;`
Returns true (1) if the download is in progress.

Public | `function IsComplete: Boolean;`
Returns true (1) if the download is complete.

Public | `function IsCanceled: Boolean;`
Returns true (1) if the download has been canceled.

Public | `function IsInterrupted: Boolean;`
Returns true (1) if the download has been interrupted.

Public | `function GetInterruptReason: TCefDownloadInterruptReason;`
Returns the most recent interrupt reason.

Public | `function GetCurrentSpeed: Int64;`
Returns a simple speed estimate in bytes/s.

Public | `function GetPercentComplete: Integer;`
Returns the rough percent complete or -1 if the receive total size is unknown.

Public | `function GetTotalBytes: Int64;`
Returns the total number of bytes.

Public | `function GetReceivedBytes: Int64;`
Returns the number of received bytes.

Public | `function GetStartTime: TDateTime;`
Returns the time that the download started.

Public | `function GetEndTime: TDateTime;`
Returns the time that the download ended.

Public | `function GetFullPath: ustring;`
Returns the full path to the downloaded or downloading file.

Public | `function GetId: Cardinal;`
Returns the unique identifier for this download.

Public | `function GetUrl: ustring;`
Returns the URL.

Public | `function GetOriginalUrl: ustring;`
Returns the original URL before any redirections.

Public | `function GetSuggestedFileName: ustring;`
Returns the suggested file name.

Public | `function GetContentDisposition: ustring;`
Returns the content disposition.

Public | `function GetMimeType: ustring;`
Returns the mime type.

Public | `function IsPaused: boolean;`
Returns true (1) if the download has been paused.

### Properties

Public | `property CurrentSpeed : Int64 read GetCurrentSpeed;`
Returns a simple speed estimate in bytes/s.

Public | `property PercentComplete : Integer read GetPercentComplete;`
Returns the rough percent complete or -1 if the receive total size is unknown.

Public | `property TotalBytes : Int64 read GetTotalBytes;`
Returns the total number of bytes.

Public | `property ReceivedBytes : Int64 read GetReceivedBytes;`
Returns the number of received bytes.

Public | `property StartTime : TDateTime read GetStartTime;`
Returns the time that the download started.

Public | `property EndTime : TDateTime read GetEndTime;`
Returns the time that the download ended.

Public | `property FullPath : ustring read GetFullPath;`
Returns the full path to the downloaded or downloading file.

Public | `property Id : Cardinal read GetId;`
Returns the unique identifier for this download.

Public | `property Url : ustring read GetUrl;`
Returns the URL.

Public | `property OriginalUrl : ustring read GetOriginalUrl;`
Returns the original URL before any redirections.

Public | `property SuggestedFileName : ustring read GetSuggestedFileName;`
Returns the suggested file name.

Public | `property ContentDisposition : ustring read GetContentDisposition;`
Returns the content disposition.

Public | `property MimeType : ustring read GetMimeType;`
Returns the mime type.

Public | `property InterruptReason : TCefDownloadInterruptReason read GetInterruptReason;`
Returns the most recent interrupt reason.

Generated by PasDoc 1.0.4.