Modifier

Partager via


MPMusicPlayerController.PrepareToPlay Method

Definition

Overloads

PrepareToPlay()

Prepares the player to play media items.

PrepareToPlay(Action<NSError>)

Puts the first item in the queue into the buffer and runs a handler after the item has been buffered.

PrepareToPlay()

Prepares the player to play media items.

[Foundation.Export("prepareToPlay")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 5, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.MacOSX, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void PrepareToPlay ();
abstract member PrepareToPlay : unit -> unit
override this.PrepareToPlay : unit -> unit

Implements

Attributes

Applies to

PrepareToPlay(Action<NSError>)

Puts the first item in the queue into the buffer and runs a handler after the item has been buffered.

[Foundation.Export("prepareToPlayWithCompletionHandler:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 1, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void PrepareToPlay (Action<Foundation.NSError> completionHandler);
abstract member PrepareToPlay : Action<Foundation.NSError> -> unit
override this.PrepareToPlay : Action<Foundation.NSError> -> unit

Parameters

completionHandler
Action<NSError>

A handler to run after the first item in the queue is buffered.

Attributes

Applies to