Edytuj

Udostępnij za pośrednictwem


PHAssetResourceManager.WriteData Method

Definition

Asynchronously writes the data at the provided URL to the specified asset resource, and calls the provided completionHandler when the write operation is complete.

[Foundation.Export("writeDataForAssetResource:toFile:options:completionHandler:")]
public virtual void WriteData (Photos.PHAssetResource forResource, Foundation.NSUrl fileURL, Photos.PHAssetResourceRequestOptions options, Action<Foundation.NSError> completionHandler);
abstract member WriteData : Photos.PHAssetResource * Foundation.NSUrl * Photos.PHAssetResourceRequestOptions * Action<Foundation.NSError> -> unit
override this.WriteData : Photos.PHAssetResource * Foundation.NSUrl * Photos.PHAssetResourceRequestOptions * Action<Foundation.NSError> -> unit

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 .

This parameter can be null.

completionHandler
Action<NSError>

A handler to run when the operation is complete.

Attributes

Applies to