編輯

共用方式為


MPMusicPlayerApplicationController.PerformAsync Method

Definition

Performs the requested queue transformation and runs a handler when the operation is complete.

public virtual System.Threading.Tasks.Task<MediaPlayer.MPMusicPlayerControllerQueue> PerformAsync (Action<MediaPlayer.MPMusicPlayerControllerMutableQueue> queueTransaction);
abstract member PerformAsync : Action<MediaPlayer.MPMusicPlayerControllerMutableQueue> -> System.Threading.Tasks.Task<MediaPlayer.MPMusicPlayerControllerQueue>
override this.PerformAsync : Action<MediaPlayer.MPMusicPlayerControllerMutableQueue> -> System.Threading.Tasks.Task<MediaPlayer.MPMusicPlayerControllerQueue>

Parameters

queueTransaction
Action<MPMusicPlayerControllerMutableQueue>

The action to perform while the queue is created.

Returns

A task that represents the asynchronous Perform operation. The value of the TResult parameter is of type System.Action<MediaPlayer.MPMusicPlayerControllerQueue,Foundation.NSError>.

Remarks

The PerformAsync method is suitable to be used with C# async by returning control to the caller with a Task representing the operation.

To be added.

Applies to