Class

CTTelephonyNetworkInfo

An object that provides notifications of changes to the user’s cellular service provider.

Declaration

class CTTelephonyNetworkInfo : NSObject

Overview

Your app should be able to handle changes to the user’s cellular service provider. For example, the user could swap the device’s SIM card with one from another provider while your app is running.

This class also gives you access to the CTCarrier object, which contains information about the user’s home cellular service provider.

Topics

Getting Information About the Cellular Service Provider

var serviceCurrentRadioAccessTechnology: [String : String]?

A dictionary containing the current radio access technology registered to each service.

Radio Access Technology Constants

Constants that describe the current radio access technology.

var serviceSubscriberCellularProviders: [String : CTCarrier]?

A dictionary that contains carrier information about each service.

var serviceSubscriberCellularProvidersDidUpdateNotifier: ((String) -> Void)?

A block dispatched when there are updates to the user’s cellular provider information for any service.

Deprecated

var currentRadioAccessTechnology: String?

The current radio access technology registered with the device.

Deprecated
var subscriberCellularProvider: CTCarrier?

Information about the user’s cellular service provider.

Deprecated
var subscriberCellularProviderDidUpdateNotifier: ((CTCarrier) -> Void)?

A block dispatched when the user’s cellular service provider information changes.

Deprecated
static let CTRadioAccessTechnologyDidChange: NSNotification.Name

The name of the notification indicating that the radio access technology changed for one of the services.

Deprecated

Relationships

Inherits From

Conforms To

See Also

Service Information

class CTCarrier

Information about the user’s cellular service provider, such as its unique identifier and whether it allows VoIP calls on its network.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software