Constants
The following constants are available globally.
-
Notification posted when an instance of
SLRNetworkMonitorbegins monitoring the device’s network connectivity status.Declaration
Objective-C
extern const NSNotificationName _Nonnull SLRNetworkMonitorDidStartMonitoringNotificationSwift
static let SLRNetworkMonitorDidStartMonitoring: NSNotification.Name -
Notification posted when an instance of
SLRNetworkMonitorstops monitoring the device’s network connectivity status.Declaration
Objective-C
extern const NSNotificationName _Nonnull SLRNetworkMonitorDidStopMonitoringNotificationSwift
static let SLRNetworkMonitorDidStopMonitoring: NSNotification.Name -
Notification posted when an instance of
SLRNetworkMonitordetects a change in the device’s network connectivity status. Details are in theuserInfoobject.Declaration
Objective-C
extern const NSNotificationName _Nonnull SLRNetworkMonitorNetworkStateDidChangeNotificationSwift
static let SLRNetworkMonitorNetworkStateDidChange: NSNotification.Name -
Notification user info key that contains the current network connectivity status (
nw_path_status_t)wrapped in aNSNumber.Declaration
Objective-C
extern const SLRNetworkMonitorUserInfoKey _Nonnull SLRNetworkMonitorNetworkStatusKeySwift
static let networkStatusKey: SLRNetworkMonitorUserInfoKey -
Notification user info key that contains a boolean of whether or not the current network uses WiFi wrapped in a
NSNumber.Declaration
Objective-C
extern const SLRNetworkMonitorUserInfoKey _Nonnull SLRNetworkMonitorNetworkUsesWiFiKeySwift
static let networkUsesWiFiKey: SLRNetworkMonitorUserInfoKey -
Notification user info key that contains a boolean of whether or not the current network uses Cellular wrapped in a
NSNumber.Declaration
Objective-C
extern const SLRNetworkMonitorUserInfoKey _Nonnull SLRNetworkMonitorNetworkUsesCellularKeySwift
static let networkUsesCellularKey: SLRNetworkMonitorUserInfoKey -
Notification user info key that contains a boolean of whether or not the current network uses Ethernet wrapped in a
NSNumber.Declaration
Objective-C
extern const SLRNetworkMonitorUserInfoKey _Nonnull SLRNetworkMonitorNetworkUsesWiredKeySwift
static let networkUsesWiredKey: SLRNetworkMonitorUserInfoKey -
Notification user info key that contains a boolean of whether or not the current network uses an expensive route wrapped in a
NSNumber.Declaration
Objective-C
extern const SLRNetworkMonitorUserInfoKey _Nonnull SLRNetworkMonitorNetworkIsExpensiveKeySwift
static let networkIsExpensiveKey: SLRNetworkMonitorUserInfoKey -
Notification user info key that contains a boolean of whether or not the current network supports IPv4 wrapped in a
NSNumber.Declaration
Objective-C
extern const SLRNetworkMonitorUserInfoKey _Nonnull SLRNetworkMonitorNetworkSupportsIPv4KeySwift
static let networkSupportsIPv4Key: SLRNetworkMonitorUserInfoKey -
Notification user info key that contains a boolean of whether or not the current network supports IPv6 wrapped in a
NSNumber.Declaration
Objective-C
extern const SLRNetworkMonitorUserInfoKey _Nonnull SLRNetworkMonitorNetworkSupportsIPv6KeySwift
static let networkSupportsIPv6Key: SLRNetworkMonitorUserInfoKey -
Notification user info key that contains a boolean of whether or not the current network has a DNS configuration wrapped in a
NSNumber.Declaration
Objective-C
extern const SLRNetworkMonitorUserInfoKey _Nonnull SLRNetworkMonitorNetworkHasDNSKeySwift
static let networkHasDNSKey: SLRNetworkMonitorUserInfoKey -
Notification user info key that contains a boolean of whether or not the current network is constrained.
Declaration
Objective-C
extern const SLRNetworkMonitorUserInfoKey _Nonnull SLRNetworkMonitorNetworkIsConstrainedKeySwift
static let networkIsConstrainedKey: SLRNetworkMonitorUserInfoKey -
Notification user info key that contains a
NSDictionaryof interface names (NSString)to aNSArrayof their usable address(es).Declaration
Objective-C
extern const SLRNetworkMonitorUserInfoKey _Nonnull SLRNetworkMonitorUsableInterfacesKeySwift
static let usableInterfacesKey: SLRNetworkMonitorUserInfoKey -
Notification user info key that contains a
NSArrayof DNS server addresses asNSStrings.Declaration
Objective-C
extern const SLRNetworkMonitorUserInfoKey _Nonnull SLRNetworkMonitorDNSServersKeySwift
static let dnsServersKey: SLRNetworkMonitorUserInfoKey -
Notification user info key that contains a
NSDictionaryof cellular services (NSString)to aCTCarrierobjects that contain information about the cellular provider.Declaration
Objective-C
extern const SLRNetworkMonitorUserInfoKey _Nonnull SLRNetworkMonitorCellularProvidersKeySwift
static let cellularProvidersKey: SLRNetworkMonitorUserInfoKey -
Notification user info key that contains a
NSDictionaryof cellular services (NSString)to aNSStringrepresentation of their active radio technology.Declaration
Objective-C
extern const SLRNetworkMonitorUserInfoKey _Nonnull SLRNetworkMonitorCellularRadioTechnologiesKeySwift
static let cellularRadioTechnologiesKey: SLRNetworkMonitorUserInfoKey
View on GitHub
Constants Reference