Contents

availableSliceAppCategories

Network-slicing app categories available to your app.

Declaration

final var availableSliceAppCategories: [CTSlicingManager.AppCategory] { get async throws }

Discussion

This property returns an array of CTSlicingManager.AppCategory values that meet all of the following requirements:

  • The carrier’s network supports them.

  • Your app’s entitlements include them.

  • The device and network currently make them available.

Query this property before attempting to activate a specific network slice category to ensure it’s available.

do {
    let categories = try await CTSlicingManager.shared.availableSliceAppCategories
    print("Available categories: \(categories)")
} catch POSIXError.ENOTSUP {
    print("Network slicing isn't currently available")
} catch {
    print("Error retrieving categories: \(error)")
}