Table of Contents

Class Download

Namespace
WebKit
Assembly
WebKit-6.0.dll
public sealed class Download : Object, IObject, INotifyPropertyChanged, IDisposable, IHandle, GTypeProvider
Inheritance
Download
Implements
Inherited Members

Constructors

Download(bool, params ConstructArgument[])

protected Download(bool owned, params ConstructArgument[] constructArguments)

Parameters

owned bool
constructArguments ConstructArgument[]

Download(IntPtr, bool)

protected Download(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Fields

AllowOverwritePropertyDefinition

public static readonly Property<bool, Download> AllowOverwritePropertyDefinition

Field Value

Property<bool, Download>

CreatedDestinationSignal

Signal Descriptor for OnCreatedDestination.

public static readonly Signal<Download, Download.CreatedDestinationSignalArgs> CreatedDestinationSignal

Field Value

Signal<Download, Download.CreatedDestinationSignalArgs>

DecideDestinationSignal

Signal Descriptor for OnDecideDestination.

public static readonly ReturningSignal<Download, Download.DecideDestinationSignalArgs, bool> DecideDestinationSignal

Field Value

ReturningSignal<Download, Download.DecideDestinationSignalArgs, bool>

DestinationPropertyDefinition

public static readonly Property<string?, Download> DestinationPropertyDefinition

Field Value

Property<string, Download>

EstimatedProgressPropertyDefinition

public static readonly Property<double, Download> EstimatedProgressPropertyDefinition

Field Value

Property<double, Download>

FailedSignal

Signal Descriptor for OnFailed.

public static readonly Signal<Download, Download.FailedSignalArgs> FailedSignal

Field Value

Signal<Download, Download.FailedSignalArgs>

FinishedSignal

Signal Descriptor for OnFinished.

public static readonly Signal<Download> FinishedSignal

Field Value

Signal<Download>

ReceivedDataSignal

Signal Descriptor for OnReceivedData.

public static readonly Signal<Download, Download.ReceivedDataSignalArgs> ReceivedDataSignal

Field Value

Signal<Download, Download.ReceivedDataSignalArgs>

ResponsePropertyDefinition

public static readonly Property<URIResponse?, Download> ResponsePropertyDefinition

Field Value

Property<URIResponse, Download>

Properties

AllowOverwrite

public bool AllowOverwrite { get; set; }

Property Value

bool

Destination

public string? Destination { get; }

Property Value

string

EstimatedProgress

public double EstimatedProgress { get; }

Property Value

double

Response

public URIResponse? Response { get; }

Property Value

URIResponse

Methods

Cancel()

public void Cancel()

GetAllowOverwrite()

[Version("2.6")]
public bool GetAllowOverwrite()

Returns

bool

GetDestination()

public string? GetDestination()

Returns

string

GetElapsedTime()

public double GetElapsedTime()

Returns

double

GetEstimatedProgress()

public double GetEstimatedProgress()

Returns

double

GetGType()

public static Type GetGType()

Returns

Type

GetReceivedDataLength()

public ulong GetReceivedDataLength()

Returns

ulong

GetRequest()

public URIRequest GetRequest()

Returns

URIRequest

GetResponse()

public URIResponse GetResponse()

Returns

URIResponse

GetWebView()

public WebView GetWebView()

Returns

WebView

SetAllowOverwrite(bool)

[Version("2.6")]
public void SetAllowOverwrite(bool allowed)

Parameters

allowed bool

SetDestination(string)

public void SetDestination(string destination)

Parameters

destination string

Events

OnCreatedDestination

public event SignalHandler<Download, Download.CreatedDestinationSignalArgs> OnCreatedDestination

Event Type

SignalHandler<Download, Download.CreatedDestinationSignalArgs>

OnDecideDestination

public event ReturningSignalHandler<Download, Download.DecideDestinationSignalArgs, bool> OnDecideDestination

Event Type

ReturningSignalHandler<Download, Download.DecideDestinationSignalArgs, bool>

OnFailed

public event SignalHandler<Download, Download.FailedSignalArgs> OnFailed

Event Type

SignalHandler<Download, Download.FailedSignalArgs>

OnFinished

public event SignalHandler<Download> OnFinished

Event Type

SignalHandler<Download>

OnReceivedData

public event SignalHandler<Download, Download.ReceivedDataSignalArgs> OnReceivedData

Event Type

SignalHandler<Download, Download.ReceivedDataSignalArgs>