Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSURLSessionTaskMBS class.

NSURLSessionTaskMBS.StateCanceling = 2

Type Topic Plugin Version
const Cocoa Networking MBS MacFrameworks Plugin 20.2
One of the constants for determining the current state of a task.

The task has received a cancel message.
The delegate may or may not have received a taskDidCompleteWithError message yet. A task in this state is not subject to timeouts.

NSURLSessionTaskMBS.StateCompleted = 3

Type Topic Plugin Version
const Cocoa Networking MBS MacFrameworks Plugin 20.2
One of the constants for determining the current state of a task.

The task has completed (without being canceled), and the task's delegate receives no further callbacks.
If the task completed successfully, the task’s error property is nil. Otherwise, it provides an error object that tells what went wrong. A task in this state is not subject to timeouts.

NSURLSessionTaskMBS.StateRunning = 0

Type Topic Plugin Version
const Cocoa Networking MBS MacFrameworks Plugin 20.2
One of the constants for determining the current state of a task.

The task is currently being serviced by the session.
A task in this state is subject to the request and resource timeouts specified in the session configuration object.

NSURLSessionTaskMBS.StateSuspended = 1

Type Topic Plugin Version
const Cocoa Networking MBS MacFrameworks Plugin 20.2
One of the constants for determining the current state of a task.

The task was suspended by the app.
No further processing takes place until the task is resumed. A task in this state is not subject to timeouts.

The items on this page are in the following plugins: MBS MacFrameworks Plugin.


💬 Ask a question or report a problem
The biggest plugin in space...