共用方式為


AVCapturePhotoOutput.SetPreparedPhotoSettingsAsync 方法

定義

使用提供的相片設定準備相片擷取輸出以供未來要求使用,並在完成時執行完成處理常式。

public virtual System.Threading.Tasks.Task<Tuple<bool,Foundation.NSError>> SetPreparedPhotoSettingsAsync (AVFoundation.AVCapturePhotoSettings[] preparedPhotoSettingsArray);
abstract member SetPreparedPhotoSettingsAsync : AVFoundation.AVCapturePhotoSettings[] -> System.Threading.Tasks.Task<bool * Foundation.NSError>
override this.SetPreparedPhotoSettingsAsync : AVFoundation.AVCapturePhotoSettings[] -> System.Threading.Tasks.Task<bool * Foundation.NSError>

參數

preparedPhotoSettingsArray
AVCapturePhotoSettings[]

傳回

表示非同步 SetPreparedPhotoSettings 作業的工作。 TResult 參數的值的類型為 System.Action < System.Boolean,Foundation.NSError > 。

備註

SetPreparedPhotoSettingsAsync 方法適合搭配 C# 非同步使用,方法是將控制項傳回給代表作業之 Task 的呼叫端。

即將加入。

適用於