Edytuj

Udostępnij za pośrednictwem


MPMediaLibrary.RequestAuthorizationAsync Method

Definition

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 3, ObjCRuntime.PlatformArchitecture.All, null)]
public static System.Threading.Tasks.Task<MediaPlayer.MPMediaLibraryAuthorizationStatus> RequestAuthorizationAsync ();
static member RequestAuthorizationAsync : unit -> System.Threading.Tasks.Task<MediaPlayer.MPMediaLibraryAuthorizationStatus>

Returns

A task that represents the asynchronous RequestAuthorization operation. The value of the TResult parameter is of type System.Action<MediaPlayer.MPMediaLibraryAuthorizationStatus>.

Attributes

Applies to