共用方式為


AVAudioPlayerNode.ScheduleFileAsync 方法

定義

多載

ScheduleFileAsync(AVAudioFile, AVAudioTime)
ScheduleFileAsync(AVAudioFile, AVAudioTime, AVAudioPlayerNodeCompletionCallbackType)

ScheduleFileAsync(AVAudioFile, AVAudioTime)

public virtual System.Threading.Tasks.Task ScheduleFileAsync (AVFoundation.AVAudioFile file, AVFoundation.AVAudioTime when);
abstract member ScheduleFileAsync : AVFoundation.AVAudioFile * AVFoundation.AVAudioTime -> System.Threading.Tasks.Task
override this.ScheduleFileAsync : AVFoundation.AVAudioFile * AVFoundation.AVAudioTime -> System.Threading.Tasks.Task

參數

when
AVAudioTime

要新增。此參數可以是 。

傳回

表示非同步 ScheduleFile 作業的工作

適用於

ScheduleFileAsync(AVAudioFile, AVAudioTime, AVAudioPlayerNodeCompletionCallbackType)

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 4, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 13, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual System.Threading.Tasks.Task<AVFoundation.AVAudioPlayerNodeCompletionCallbackType> ScheduleFileAsync (AVFoundation.AVAudioFile file, AVFoundation.AVAudioTime when, AVFoundation.AVAudioPlayerNodeCompletionCallbackType callbackType);
abstract member ScheduleFileAsync : AVFoundation.AVAudioFile * AVFoundation.AVAudioTime * AVFoundation.AVAudioPlayerNodeCompletionCallbackType -> System.Threading.Tasks.Task<AVFoundation.AVAudioPlayerNodeCompletionCallbackType>
override this.ScheduleFileAsync : AVFoundation.AVAudioFile * AVFoundation.AVAudioTime * AVFoundation.AVAudioPlayerNodeCompletionCallbackType -> System.Threading.Tasks.Task<AVFoundation.AVAudioPlayerNodeCompletionCallbackType>

參數

傳回

屬性

適用於