MultipeerConnectivity Changes for Objective-C
MultipeerConnectivity
MCAdvertiserAssistant.h
Modified MCAdvertiserAssistant.discoveryInfo
Declaration | |
---|---|
From | @property(readonly, nonatomic) NSDictionary *discoveryInfo |
To | @property(readonly, nonatomic, nullable) NSDictionary<NSString *,NSString *> *discoveryInfo |
Declaration | |
---|---|
From | - (instancetype)initWithServiceType:(NSString *)serviceType discoveryInfo:(NSDictionary *)info session:(MCSession *)session |
To | - (instancetype _Nonnull)initWithServiceType:(NSString * _Nonnull)serviceType discoveryInfo:(NSDictionary<NSString *,NSString *> * _Nullable)info session:(MCSession * _Nonnull)session |
MCBrowserViewController.h
Modified -[MCBrowserViewControllerDelegate browserViewController:shouldPresentNearbyPeer:withDiscoveryInfo:]
Declaration | |
---|---|
From | - (BOOL)browserViewController:(MCBrowserViewController *)browserViewController shouldPresentNearbyPeer:(MCPeerID *)peerID withDiscoveryInfo:(NSDictionary *)info |
To | - (BOOL)browserViewController:(MCBrowserViewController * _Nonnull)browserViewController shouldPresentNearbyPeer:(MCPeerID * _Nonnull)peerID withDiscoveryInfo:(NSDictionary<NSString *,NSString *> * _Nullable)info |
MCNearbyServiceAdvertiser.h
Declaration | |
---|---|
From | @property(readonly, nonatomic) NSDictionary *discoveryInfo |
To | @property(readonly, nonatomic, nullable) NSDictionary<NSString *,NSString *> *discoveryInfo |
Declaration | |
---|---|
From | - (instancetype)initWithPeer:(MCPeerID *)myPeerID discoveryInfo:(NSDictionary *)info serviceType:(NSString *)serviceType |
To | - (instancetype _Nonnull)initWithPeer:(MCPeerID * _Nonnull)myPeerID discoveryInfo:(NSDictionary<NSString *,NSString *> * _Nullable)info serviceType:(NSString * _Nonnull)serviceType |
MCNearbyServiceBrowser.h
Declaration | |
---|---|
From | - (void)browser:(MCNearbyServiceBrowser *)browser foundPeer:(MCPeerID *)peerID withDiscoveryInfo:(NSDictionary *)info |
To | - (void)browser:(MCNearbyServiceBrowser * _Nonnull)browser foundPeer:(MCPeerID * _Nonnull)peerID withDiscoveryInfo:(NSDictionary<NSString *,NSString *> * _Nullable)info |
MCSession.h
Modified MCSession.connectedPeers
Declaration | |
---|---|
From | @property(readonly, nonatomic) NSArray *connectedPeers |
To | @property(readonly, nonatomic, nonnull) NSArray<MCPeerID *> *connectedPeers |
Declaration | |
---|---|
From | - (BOOL)sendData:(NSData *)data toPeers:(NSArray *)peerIDs withMode:(MCSessionSendDataMode)mode error:(NSError **)error |
To | - (BOOL)sendData:(NSData * _Nonnull)data toPeers:(NSArray<MCPeerID *> * _Nonnull)peerIDs withMode:(MCSessionSendDataMode)mode error:(NSError * _Nullable * _Nullable)error |