Share via


AVAudioSession.RequestRecordPermission(AVPermissionGranted) Method

Definition

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

[Foundation.Export("requestRecordPermission:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void RequestRecordPermission(AVFoundation.AVPermissionGranted responseCallback);
[<Foundation.Export("requestRecordPermission:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
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