편집

다음을 통해 공유


AVAudioSession.RequestRecordPermission(AVPermissionGranted) Method

Definition

Presents a standard UI to the app user, asking for permission to record.

[Foundation.Export("requestRecordPermission:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 4, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void RequestRecordPermission (AVFoundation.AVPermissionGranted responseCallback);
abstract member RequestRecordPermission : AVFoundation.AVPermissionGranted -> unit
override this.RequestRecordPermission : AVFoundation.AVPermissionGranted -> unit

Parameters

responseCallback
AVPermissionGranted
Attributes

Remarks

This method will be called automatically the first time the application's Category is set to a category that includes recording. Or, the application developer can call this method explicitly to control the presentation.

Unlike most other privacy settings, there is not a corresponding method to check the status.

Applies to