共用方式為


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

屬性

適用於