MPMediaLibrary.RequestAuthorizationAsync 方法

定义

[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>

返回

表示异步 RequestAuthorization 操作的任务。 TResult 参数的值的类型为 System.Action<MediaPlayer.MPMediaLibraryAuthorizationStatus>。

属性

适用于