BUNetworkManager Class Reference
Inherits from | NSObject |
---|---|
Declared in | BUNetworkManager.h |
+ allWifiConfigs
An array of BUWifiConfig objects
The first object will be for the currentWifi if one exists Any additional wifi configurations will be from previously saved configurations
+ (nonnull NSArray<BUWifiConfig*> *)allWifiConfigs
Return Value
Current SSID the device is connected to and all saved BUWifiConfig objects
Declared In
BUNetworkManager.h
+ currentWifiSSID
Wifi SSID the phone is currently connected to
This class method returns the current SSID (name) of the wifi network that the iOS device
is connected to. It may change if the user changes their network settings. The method may
also be nil if the user is not connected to any wifi network. As of iOS 13, if Wi-Fi
is returned
from the OS (dependant on your app’s permisions) it will be converted to nil.
It is recommended to use the allWifiConfigs array rather than the individual ssid’s
+ (nullable NSString *)currentWifiSSID
Return Value
Current SSID network name
Declared In
BUNetworkManager.h
+ savedWifiSSIDs
SSIDs that were previously saved
Return an array of strings containing a list of the SSIDs that have been saved by the user This list may contain the currentWifiSSID value.
It is recommended to use the allWifiConfigs array rather than the list of ssid strings
+ (nonnull NSArray<NSString*> *)savedWifiSSIDs
Return Value
Current SSID the device is connected to and all saved BUWifiConfig objects
Declared In
BUNetworkManager.h
+ clearSavedData
Delete all saved SSIDs or passwords from the keychain
+ (void)clearSavedData
Declared In
BUNetworkManager.h
+ isValidIpAddress:
Validate an IP Address
+ (BOOL)isValidIpAddress:(NSString *_Nullable)ip
Parameters
ip |
String to evaluate |
---|
Return Value
True if the string is an ip, false otherwise
Declared In
BUNetworkManager.h