Enumeration

NSURLSessionTaskState

Constants for determining the current state of a task.

Declaration

typedef enum NSURLSessionTaskState : NSInteger {
    ...
} NSURLSessionTaskState;

Topics

Task States

NSURLSessionTaskStateRunning

The task is currently being serviced by the session.

NSURLSessionTaskStateSuspended

The task was suspended by the app.

NSURLSessionTaskStateCanceling

The task has received a cancel message.

NSURLSessionTaskStateCompleted

The task has completed (without being canceled), and the task's delegate receives no further callbacks.

See Also

Controlling the Task State

- cancel

Cancels the task.

- resume

Resumes the task, if it is suspended.

- suspend

Temporarily suspends a task.

state

The current state of the task—active, suspended, in the process of being canceled, or completed.

priority

The relative priority at which you’d like a host to handle the task, specified as a floating point value between 0.0 (lowest priority) and 1.0 (highest priority).

URL Session Task Priority

Constants for providing task priority hints to a host, used with the priority property.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software