MultiPeerDelegate
public protocol MultiPeerDelegate : AnyObject
MultiPeerDelegate
- Delegate for MultiPeer. Conform to this interface to recieve data and be notified when connection/disconnection events occur
multiPeer(didRecieveData: Data, ofType: UInt32) multiPeer(connectedDevicesChanged: [String])
-
didReceiveData: delegate runs on receiving data from another peer
Declaration
Swift
func multiPeer(didReceiveData data: Data, ofType type: UInt32)
-
connectedDevicesChanged: delegate runs on connection/disconnection event in session
Declaration
Swift
func multiPeer(connectedDevicesChanged devices: [String])