Edit

Share via


MPMediaLibrary.AddItemAsync(String) Method

Definition

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 3, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual System.Threading.Tasks.Task<MediaPlayer.MPMediaEntity[]> AddItemAsync (string productID);
abstract member AddItemAsync : string -> System.Threading.Tasks.Task<MediaPlayer.MPMediaEntity[]>
override this.AddItemAsync : string -> System.Threading.Tasks.Task<MediaPlayer.MPMediaEntity[]>

Parameters

productID
String

Returns

A task that represents the asynchronous AddItem operation. The value of the TResult parameter is of type System.Action<MediaPlayer.MPMediaEntity[],Foundation.NSError>.

Attributes

Applies to