PHAssetResourceManager.WriteDataAsync 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.
Asynchronously writes the data at the provided URL to the specified asset resource, and calls the provided completionHandler
when the write operation is complete.
public virtual System.Threading.Tasks.Task WriteDataAsync (Photos.PHAssetResource forResource, Foundation.NSUrl fileURL, Photos.PHAssetResourceRequestOptions options);
abstract member WriteDataAsync : Photos.PHAssetResource * Foundation.NSUrl * Photos.PHAssetResourceRequestOptions -> System.Threading.Tasks.Task
override this.WriteDataAsync : Photos.PHAssetResource * Foundation.NSUrl * Photos.PHAssetResourceRequestOptions -> System.Threading.Tasks.Task
Parameters
- forResource
- PHAssetResource
The resource from which to get the data.
- fileURL
- NSUrl
The file to write to.
- options
- PHAssetResourceRequestOptions
Object that contains a progress handler and a value that specifes whether the network may be used. This parameter may be .
Returns
A task that represents the asynchronous WriteData operation
Remarks
The WriteDataAsync method is suitable to be used with C# async by returning control to the caller with a Task representing the operation.
To be added.