Edit

Share via


MPPlayableContentDataSource.GetContentItemAsync(String) Method

Definition

Caution

Use 'MPPlayableContentDataSource_Extensions.GetContentItemAsync' instead.

[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.MacOSX, ObjCRuntime.PlatformArchitecture.All, null)]
[System.Obsolete("Use 'MPPlayableContentDataSource_Extensions.GetContentItemAsync' instead.")]
public virtual System.Threading.Tasks.Task<MediaPlayer.MPContentItem> GetContentItemAsync (string identifier);
abstract member GetContentItemAsync : string -> System.Threading.Tasks.Task<MediaPlayer.MPContentItem>
override this.GetContentItemAsync : 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