Documentation Archive Developer
Search

ExternalAccessory Changes for Objective-C

ExternalAccessory

EAAccessory.h

Declaration
From
@property(nonatomic, readonly) NSArray *protocolStrings
To
@property(nonatomic, readonly, nonnull) NSArray<NSString *> *protocolStrings

EAAccessoryManager.h

Declaration
From
@property(nonatomic, readonly) NSArray *connectedAccessories
To
@property(nonatomic, readonly, nonnull) NSArray<EAAccessory *> *connectedAccessories

EAWiFiUnconfiguredAccessoryBrowser.h

Declaration
From
@property(readonly, copy, atomic) NSSet *unconfiguredAccessories
To
@property(readonly, copy, atomic, nonnull) NSSet<EAWiFiUnconfiguredAccessory *> *unconfiguredAccessories

Declaration
From
- (void)accessoryBrowser:(EAWiFiUnconfiguredAccessoryBrowser *)browser didFindUnconfiguredAccessories:(NSSet *)accessories
To
- (void)accessoryBrowser:(EAWiFiUnconfiguredAccessoryBrowser * _Nonnull)browser didFindUnconfiguredAccessories:(NSSet<EAWiFiUnconfiguredAccessory *> * _Nonnull)accessories

Declaration
From
- (void)accessoryBrowser:(EAWiFiUnconfiguredAccessoryBrowser *)browser didRemoveUnconfiguredAccessories:(NSSet *)accessories
To
- (void)accessoryBrowser:(EAWiFiUnconfiguredAccessoryBrowser * _Nonnull)browser didRemoveUnconfiguredAccessories:(NSSet<EAWiFiUnconfiguredAccessory *> * _Nonnull)accessories