共用方式為


AVCaptureDevice.GetAuthorizationStatus 方法

定義

多載

GetAuthorizationStatus(AVAuthorizationMediaType)
GetAuthorizationStatus(NSString)

是否允許應用程式擷取 avMediaTypeToken

GetAuthorizationStatus(AVAuthorizationMediaType)

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 14, ObjCRuntime.PlatformArchitecture.Arch64, null)]
public static AVFoundation.AVAuthorizationStatus GetAuthorizationStatus (AVFoundation.AVAuthorizationMediaType mediaType);
static member GetAuthorizationStatus : AVFoundation.AVAuthorizationMediaType -> AVFoundation.AVAuthorizationStatus

參數

傳回

屬性

適用於

GetAuthorizationStatus(NSString)

是否允許應用程式擷取 avMediaTypeToken

[Foundation.Export("authorizationStatusForMediaType:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 14, ObjCRuntime.PlatformArchitecture.Arch64, null)]
public static AVFoundation.AVAuthorizationStatus GetAuthorizationStatus (Foundation.NSString avMediaTypeToken);
static member GetAuthorizationStatus : Foundation.NSString -> AVFoundation.AVAuthorizationStatus

參數

avMediaTypeToken
NSString

應該是 中 AVMediaType 定義的其中一個常數。

傳回

屬性

適用於