Share via


MPPlayableContentDataSource_Extensions.GetContentItemAsync Method

Definition

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static System.Threading.Tasks.Task<MediaPlayer.MPContentItem> GetContentItemAsync(this MediaPlayer.IMPPlayableContentDataSource This, string identifier);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member GetContentItemAsync : MediaPlayer.IMPPlayableContentDataSource * string -> System.Threading.Tasks.Task<MediaPlayer.MPContentItem>

Parameters

identifier
String

Returns

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

Attributes

Remarks

The GetContentItemAsync 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