Documentation Archive Developer
Search

CoreWLAN Changes for Objective-C

CoreWLAN

CoreWLANUtil.h

Declaration
From
OSStatus CWKeychainCopyEAPIdentity (
    CFDataRef ssidData,
    SecIdentityRef *identity
);
To
OSStatus CWKeychainCopyEAPIdentity (
    CFDataRef _Nonnull ssidData,
    SecIdentityRef  _Nullable * _Nullable identity
);

Declaration
From
OSStatus CWKeychainCopyEAPIdentityList (
    CFArrayRef *list
);
To
OSStatus CWKeychainCopyEAPIdentityList (
    CFArrayRef  _Nullable * _Nullable list
);

Declaration
From
OSStatus CWKeychainCopyEAPUsernameAndPassword (
    CFDataRef ssidData,
    CFStringRef *username,
    CFStringRef *password
);
To
OSStatus CWKeychainCopyEAPUsernameAndPassword (
    CFDataRef _Nonnull ssidData,
    CFStringRef  _Nullable * _Nullable username,
    CFStringRef  _Nullable * _Nullable password
);

Declaration
From
OSStatus CWKeychainCopyPassword (
    CFDataRef ssidData,
    CFStringRef *password
);
To
OSStatus CWKeychainCopyPassword (
    CFDataRef _Nonnull ssidData,
    CFStringRef  _Nullable * _Nullable password
);

Declaration
From
OSStatus CWKeychainCopyWiFiEAPIdentity (
    CWKeychainDomain domain,
    NSData *ssid,
    SecIdentityRef *identity
);
To
OSStatus CWKeychainCopyWiFiEAPIdentity (
    CWKeychainDomain domain,
    NSData * _Nonnull ssid,
    SecIdentityRef  _Nullable * _Nullable identity
);

Declaration
From
OSStatus CWKeychainDeleteEAPUsernameAndPassword (
    CFDataRef ssidData
);
To
OSStatus CWKeychainDeleteEAPUsernameAndPassword (
    CFDataRef _Nonnull ssidData
);

Declaration
From
OSStatus CWKeychainDeletePassword (
    CFDataRef ssidData
);
To
OSStatus CWKeychainDeletePassword (
    CFDataRef _Nonnull ssidData
);

Declaration
From
OSStatus CWKeychainDeleteWiFiEAPUsernameAndPassword (
    CWKeychainDomain domain,
    NSData *ssid
);
To
OSStatus CWKeychainDeleteWiFiEAPUsernameAndPassword (
    CWKeychainDomain domain,
    NSData * _Nonnull ssid
);

Declaration
From
OSStatus CWKeychainDeleteWiFiPassword (
    CWKeychainDomain domain,
    NSData *ssid
);
To
OSStatus CWKeychainDeleteWiFiPassword (
    CWKeychainDomain domain,
    NSData * _Nonnull ssid
);

Declaration
From
OSStatus CWKeychainFindWiFiEAPUsernameAndPassword (
    CWKeychainDomain domain,
    NSData *ssid,
    NSString **username,
    NSString **password
);
To
OSStatus CWKeychainFindWiFiEAPUsernameAndPassword (
    CWKeychainDomain domain,
    NSData * _Nonnull ssid,
    NSString * _Nullable * _Nullable username,
    NSString * _Nullable * _Nullable password
);

Declaration
From
OSStatus CWKeychainFindWiFiPassword (
    CWKeychainDomain domain,
    NSData *ssid,
    NSString **password
);
To
OSStatus CWKeychainFindWiFiPassword (
    CWKeychainDomain domain,
    NSData * _Nonnull ssid,
    NSString * _Nullable * _Nullable password
);

Declaration
From
OSStatus CWKeychainSetEAPIdentity (
    CFDataRef ssidData,
    SecIdentityRef identity
);
To
OSStatus CWKeychainSetEAPIdentity (
    CFDataRef _Nonnull ssidData,
    SecIdentityRef _Nullable identity
);

Declaration
From
OSStatus CWKeychainSetEAPUsernameAndPassword (
    CFDataRef ssidData,
    CFStringRef username,
    CFStringRef password
);
To
OSStatus CWKeychainSetEAPUsernameAndPassword (
    CFDataRef _Nonnull ssidData,
    CFStringRef _Nullable username,
    CFStringRef _Nullable password
);

Declaration
From
OSStatus CWKeychainSetPassword (
    CFDataRef ssidData,
    CFStringRef password
);
To
OSStatus CWKeychainSetPassword (
    CFDataRef _Nonnull ssidData,
    CFStringRef _Nonnull password
);

Declaration
From
OSStatus CWKeychainSetWiFiEAPIdentity (
    CWKeychainDomain domain,
    NSData *ssid,
    SecIdentityRef identity
);
To
OSStatus CWKeychainSetWiFiEAPIdentity (
    CWKeychainDomain domain,
    NSData * _Nonnull ssid,
    SecIdentityRef _Nullable identity
);

Declaration
From
OSStatus CWKeychainSetWiFiEAPUsernameAndPassword (
    CWKeychainDomain domain,
    NSData *ssid,
    NSString *username,
    NSString *password
);
To
OSStatus CWKeychainSetWiFiEAPUsernameAndPassword (
    CWKeychainDomain domain,
    NSData * _Nonnull ssid,
    NSString * _Nullable username,
    NSString * _Nullable password
);

Declaration
From
OSStatus CWKeychainSetWiFiPassword (
    CWKeychainDomain domain,
    NSData *ssid,
    NSString *password
);
To
OSStatus CWKeychainSetWiFiPassword (
    CWKeychainDomain domain,
    NSData * _Nonnull ssid,
    NSString * _Nonnull password
);

Declaration
From
NSSet * CWMergeNetworks (
    NSSet *networks
);
To
NSSet<CWNetwork *> * _Nonnull CWMergeNetworks (
    NSSet<CWNetwork *> * _Nonnull networks
);

CWChannel.h

Declaration
From
- (BOOL)isEqualToChannel:(CWChannel *)channel
To
- (BOOL)isEqualToChannel:(CWChannel * _Nonnull)channel

CWConfiguration.h

Declaration
From
+ (instancetype)configuration
To
+ (instancetype _Nonnull)configuration

Declaration
From
+ (instancetype)configurationWithConfiguration:(CWConfiguration *)configuration
To
+ (instancetype _Nonnull)configurationWithConfiguration:(CWConfiguration * _Nonnull)configuration

Declaration
From
- (instancetype)init
To
- (instancetype _Nonnull)init

Declaration
From
- (instancetype)initWithConfiguration:(CWConfiguration *)configuration
To
- (instancetype _Nonnull)initWithConfiguration:(CWConfiguration * _Nonnull)configuration

Declaration
From
- (BOOL)isEqualToConfiguration:(CWConfiguration *)configuration
To
- (BOOL)isEqualToConfiguration:(CWConfiguration * _Nonnull)configuration

Declaration
From
@property(readonly, copy) NSOrderedSet *networkProfiles
To
@property(readonly, copy, nonnull) NSOrderedSet<CWNetworkProfile *> *networkProfiles

Declaration
From
@property(copy) NSOrderedSet *networkProfiles
To
@property(copy, nonnull) NSOrderedSet<CWNetworkProfile *> *networkProfiles

CWInterface.h

Declaration
From
- (BOOL)associateToEnterpriseNetwork:(CWNetwork *)network identity:(SecIdentityRef)identity username:(NSString *)username password:(NSString *)password error:(out NSError **)error
To
- (BOOL)associateToEnterpriseNetwork:(CWNetwork * _Nonnull)network identity:(SecIdentityRef _Nullable)identity username:(NSString * _Nullable)username password:(NSString * _Nullable)password error:(out NSError * _Nullable * _Nullable)error

Declaration
From
- (BOOL)associateToNetwork:(CWNetwork *)network password:(NSString *)password error:(out NSError **)error
To
- (BOOL)associateToNetwork:(CWNetwork * _Nonnull)network password:(NSString * _Nullable)password error:(out NSError * _Nullable * _Nullable)error

Declaration
From
- (NSString *)bssid
To
- (NSString * _Nullable)bssid

Declaration
From
- (NSSet *)cachedScanResults
To
- (NSSet<CWNetwork *> * _Nullable)cachedScanResults

Declaration
From
- (BOOL)commitConfiguration:(CWConfiguration *)configuration authorization:(SFAuthorization *)authorization error:(out NSError **)error
To
- (BOOL)commitConfiguration:(CWConfiguration * _Nonnull)configuration authorization:(SFAuthorization * _Nullable)authorization error:(out NSError * _Nullable * _Nullable)error

Declaration
From
- (CWConfiguration *)configuration
To
- (CWConfiguration * _Nullable)configuration

Declaration
From
- (NSString *)countryCode
To
- (NSString * _Nullable)countryCode

Declaration
From
- (NSString *)hardwareAddress
To
- (NSString * _Nullable)hardwareAddress

Declaration
From
- (instancetype)initWithInterfaceName:(NSString *)name
To
- (instancetype _Nonnull)initWithInterfaceName:(NSString * _Nonnull)name

Declaration
From
+ (instancetype)interface
To
+ (instancetype _Nonnull)interface

Declaration
From
@property(readonly) NSString *interfaceName
To
@property(readonly, nullable) NSString *interfaceName

Declaration
From
+ (NSSet *)interfaceNames
To
+ (NSSet<NSString *> * _Nullable)interfaceNames

Declaration
From
+ (instancetype)interfaceWithName:(NSString *)name
To
+ (instancetype _Nonnull)interfaceWithName:(NSString * _Nonnull)name

Declaration
From
- (NSSet *)scanForNetworksWithName:(NSString *)networkName error:(out NSError **)error
To
- (NSSet<CWNetwork *> * _Nullable)scanForNetworksWithName:(NSString * _Nullable)networkName error:(out NSError * _Nullable * _Nullable)error

Declaration
From
- (NSSet *)scanForNetworksWithSSID:(NSData *)ssid error:(out NSError **)error
To
- (NSSet<CWNetwork *> * _Nullable)scanForNetworksWithSSID:(NSData * _Nullable)ssid error:(out NSError * _Nullable * _Nullable)error

Declaration
From
- (BOOL)setPairwiseMasterKey:(NSData *)key error:(out NSError **)error
To
- (BOOL)setPairwiseMasterKey:(NSData * _Nullable)key error:(out NSError * _Nullable * _Nullable)error

Declaration
From
- (BOOL)setPower:(BOOL)power error:(out NSError **)error
To
- (BOOL)setPower:(BOOL)power error:(out NSError * _Nullable * _Nullable)error

Declaration
From
- (BOOL)setWEPKey:(NSData *)key flags:(CWCipherKeyFlags)flags index:(NSInteger)index error:(out NSError **)error
To
- (BOOL)setWEPKey:(NSData * _Nullable)key flags:(CWCipherKeyFlags)flags index:(NSInteger)index error:(out NSError * _Nullable * _Nullable)error

Declaration
From
- (BOOL)setWLANChannel:(CWChannel *)channel error:(out NSError **)error
To
- (BOOL)setWLANChannel:(CWChannel * _Nonnull)channel error:(out NSError * _Nullable * _Nullable)error

Declaration
From
- (NSString *)ssid
To
- (NSString * _Nullable)ssid

Declaration
From
- (NSData *)ssidData
To
- (NSData * _Nullable)ssidData

Declaration
From
- (BOOL)startIBSSModeWithSSID:(NSData *)ssidData security:(CWIBSSModeSecurity)security channel:(NSUInteger)channel password:(NSString *)password error:(out NSError **)error
To
- (BOOL)startIBSSModeWithSSID:(NSData * _Nonnull)ssidData security:(CWIBSSModeSecurity)security channel:(NSUInteger)channel password:(NSString * _Nullable)password error:(out NSError * _Nullable * _Nullable)error

Declaration
From
- (NSSet *)supportedWLANChannels
To
- (NSSet<CWChannel *> * _Nullable)supportedWLANChannels

Declaration
From
- (CWChannel *)wlanChannel
To
- (CWChannel * _Nullable)wlanChannel

CWNetwork.h

Declaration
From
@property(readonly) NSString *bssid
To
@property(readonly, nullable) NSString *bssid

Declaration
From
@property(readonly) NSString *countryCode
To
@property(readonly, nullable) NSString *countryCode

Declaration
From
@property(readonly) NSData *informationElementData
To
@property(readonly, nullable) NSData *informationElementData

Declaration
From
- (BOOL)isEqualToNetwork:(CWNetwork *)network
To
- (BOOL)isEqualToNetwork:(CWNetwork * _Nonnull)network

Declaration
From
@property(readonly) NSString *ssid
To
@property(readonly, nullable) NSString *ssid

Declaration
From
@property(readonly) NSData *ssidData
To
@property(readonly, nullable) NSData *ssidData

Declaration
From
@property(readonly) CWChannel *wlanChannel
To
@property(readonly, nonnull) CWChannel *wlanChannel

CWNetworkProfile.h

Declaration
From
@property(copy) NSData *ssidData
To
@property(copy, nonnull) NSData *ssidData

Declaration
From
- (instancetype)init
To
- (instancetype _Nonnull)init

Declaration
From
- (instancetype)initWithNetworkProfile:(CWNetworkProfile *)networkProfile
To
- (instancetype _Nonnull)initWithNetworkProfile:(CWNetworkProfile * _Nonnull)networkProfile

Declaration
From
- (BOOL)isEqualToNetworkProfile:(CWNetworkProfile *)networkProfile
To
- (BOOL)isEqualToNetworkProfile:(CWNetworkProfile * _Nonnull)networkProfile

Declaration
From
+ (instancetype)networkProfile
To
+ (instancetype _Nonnull)networkProfile

Declaration
From
+ (instancetype)networkProfileWithNetworkProfile:(CWNetworkProfile *)networkProfile
To
+ (instancetype _Nonnull)networkProfileWithNetworkProfile:(CWNetworkProfile * _Nonnull)networkProfile

Declaration
From
@property(readonly, copy) NSString *ssid
To
@property(readonly, copy, nullable) NSString *ssid

Declaration
From
@property(readonly, copy) NSData *ssidData
To
@property(readonly, copy, nullable) NSData *ssidData

CWWiFiClient.h

Declaration
From
- (void)bssidDidChangeForWiFiInterfaceWithName:(NSString *)interfaceName
To
- (void)bssidDidChangeForWiFiInterfaceWithName:(NSString * _Nonnull)interfaceName

Declaration
From
- (void)countryCodeDidChangeForWiFiInterfaceWithName:(NSString *)interfaceName
To
- (void)countryCodeDidChangeForWiFiInterfaceWithName:(NSString * _Nonnull)interfaceName

Declaration
From
- (void)linkDidChangeForWiFiInterfaceWithName:(NSString *)interfaceName
To
- (void)linkDidChangeForWiFiInterfaceWithName:(NSString * _Nonnull)interfaceName

Declaration
From
- (void)linkQualityDidChangeForWiFiInterfaceWithName:(NSString *)interfaceName rssi:(NSInteger)rssi transmitRate:(double)transmitRate
To
- (void)linkQualityDidChangeForWiFiInterfaceWithName:(NSString * _Nonnull)interfaceName rssi:(NSInteger)rssi transmitRate:(double)transmitRate

Declaration
From
- (void)modeDidChangeForWiFiInterfaceWithName:(NSString *)interfaceName
To
- (void)modeDidChangeForWiFiInterfaceWithName:(NSString * _Nonnull)interfaceName

Declaration
From
- (void)powerStateDidChangeForWiFiInterfaceWithName:(NSString *)interfaceName
To
- (void)powerStateDidChangeForWiFiInterfaceWithName:(NSString * _Nonnull)interfaceName

Declaration
From
- (void)scanCacheUpdatedForWiFiInterfaceWithName:(NSString *)interfaceName
To
- (void)scanCacheUpdatedForWiFiInterfaceWithName:(NSString * _Nonnull)interfaceName

Declaration
From
- (void)ssidDidChangeForWiFiInterfaceWithName:(NSString *)interfaceName
To
- (void)ssidDidChangeForWiFiInterfaceWithName:(NSString * _Nonnull)interfaceName

Declaration
From
@property(nonatomic, weak) id delegate
To
@property(nonatomic, weak, nullable) id delegate

Declaration
From
- (CWWiFiClient *)init
To
- (CWWiFiClient * _Nullable)init

Declaration
From
- (CWInterface *)interface
To
- (CWInterface * _Nullable)interface

Declaration
From
+ (NSArray *)interfaceNames
To
+ (NSArray<NSString *> * _Nullable)interfaceNames

Declaration
From
- (NSArray *)interfaces
To
- (NSArray<CWInterface *> * _Nullable)interfaces

Declaration
From
- (CWInterface *)interfaceWithName:(NSString *)interfaceName
To
- (CWInterface * _Nullable)interfaceWithName:(NSString * _Nullable)interfaceName

Declaration
From
+ (CWWiFiClient *)sharedWiFiClient
To
+ (CWWiFiClient * _Nonnull)sharedWiFiClient

Declaration
From
- (BOOL)startMonitoringEventWithType:(CWEventType)type error:(out NSError **)error
To
- (BOOL)startMonitoringEventWithType:(CWEventType)type error:(out NSError * _Nullable * _Nullable)error

Declaration
From
- (BOOL)stopMonitoringAllEventsAndReturnError:(out NSError **)error
To
- (BOOL)stopMonitoringAllEventsAndReturnError:(out NSError * _Nullable * _Nullable)error

Declaration
From
- (BOOL)stopMonitoringEventWithType:(CWEventType)type error:(out NSError **)error
To
- (BOOL)stopMonitoringEventWithType:(CWEventType)type error:(out NSError * _Nullable * _Nullable)error