Notifications

2016-02-27  本文已影响16人  幸运的小强本人

// Contains all the NSNotification names posted by
// Alamofire with descriptions of each notification's
// payload.

public struct Notifications {
  // Used as a namespace for all `NSURLSessionTask` 
  //related notifications.

  public struct Task {
      // Notification posted when an `NSURLSessionTask` is resumed. 
      // The notification `object` contains the 
      // resumed `NSURLSessionTask`.
      public static let DidResume = "com.alamofire.notifications.task.didResume"

      public static let DidSuspend = "com.alamofire.notifications.task.didSuspend"

      public static let DidCancel = "com.alamofire.notifications.task.didCancel"

      public static let DidComplete = "com.alamofire.notifications.task.didComplete"
  }
}
上一篇下一篇

猜你喜欢

热点阅读