MCSession.SendResource(NSUrl, String, MCPeerID, Action<NSError>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Enqueues for delivery to peerID
the resource at resourceUrl
.
[Foundation.Export("sendResourceAtURL:withName:toPeer:withCompletionHandler:")]
public virtual Foundation.NSProgress SendResource (Foundation.NSUrl resourceUrl, string resourceName, MultipeerConnectivity.MCPeerID peerID, Action<Foundation.NSError> completionHandler);
abstract member SendResource : Foundation.NSUrl * string * MultipeerConnectivity.MCPeerID * Action<Foundation.NSError> -> Foundation.NSProgress
override this.SendResource : Foundation.NSUrl * string * MultipeerConnectivity.MCPeerID * Action<Foundation.NSError> -> Foundation.NSProgress
Parameters
- resourceUrl
- NSUrl
The URL to the resource.
- resourceName
- String
The name of the resource.
- peerID
- MCPeerID
The ID of the receiving peer.
A handler that is run after delivery or failure.
This parameter can be null
.
Returns
true
if the resource was enqueued for delivery.
- Attributes
Remarks
Note that the return value only indicates successful enqueueing of the resource for transmission, not a confirmation of delivery. Delivery success or failure is passed in to the completionHandler
.