Task

public struct Task

Used as a namespace for all URLSessionTask related notifications.

  • Posted when a URLSessionTask is resumed. The notification object contains the resumed URLSessionTask.

    Declaration

    Swift

    public static let DidResume = Notification.Name(rawValue: "org.alamofire.notification.name.task.didResume")
  • Posted when a URLSessionTask is suspended. The notification object contains the suspended URLSessionTask.

    Declaration

    Swift

    public static let DidSuspend = Notification.Name(rawValue: "org.alamofire.notification.name.task.didSuspend")
  • Posted when a URLSessionTask is cancelled. The notification object contains the cancelled URLSessionTask.

    Declaration

    Swift

    public static let DidCancel = Notification.Name(rawValue: "org.alamofire.notification.name.task.didCancel")
  • Posted when a URLSessionTask is completed. The notification object contains the completed URLSessionTask.

    Declaration

    Swift

    public static let DidComplete = Notification.Name(rawValue: "org.alamofire.notification.name.task.didComplete")