Contents

session(_:didStartReceivingResourceWithName:fromPeer:with:)

Indicates that the local peer began receiving a resource from a nearby peer.

Declaration

func session(_ session: MCSession, didStartReceivingResourceWithName resourceName: String, fromPeer peerID: MCPeerID, with progress: Progress)

Parameters

  • session:

    The session that started receiving the resource.

  • resourceName:

    The name of the resource, as provided by the sender.

  • peerID:

    The sender’s peer ID.

  • progress:

    An NSProgress object that can be used to cancel the transfer or queried to determine how far the transfer has progressed.

See Also

MCSession Delegate Methods