0001 // Notifications.swift 0002 // 0003 // Copyright (c) 2014–2016 Alamofire Software Foundation (http://alamofire.org/) 0004 // 0005 // Permission is hereby granted, free of charge, to any person obtaining a copy 0006 // of this software and associated documentation files (the "Software"), to deal 0007 // in the Software without restriction, including without limitation the rights 0008 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 0009 // copies of the Software, and to permit persons to whom the Software is 0010 // furnished to do so, subject to the following conditions: 0011 // 0012 // The above copyright notice and this permission notice shall be included in 0013 // all copies or substantial portions of the Software. 0014 // 0015 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 0016 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 0017 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 0018 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 0019 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 0020 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 0021 // THE SOFTWARE. 0022 0023 import Foundation 0024 0025 /// Contains all the `NSNotification` names posted by Alamofire with descriptions of each notification's payload. 0026 public struct Notifications{ 0027 /// Used as a namespace for all `NSURLSessionTask` related notifications. 0028 public struct Task
Manager.swift:455 NSNotificationCenter.defaultCenter().postNotificationName(Notifications.Task.DidComplete, object: task)Request.swift:163 NSNotificationCenter.defaultCenter().postNotificationName(Notifications.Task.DidResume, object: task)Request.swift:171 NSNotificationCenter.defaultCenter().postNotificationName(Notifications.Task.DidSuspend, object: task)Request.swift:189 NSNotificationCenter.defaultCenter().postNotificationName(Notifications.Task.DidCancel, object: task){ 0029 /// Notification posted when an `NSURLSessionTask` is resumed. The notification `object` contains the resumed 0030 /// `NSURLSessionTask`. 0031 public static let DidResume
Manager.swift:455 NSNotificationCenter.defaultCenter().postNotificationName(Notifications.Task.DidComplete, object: task)Request.swift:163 NSNotificationCenter.defaultCenter().postNotificationName(Notifications.Task.DidResume, object: task)Request.swift:171 NSNotificationCenter.defaultCenter().postNotificationName(Notifications.Task.DidSuspend, object: task)Request.swift:189 NSNotificationCenter.defaultCenter().postNotificationName(Notifications.Task.DidCancel, object: task)= "com.alamofire.notifications.task.didResume" 0032 0033 /// Notification posted when an `NSURLSessionTask` is suspended. The notification `object` contains the 0034 /// suspended `NSURLSessionTask`. 0035 public static let DidSuspend
Request.swift:163 NSNotificationCenter.defaultCenter().postNotificationName(Notifications.Task.DidResume, object: task)= "com.alamofire.notifications.task.didSuspend" 0036 0037 /// Notification posted when an `NSURLSessionTask` is cancelled. The notification `object` contains the 0038 /// cancelled `NSURLSessionTask`. 0039 public static let DidCancel
Request.swift:171 NSNotificationCenter.defaultCenter().postNotificationName(Notifications.Task.DidSuspend, object: task)= "com.alamofire.notifications.task.didCancel" 0040 0041 /// Notification posted when an `NSURLSessionTask` is completed. The notification `object` contains the 0042 /// completed `NSURLSessionTask`. 0043 public static let DidComplete
Request.swift:189 NSNotificationCenter.defaultCenter().postNotificationName(Notifications.Task.DidCancel, object: task)= "com.alamofire.notifications.task.didComplete" 0044 } 0045 } 0046
Manager.swift:455 NSNotificationCenter.defaultCenter().postNotificationName(Notifications.Task.DidComplete, object: task)