Contents

URLSessionDataTask

A URL session task that returns downloaded data directly to the app in memory.

Declaration

class URLSessionDataTask

Mentioned in

Overview

A URLSessionDataTask is a concrete subclass of URLSessionTask. The methods in the URLSessionDataTask class are documented in URLSessionTask.

A data task returns data directly to the app (in memory) as one or more NSData objects. When you use a data task:

For examples of using data tasks for fetching and uploading data, see Fetching website data into memory and Uploading data to a website.

Topics

Initializers

Type Methods

See Also

Adding data tasks to a session