URL Session Task Priority

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

Topics

Priority Constants

NSURLSessionTaskPriorityDefault

The default URL session task priority, used implicitly for any task you have not prioritized.

NSURLSessionTaskPriorityLow

A low URL session task priority, with a floating point value above the minimum of 0 and below the default value.

NSURLSessionTaskPriorityHigh

A high URL session task priority, with a floating point value above the default value and below the maximum of 1.0.

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.

NSURLSessionTaskState

Constants for determining the current state of a task.

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).