NSURLSession protocol describes the methods that
URLSession objects call on their delegates to handle session-level events. In addition to the methods defined in this protocol, most delegates should also implement some or all of the methods in the
URLSession protocols to handle task-level events.
- iOS 7.0+
- macOS 10.9+
- tvOS 9.0+
- watchOS 2.0+