Enumeration

NSURLRequest.NetworkServiceType

Constants that specify how a request uses network resources.

Declaration

enum NetworkServiceType : UInt

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

Topics

Network Service Types

case `default`

A service type for standard network traffic.

case voip

A service type for VoIP traffic.

Deprecated
case video

A service type for video traffic.

case background

A service type for background traffic.

case voice

A service type for voice traffic.

case callSignaling

A service type for call signaling.

case responsiveData

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

case avStreaming

A service type for streaming audio/video data.

case responsiveAV

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

See Also

Accessing the Service Type

var networkServiceType: NSURLRequest.NetworkServiceType

The network service type of the request.