networkServiceType
The type of network service for all tasks within network sessions to enable Cellular Network Slicing.
Declaration
var networkServiceType: URLRequest.NetworkServiceType { get set }Discussion
There are two steps to enable Cellular Network Slicing:
Set the entitlements in your property list for 5G Network Slicing App Category and 5G Network Slicing Traffic Category. If you don’t entitle your app by specifying both these entitlements, your apps network connections won’t be using Cellular Network Slicing, even if supported by the carrier.
At the time of network flow creation, set this to the appropriate NSURLRequest.NetworkServiceType for your application type.