iOS Developer Library

Developer

Foundation Framework Reference NSURLSessionDataTask Class Reference

Options
Deployment Target:

On This Page
Language:

NSURLSessionDataTask

Conforms To


Import Statement


Swift

import Foundation

Objective-C

@import Foundation;

Availability


Available in iOS 7.0 and later.

An NSURLSessionDataTask is a concrete subclass of NSURLSessionTask. The methods in the NSURLSessionDataTask class are documented in NSURLSessionTask Class Reference.

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

For a detailed explanation of this process, read URL Loading System Programming Guide.