The constants used to specify the network service type of a request.


enum NetworkServiceType : UInt


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.NetworkServiceType.default service type.


Network Service Types

case `default`

The request is for standard network traffic.

case voip

The request is for VoIP traffic.

case video

The request is for video traffic.

case background

The request is for background traffic.

case voice

The request is for voice traffic.

case callSignaling

The request is for call signaling.

case responsiveData

The request is for data that the user is actively waiting for.

See Also

Accessing the Service Type

var networkServiceType: NSURLRequest.NetworkServiceType

The network service type of the request.