共用方式為


MPMusicPlayerApplicationController.Perform 方法

定義

執行要求的佇列轉換,並在作業完成時執行處理常式。

[Foundation.Export("performQueueTransaction:completionHandler:")]
public virtual void Perform (Action<MediaPlayer.MPMusicPlayerControllerMutableQueue> queueTransaction, Action<MediaPlayer.MPMusicPlayerControllerQueue,Foundation.NSError> completionHandler);
abstract member Perform : Action<MediaPlayer.MPMusicPlayerControllerMutableQueue> * Action<MediaPlayer.MPMusicPlayerControllerQueue, Foundation.NSError> -> unit
override this.Perform : Action<MediaPlayer.MPMusicPlayerControllerMutableQueue> * Action<MediaPlayer.MPMusicPlayerControllerQueue, Foundation.NSError> -> unit

參數

queueTransaction
Action<MPMusicPlayerControllerMutableQueue>

建立佇列時要執行的動作。

completionHandler
Action<MPMusicPlayerControllerQueue,NSError>

作業完成時要執行的處理常式。

屬性

適用於