Enumeration

NSURLRequestNetworkServiceType

Constants that specify how a request uses network resources.

Declaration

typedef enum NSURLRequestNetworkServiceType : NSUInteger {
    ...
} NSURLRequestNetworkServiceType;

Overview

The network service type provides a hint to the operating system about the nature and use of the underlying traffic. 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 NSURLNetworkServiceTypeDefault service type.

Topics

Network Service Types

NSURLNetworkServiceTypeDefault

A service type for standard network traffic.

NSURLNetworkServiceTypeVoIP

A service type for VoIP traffic.

Deprecated
NSURLNetworkServiceTypeVideo

A service type for video traffic.

NSURLNetworkServiceTypeBackground

A service type for background traffic.

NSURLNetworkServiceTypeVoice

A service type for voice traffic.

NSURLNetworkServiceTypeCallSignaling

A service type for call signaling.

NSURLNetworkServiceTypeResponsiveData

A service type for data that the user is actively waiting for.

NSURLNetworkServiceTypeAVStreaming

A service type for streaming audio/video data.

NSURLNetworkServiceTypeResponsiveAV

A service type for responsive (time-sensitive) audio/video data.

See Also

Accessing the Service Type

networkServiceType

The network service type of the request.