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