MPMediaLibrary.AddItemAsync(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
[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