Wednesday, May 1, 2013

NSURLRequest NSURLNetworkServiceTypeBackground example ios


enum
{
   NSURLNetworkServiceTypeDefault    = 0,
   NSURLNetworkServiceTypeVoIP       = 1,
   NSURLNetworkServiceTypeVideo      = 2,
   NSURLNetworkServiceTypeBackground = 3,
   NSURLNetworkServiceTypeVoice      = 4
};
typedef NSUInteger NSURLRequestNetworkServiceType; 

NSURLNetworkServiceTypeBackground
Specifies that the request is for background traffic.
Example of [NSURLRequest NSURLNetworkServiceTypeBackground]
[request setNetworkServiceType:NSURLNetworkServiceTypeBackground];