Constants
The following constants are available globally.
-
Notification posted when an instance of
SLRNetworkMonitor
begins monitoring the device’s network connectivity status.Declaration
Objective-C
extern const NSNotificationName _Nonnull SLRNetworkMonitorDidStartMonitoringNotification
Swift
static let SLRNetworkMonitorDidStartMonitoring: NSNotification.Name
-
Notification posted when an instance of
SLRNetworkMonitor
stops monitoring the device’s network connectivity status.Declaration
Objective-C
extern const NSNotificationName _Nonnull SLRNetworkMonitorDidStopMonitoringNotification
Swift
static let SLRNetworkMonitorDidStopMonitoring: NSNotification.Name
-
Notification posted when an instance of
SLRNetworkMonitor
detects a change in the device’s network connectivity status. Details are in theuserInfo
object.Declaration
Objective-C
extern const NSNotificationName _Nonnull SLRNetworkMonitorNetworkStateDidChangeNotification
Swift
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 SLRNetworkMonitorNetworkStatusKey
Swift
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 SLRNetworkMonitorNetworkUsesWiFiKey
Swift
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 SLRNetworkMonitorNetworkUsesCellularKey
Swift
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 SLRNetworkMonitorNetworkUsesWiredKey
Swift
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 SLRNetworkMonitorNetworkIsExpensiveKey
Swift
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 SLRNetworkMonitorNetworkSupportsIPv4Key
Swift
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 SLRNetworkMonitorNetworkSupportsIPv6Key
Swift
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 SLRNetworkMonitorNetworkHasDNSKey
Swift
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 SLRNetworkMonitorNetworkIsConstrainedKey
Swift
static let networkIsConstrainedKey: SLRNetworkMonitorUserInfoKey
-
Notification user info key that contains a
NSDictionary
of interface names (NSString)
to aNSArray
of their usable address(es).Declaration
Objective-C
extern const SLRNetworkMonitorUserInfoKey _Nonnull SLRNetworkMonitorUsableInterfacesKey
Swift
static let usableInterfacesKey: SLRNetworkMonitorUserInfoKey
-
Notification user info key that contains a
NSArray
of DNS server addresses asNSStrings.
Declaration
Objective-C
extern const SLRNetworkMonitorUserInfoKey _Nonnull SLRNetworkMonitorDNSServersKey
Swift
static let dnsServersKey: SLRNetworkMonitorUserInfoKey
-
Notification user info key that contains a
NSDictionary
of cellular services (NSString)
to aCTCarrier
objects that contain information about the cellular provider.Declaration
Objective-C
extern const SLRNetworkMonitorUserInfoKey _Nonnull SLRNetworkMonitorCellularProvidersKey
Swift
static let cellularProvidersKey: SLRNetworkMonitorUserInfoKey
-
Notification user info key that contains a
NSDictionary
of cellular services (NSString)
to aNSString
representation of their active radio technology.Declaration
Objective-C
extern const SLRNetworkMonitorUserInfoKey _Nonnull SLRNetworkMonitorCellularRadioTechnologiesKey
Swift
static let cellularRadioTechnologiesKey: SLRNetworkMonitorUserInfoKey