Task
public struct Task
Used as a namespace for all URLSessionTask related notifications.
-
Posted when a
URLSessionTaskis resumed. The notificationobjectcontains the resumedURLSessionTask.Declaration
Swift
public static let DidResume: Notification.Name -
Posted when a
URLSessionTaskis suspended. The notificationobjectcontains the suspendedURLSessionTask.Declaration
Swift
public static let DidSuspend: Notification.Name -
Posted when a
URLSessionTaskis cancelled. The notificationobjectcontains the cancelledURLSessionTask.Declaration
Swift
public static let DidCancel: Notification.Name -
Posted when a
URLSessionTaskis completed. The notificationobjectcontains the completedURLSessionTask.Declaration
Swift
public static let DidComplete: Notification.Name
Task Structure Reference