MultipeerConnectivity Changes for Objective-C
MultipeerConnectivity
MCAdvertiserAssistant.h
Modified MCAdvertiserAssistant.delegate
Declaration | |
---|---|
From | @property(weak, atomic) id<MCAdvertiserAssistantDelegate> delegate |
To | @property(weak, atomic, nullable) id<MCAdvertiserAssistantDelegate> delegate |
Modified MCAdvertiserAssistant.discoveryInfo
Declaration | |
---|---|
From | @property(readonly, atomic) NSDictionary *discoveryInfo |
To | @property(readonly, atomic, 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 |
Modified MCAdvertiserAssistant.serviceType
Declaration | |
---|---|
From | @property(readonly, atomic) NSString *serviceType |
To | @property(readonly, atomic, nonnull) NSString *serviceType |
Modified MCAdvertiserAssistant.session
Declaration | |
---|---|
From | @property(readonly, atomic) MCSession *session |
To | @property(readonly, atomic, nonnull) MCSession *session |
Declaration | |
---|---|
From | - (void)advertiserAssistantDidDismissInvitation:(MCAdvertiserAssistant *)advertiserAssistant |
To | - (void)advertiserAssistantDidDismissInvitation:(MCAdvertiserAssistant * _Nonnull)advertiserAssistant |
Declaration | |
---|---|
From | - (void)advertiserAssistantWillPresentInvitation:(MCAdvertiserAssistant *)advertiserAssistant |
To | - (void)advertiserAssistantWillPresentInvitation:(MCAdvertiserAssistant * _Nonnull)advertiserAssistant |
MCBrowserViewController.h
Modified MCBrowserViewController.browser
Declaration | |
---|---|
From | @property(readonly, atomic) MCNearbyServiceBrowser *browser |
To | @property(readonly, atomic, nonnull) MCNearbyServiceBrowser *browser |
Modified MCBrowserViewController.delegate
Declaration | |
---|---|
From | @property(weak, atomic) id<MCBrowserViewControllerDelegate> delegate |
To | @property(weak, atomic, nullable) id<MCBrowserViewControllerDelegate> delegate |
Declaration | |
---|---|
From | - (instancetype)initWithBrowser:(MCNearbyServiceBrowser *)browser session:(MCSession *)session |
To | - (instancetype _Nonnull)initWithBrowser:(MCNearbyServiceBrowser * _Nonnull)browser session:(MCSession * _Nonnull)session |
Declaration | |
---|---|
From | - (instancetype)initWithServiceType:(NSString *)serviceType session:(MCSession *)session |
To | - (instancetype _Nonnull)initWithServiceType:(NSString * _Nonnull)serviceType session:(MCSession * _Nonnull)session |
Modified MCBrowserViewController.session
Declaration | |
---|---|
From | @property(readonly, atomic) MCSession *session |
To | @property(readonly, atomic, nonnull) MCSession *session |
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 |
Declaration | |
---|---|
From | - (void)browserViewControllerDidFinish:(MCBrowserViewController *)browserViewController |
To | - (void)browserViewControllerDidFinish:(MCBrowserViewController * _Nonnull)browserViewController |
Declaration | |
---|---|
From | - (void)browserViewControllerWasCancelled:(MCBrowserViewController *)browserViewController |
To | - (void)browserViewControllerWasCancelled:(MCBrowserViewController * _Nonnull)browserViewController |
MCNearbyServiceAdvertiser.h
Modified MCNearbyServiceAdvertiser.delegate
Declaration | |
---|---|
From | @property(weak, atomic) id<MCNearbyServiceAdvertiserDelegate> delegate |
To | @property(weak, atomic, nullable) id<MCNearbyServiceAdvertiserDelegate> delegate |
Declaration | |
---|---|
From | @property(readonly, atomic) NSDictionary *discoveryInfo |
To | @property(readonly, atomic, 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 |
Modified MCNearbyServiceAdvertiser.myPeerID
Declaration | |
---|---|
From | @property(readonly, atomic) MCPeerID *myPeerID |
To | @property(readonly, atomic, nonnull) MCPeerID *myPeerID |
Declaration | |
---|---|
From | @property(readonly, atomic) NSString *serviceType |
To | @property(readonly, atomic, nonnull) NSString *serviceType |
Declaration | |
---|---|
From | - (void)advertiser:(MCNearbyServiceAdvertiser *)advertiser didNotStartAdvertisingPeer:(NSError *)error |
To | - (void)advertiser:(MCNearbyServiceAdvertiser * _Nonnull)advertiser didNotStartAdvertisingPeer:(NSError * _Nonnull)error |
Declaration | |
---|---|
From | - (void)advertiser:(MCNearbyServiceAdvertiser *)advertiser didReceiveInvitationFromPeer:(MCPeerID *)peerID withContext:(NSData *)context invitationHandler:(void (^)(BOOL accept, MCSession *session))invitationHandler |
To | - (void)advertiser:(MCNearbyServiceAdvertiser * _Nonnull)advertiser didReceiveInvitationFromPeer:(MCPeerID * _Nonnull)peerID withContext:(NSData * _Nullable)context invitationHandler:(void (^ _Nonnull)(BOOL accept, MCSession * _Nonnull session))invitationHandler |
MCNearbyServiceBrowser.h
Modified MCNearbyServiceBrowser.delegate
Declaration | |
---|---|
From | @property(weak, atomic) id<MCNearbyServiceBrowserDelegate> delegate |
To | @property(weak, atomic, nullable) id<MCNearbyServiceBrowserDelegate> delegate |
Declaration | |
---|---|
From | - (instancetype)initWithPeer:(MCPeerID *)myPeerID serviceType:(NSString *)serviceType |
To | - (instancetype _Nonnull)initWithPeer:(MCPeerID * _Nonnull)myPeerID serviceType:(NSString * _Nonnull)serviceType |
Declaration | |
---|---|
From | - (void)invitePeer:(MCPeerID *)peerID toSession:(MCSession *)session withContext:(NSData *)context timeout:(NSTimeInterval)timeout |
To | - (void)invitePeer:(MCPeerID * _Nonnull)peerID toSession:(MCSession * _Nonnull)session withContext:(NSData * _Nullable)context timeout:(NSTimeInterval)timeout |
Modified MCNearbyServiceBrowser.myPeerID
Declaration | |
---|---|
From | @property(readonly, atomic) MCPeerID *myPeerID |
To | @property(readonly, atomic, nonnull) MCPeerID *myPeerID |
Modified MCNearbyServiceBrowser.serviceType
Declaration | |
---|---|
From | @property(readonly, atomic) NSString *serviceType |
To | @property(readonly, atomic, nonnull) NSString *serviceType |
Declaration | |
---|---|
From | - (void)browser:(MCNearbyServiceBrowser *)browser didNotStartBrowsingForPeers:(NSError *)error |
To | - (void)browser:(MCNearbyServiceBrowser * _Nonnull)browser didNotStartBrowsingForPeers:(NSError * _Nonnull)error |
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 |
Declaration | |
---|---|
From | - (void)browser:(MCNearbyServiceBrowser *)browser lostPeer:(MCPeerID *)peerID |
To | - (void)browser:(MCNearbyServiceBrowser * _Nonnull)browser lostPeer:(MCPeerID * _Nonnull)peerID |
MCPeerID.h
Modified MCPeerID.displayName
Declaration | |
---|---|
From | @property(readonly, atomic) NSString *displayName |
To | @property(readonly, atomic, nonnull) NSString *displayName |
Modified -[MCPeerID initWithDisplayName:]
Declaration | |
---|---|
From | - (instancetype)initWithDisplayName:(NSString *)myDisplayName |
To | - (instancetype _Nonnull)initWithDisplayName:(NSString * _Nonnull)myDisplayName |
MCSession.h
Modified -[MCSession cancelConnectPeer:]
Declaration | |
---|---|
From | - (void)cancelConnectPeer:(MCPeerID *)peerID |
To | - (void)cancelConnectPeer:(MCPeerID * _Nonnull)peerID |
Modified MCSession.connectedPeers
Declaration | |
---|---|
From | @property(readonly, atomic) NSArray *connectedPeers |
To | @property(readonly, atomic, nonnull) NSArray<MCPeerID *> *connectedPeers |
Declaration | |
---|---|
From | - (void)connectPeer:(MCPeerID *)peerID withNearbyConnectionData:(NSData *)data |
To | - (void)connectPeer:(MCPeerID * _Nonnull)peerID withNearbyConnectionData:(NSData * _Nonnull)data |
Modified MCSession.delegate
Declaration | |
---|---|
From | @property(weak, atomic) id<MCSessionDelegate> delegate |
To | @property(weak, atomic, nullable) id<MCSessionDelegate> delegate |
Modified -[MCSession initWithPeer:]
Declaration | |
---|---|
From | - (instancetype)initWithPeer:(MCPeerID *)myPeerID |
To | - (instancetype _Nonnull)initWithPeer:(MCPeerID * _Nonnull)myPeerID |
Declaration | |
---|---|
From | - (instancetype)initWithPeer:(MCPeerID *)myPeerID securityIdentity:(NSArray *)identity encryptionPreference:(MCEncryptionPreference)encryptionPreference |
To | - (instancetype _Nonnull)initWithPeer:(MCPeerID * _Nonnull)myPeerID securityIdentity:(NSArray * _Nullable)identity encryptionPreference:(MCEncryptionPreference)encryptionPreference |
Modified MCSession.myPeerID
Declaration | |
---|---|
From | @property(readonly, atomic) MCPeerID *myPeerID |
To | @property(readonly, atomic, nonnull) MCPeerID *myPeerID |
Declaration | |
---|---|
From | - (void)nearbyConnectionDataForPeer:(MCPeerID *)peerID withCompletionHandler:(void (^)(NSData *connectionData, NSError *error))completionHandler |
To | - (void)nearbyConnectionDataForPeer:(MCPeerID * _Nonnull)peerID withCompletionHandler:(void (^ _Nonnull)(NSData * _Nonnull connectionData, NSError * _Nullable error))completionHandler |
Modified MCSession.securityIdentity
Declaration | |
---|---|
From | @property(readonly, atomic) NSArray *securityIdentity |
To | @property(readonly, atomic, nullable) NSArray *securityIdentity |
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 |
Declaration | |
---|---|
From | - (NSProgress *)sendResourceAtURL:(NSURL *)resourceURL withName:(NSString *)resourceName toPeer:(MCPeerID *)peerID withCompletionHandler:(void (^)(NSError *error))completionHandler |
To | - (NSProgress * _Nullable)sendResourceAtURL:(NSURL * _Nonnull)resourceURL withName:(NSString * _Nonnull)resourceName toPeer:(MCPeerID * _Nonnull)peerID withCompletionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler |
Declaration | |
---|---|
From | - (NSOutputStream *)startStreamWithName:(NSString *)streamName toPeer:(MCPeerID *)peerID error:(NSError **)error |
To | - (NSOutputStream * _Nullable)startStreamWithName:(NSString * _Nonnull)streamName toPeer:(MCPeerID * _Nonnull)peerID error:(NSError * _Nullable * _Nullable)error |
Declaration | |
---|---|
From | - (void)session:(MCSession *)session didFinishReceivingResourceWithName:(NSString *)resourceName fromPeer:(MCPeerID *)peerID atURL:(NSURL *)localURL withError:(NSError *)error |
To | - (void)session:(MCSession * _Nonnull)session didFinishReceivingResourceWithName:(NSString * _Nonnull)resourceName fromPeer:(MCPeerID * _Nonnull)peerID atURL:(NSURL * _Nonnull)localURL withError:(NSError * _Nullable)error |
Declaration | |
---|---|
From | - (void)session:(MCSession *)session didReceiveCertificate:(NSArray *)certificate fromPeer:(MCPeerID *)peerID certificateHandler:(void (^)(BOOL accept))certificateHandler |
To | - (void)session:(MCSession * _Nonnull)session didReceiveCertificate:(NSArray * _Nullable)certificate fromPeer:(MCPeerID * _Nonnull)peerID certificateHandler:(void (^ _Nonnull)(BOOL accept))certificateHandler |
Declaration | |
---|---|
From | - (void)session:(MCSession *)session didReceiveData:(NSData *)data fromPeer:(MCPeerID *)peerID |
To | - (void)session:(MCSession * _Nonnull)session didReceiveData:(NSData * _Nonnull)data fromPeer:(MCPeerID * _Nonnull)peerID |
Declaration | |
---|---|
From | - (void)session:(MCSession *)session didReceiveStream:(NSInputStream *)stream withName:(NSString *)streamName fromPeer:(MCPeerID *)peerID |
To | - (void)session:(MCSession * _Nonnull)session didReceiveStream:(NSInputStream * _Nonnull)stream withName:(NSString * _Nonnull)streamName fromPeer:(MCPeerID * _Nonnull)peerID |
Declaration | |
---|---|
From | - (void)session:(MCSession *)session didStartReceivingResourceWithName:(NSString *)resourceName fromPeer:(MCPeerID *)peerID withProgress:(NSProgress *)progress |
To | - (void)session:(MCSession * _Nonnull)session didStartReceivingResourceWithName:(NSString * _Nonnull)resourceName fromPeer:(MCPeerID * _Nonnull)peerID withProgress:(NSProgress * _Nonnull)progress |
Declaration | |
---|---|
From | - (void)session:(MCSession *)session peer:(MCPeerID *)peerID didChangeState:(MCSessionState)state |
To | - (void)session:(MCSession * _Nonnull)session peer:(MCPeerID * _Nonnull)peerID didChangeState:(MCSessionState)state |