MonobjcMonobjc Documented Class Library
NSURLDownload Constructor (request, delegate)
NamespacesMonobjc.FoundationNSURLDownloadNSURLDownload(NSURLRequest, Id)

Returns an initialized URL download for a URL request and begins to download the data for the request.

Original signature is '- (id)initWithRequest:(NSURLRequest *)request delegate:(id)delegate'

Available in Mac OS X v10.2 with Safari 1.0 installed and later.

Declaration Syntax
C#Visual BasicVisual C++
public NSURLDownload(
	NSURLRequest request,
	Id delegate
)
Public Sub New ( _
	request As NSURLRequest, _
	delegate As Id _
)
public:
NSURLDownload(
	NSURLRequest^ request, 
	Id^ delegate
)
Parameters
request (NSURLRequest)
The URL request to download. The request object is deep-copied as part of the initialization process. Changes made to request after this method returns do not affect the request that is used for the loading process.
delegate (Id)
The delegate for the download. This object will receive delegate messages as the download progresses. Delegate messages will be sent on the thread which calls this method. For the download to work correctly the calling thread’s run loop must be operating in the default run loop mode.
Return Value
An initialized NSURLDownload object for request.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)