Class Download
- Namespace
- WebKit
- Assembly
- WebKit-6.0.dll
public sealed class Download : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
Download
- Implements
- Inherited Members
Constructors
Download(params ConstructArgument[])
[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public Download(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
Download(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected Download(CreationData data)
Parameters
dataCreationData
Download(DownloadHandle)
protected Download(DownloadHandle handle)
Parameters
handleDownloadHandle
Fields
AllowOverwritePropertyDefinition
public static readonly Property<bool, Download> AllowOverwritePropertyDefinition
Field Value
CreatedDestinationSignal
Signal Descriptor for OnCreatedDestination.
public static readonly Signal<Download, Download.CreatedDestinationSignalArgs> CreatedDestinationSignal
Field Value
DecideDestinationSignal
Signal Descriptor for OnDecideDestination.
public static readonly ReturningSignal<Download, Download.DecideDestinationSignalArgs, bool> DecideDestinationSignal
Field Value
DestinationPropertyDefinition
public static readonly Property<string?, Download> DestinationPropertyDefinition
Field Value
EstimatedProgressPropertyDefinition
public static readonly Property<double, Download> EstimatedProgressPropertyDefinition
Field Value
FailedSignal
Signal Descriptor for OnFailed.
public static readonly Signal<Download, Download.FailedSignalArgs> FailedSignal
Field Value
FinishedSignal
Signal Descriptor for OnFinished.
public static readonly Signal<Download> FinishedSignal
Field Value
ReceivedDataSignal
Signal Descriptor for OnReceivedData.
public static readonly Signal<Download, Download.ReceivedDataSignalArgs> ReceivedDataSignal
Field Value
ResponsePropertyDefinition
public static readonly Property<URIResponse?, Download> ResponsePropertyDefinition
Field Value
Properties
AllowOverwrite
public bool AllowOverwrite { get; set; }
Property Value
Destination
public string? Destination { get; }
Property Value
EstimatedProgress
public double EstimatedProgress { get; }
Property Value
Response
public URIResponse? Response { get; }
Property Value
Methods
Cancel()
public void Cancel()
GetAllowOverwrite()
[Version("2.6")]
public bool GetAllowOverwrite()
Returns
GetDestination()
public string? GetDestination()
Returns
GetElapsedTime()
public double GetElapsedTime()
Returns
GetEstimatedProgress()
public double GetEstimatedProgress()
Returns
GetGType()
public static Type GetGType()
Returns
GetReceivedDataLength()
public ulong GetReceivedDataLength()
Returns
GetRequest()
public URIRequest GetRequest()
Returns
GetResponse()
public URIResponse GetResponse()
Returns
GetWebView()
public WebView GetWebView()
Returns
NewFromPointer(nint, bool)
Creates a new managed Download instance for a given pointer.
public static Download NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new Download and sets the properties specified by the construct arguments.
public static Download NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
SetAllowOverwrite(bool)
[Version("2.6")]
public void SetAllowOverwrite(bool allowed)
Parameters
allowedbool
SetDestination(string)
public void SetDestination(string destination)
Parameters
destinationstring
Events
OnCreatedDestination
public event SignalHandler<Download, Download.CreatedDestinationSignalArgs> OnCreatedDestination
Event Type
OnDecideDestination
public event ReturningSignalHandler<Download, Download.DecideDestinationSignalArgs, bool> OnDecideDestination
Event Type
OnFailed
public event SignalHandler<Download, Download.FailedSignalArgs> OnFailed
Event Type
OnFinished
public event SignalHandler<Download> OnFinished
Event Type
OnReceivedData
public event SignalHandler<Download, Download.ReceivedDataSignalArgs> OnReceivedData