The constants used to specify the network service type of a request.
- iOS 4.0+
- macOS 10.7+
- tvOS 9.0+
- watchOS 2.0+
The network service type provides a hint to the operating system about what the underlying traffic is used for. This hint enhances the system's ability to prioritize traffic, determine how quickly it needs to wake up the cellular or Wi-Fi radio, and so on. By providing accurate information, you improve the ability of the system to optimally balance battery life, performance, and other considerations.
Most connections should be made using the
NSURLRequest service type.