Share via


INSUrlSessionDownloadDelegate Interface

Definition

This interface represents the Objective-C protocol NSURLSessionDownloadDelegate.

[Foundation.Protocol(Name="NSURLSessionDownloadDelegate", WrapperType=typeof(Foundation.NSUrlSessionDownloadDelegateWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="DidFinishDownloading", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(Foundation.NSUrlSession), typeof(Foundation.NSUrlSessionDownloadTask), typeof(Foundation.NSUrl) }, Selector="URLSession:downloadTask:didFinishDownloadingToURL:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidWriteData", ParameterByRef=new System.Boolean[] { false, false, false, false, false }, ParameterType=new System.Type[] { typeof(Foundation.NSUrlSession), typeof(Foundation.NSUrlSessionDownloadTask), typeof(System.Int64), typeof(System.Int64), typeof(System.Int64) }, Selector="URLSession:downloadTask:didWriteData:totalBytesWritten:totalBytesExpectedToWrite:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidResume", ParameterByRef=new System.Boolean[] { false, false, false, false }, ParameterType=new System.Type[] { typeof(Foundation.NSUrlSession), typeof(Foundation.NSUrlSessionDownloadTask), typeof(System.Int64), typeof(System.Int64) }, Selector="URLSession:downloadTask:didResumeAtOffset:expectedTotalBytes:")]
public interface INSUrlSessionDownloadDelegate : Foundation.INSUrlSessionTaskDelegate, IDisposable
[<Foundation.Protocol(Name="NSURLSessionDownloadDelegate", WrapperType=typeof(Foundation.NSUrlSessionDownloadDelegateWrapper))>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="DidFinishDownloading", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(Foundation.NSUrlSession), typeof(Foundation.NSUrlSessionDownloadTask), typeof(Foundation.NSUrl) }, Selector="URLSession:downloadTask:didFinishDownloadingToURL:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidWriteData", ParameterByRef=new System.Boolean[] { false, false, false, false, false }, ParameterType=new System.Type[] { typeof(Foundation.NSUrlSession), typeof(Foundation.NSUrlSessionDownloadTask), typeof(System.Int64), typeof(System.Int64), typeof(System.Int64) }, Selector="URLSession:downloadTask:didWriteData:totalBytesWritten:totalBytesExpectedToWrite:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidResume", ParameterByRef=new System.Boolean[] { false, false, false, false }, ParameterType=new System.Type[] { typeof(Foundation.NSUrlSession), typeof(Foundation.NSUrlSessionDownloadTask), typeof(System.Int64), typeof(System.Int64) }, Selector="URLSession:downloadTask:didResumeAtOffset:expectedTotalBytes:")>]
type INSUrlSessionDownloadDelegate = interface
    interface INativeObject
    interface IDisposable
    interface INSUrlSessionTaskDelegate
    interface INSUrlSessionDelegate
Derived
Attributes
Implements

Remarks

A class that implements this interface (and subclasses NSObject) will be exported to Objective-C as implementing the Objective-C protocol this interface represents.

A class may also implement members from this interface to implement members from the protocol.

Properties

Handle

Handle (pointer) to the unmanaged object representation.

(Inherited from INativeObject)

Methods

DidBecomeInvalid(NSUrlSession, NSError) (Inherited from INSUrlSessionDelegate)
DidCompleteWithError(NSUrlSession, NSUrlSessionTask, NSError) (Inherited from INSUrlSessionTaskDelegate)
DidCreateTask(NSUrlSession, NSUrlSessionTask) (Inherited from INSUrlSessionTaskDelegate)
DidFinishCollectingMetrics(NSUrlSession, NSUrlSessionTask, NSUrlSessionTaskMetrics) (Inherited from INSUrlSessionTaskDelegate)
DidFinishDownloading(NSUrlSession, NSUrlSessionDownloadTask, NSUrl)
DidFinishEventsForBackgroundSession(NSUrlSession) (Inherited from INSUrlSessionDelegate)
DidReceiveChallenge(NSUrlSession, NSUrlAuthenticationChallenge, Action<NSUrlSessionAuthChallengeDisposition,NSUrlCredential>) (Inherited from INSUrlSessionDelegate)
DidReceiveChallenge(NSUrlSession, NSUrlSessionTask, NSUrlAuthenticationChallenge, Action<NSUrlSessionAuthChallengeDisposition,NSUrlCredential>) (Inherited from INSUrlSessionTaskDelegate)
DidReceiveInformationalResponse(NSUrlSession, NSUrlSessionTask, NSHttpUrlResponse) (Inherited from INSUrlSessionTaskDelegate)
DidResume(NSUrlSession, NSUrlSessionDownloadTask, Int64, Int64)
DidSendBodyData(NSUrlSession, NSUrlSessionTask, Int64, Int64, Int64) (Inherited from INSUrlSessionTaskDelegate)
DidWriteData(NSUrlSession, NSUrlSessionDownloadTask, Int64, Int64, Int64)
NeedNewBodyStream(NSUrlSession, NSUrlSessionTask, Action<NSInputStream>) (Inherited from INSUrlSessionTaskDelegate)
NeedNewBodyStream(NSUrlSession, NSUrlSessionTask, Int64, Action<NSInputStream>) (Inherited from INSUrlSessionTaskDelegate)
TaskIsWaitingForConnectivity(NSUrlSession, NSUrlSessionTask) (Inherited from INSUrlSessionTaskDelegate)
WillBeginDelayedRequest(NSUrlSession, NSUrlSessionTask, NSUrlRequest, Action<NSUrlSessionDelayedRequestDisposition,NSUrlRequest>) (Inherited from INSUrlSessionTaskDelegate)
WillPerformHttpRedirection(NSUrlSession, NSUrlSessionTask, NSHttpUrlResponse, NSUrlRequest, Action<NSUrlRequest>) (Inherited from INSUrlSessionTaskDelegate)

Extension Methods

DidBecomeInvalid(INSUrlSessionDelegate, NSUrlSession, NSError)
DidFinishEventsForBackgroundSession(INSUrlSessionDelegate, NSUrlSession)
DidReceiveChallenge(INSUrlSessionDelegate, NSUrlSession, NSUrlAuthenticationChallenge, Action<NSUrlSessionAuthChallengeDisposition,NSUrlCredential>)
DidResume(INSUrlSessionDownloadDelegate, NSUrlSession, NSUrlSessionDownloadTask, Int64, Int64)
DidWriteData(INSUrlSessionDownloadDelegate, NSUrlSession, NSUrlSessionDownloadTask, Int64, Int64, Int64)
DidCompleteWithError(INSUrlSessionTaskDelegate, NSUrlSession, NSUrlSessionTask, NSError)
DidCreateTask(INSUrlSessionTaskDelegate, NSUrlSession, NSUrlSessionTask)
DidFinishCollectingMetrics(INSUrlSessionTaskDelegate, NSUrlSession, NSUrlSessionTask, NSUrlSessionTaskMetrics)
DidReceiveChallenge(INSUrlSessionTaskDelegate, NSUrlSession, NSUrlSessionTask, NSUrlAuthenticationChallenge, Action<NSUrlSessionAuthChallengeDisposition, NSUrlCredential>)
DidReceiveInformationalResponse(INSUrlSessionTaskDelegate, NSUrlSession, NSUrlSessionTask, NSHttpUrlResponse)
DidSendBodyData(INSUrlSessionTaskDelegate, NSUrlSession, NSUrlSessionTask, Int64, Int64, Int64)
NeedNewBodyStream(INSUrlSessionTaskDelegate, NSUrlSession, NSUrlSessionTask, Action<NSInputStream>)
NeedNewBodyStream(INSUrlSessionTaskDelegate, NSUrlSession, NSUrlSessionTask, Int64, Action<NSInputStream>)
TaskIsWaitingForConnectivity(INSUrlSessionTaskDelegate, NSUrlSession, NSUrlSessionTask)
WillBeginDelayedRequest(INSUrlSessionTaskDelegate, NSUrlSession, NSUrlSessionTask, NSUrlRequest, Action<NSUrlSessionDelayedRequestDisposition, NSUrlRequest>)
WillPerformHttpRedirection(INSUrlSessionTaskDelegate, NSUrlSession, NSUrlSessionTask, NSHttpUrlResponse, NSUrlRequest, Action<NSUrlRequest>)
GetHandle(INativeObject)
GetNonNullHandle(INativeObject, String)

Applies to