IosAudioPermissionManager

IMPORTANT: You must add the NSMicrophoneUsageDescription key to your Info.plist.

Properties

Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
open suspend override fun requestPermission()

Suspends until microphone permission is granted or denied.

Link copied to clipboard
open override fun requestRedirectToSettings()

Request to open the microphone permission settings on the platform.

Link copied to clipboard
suspend fun <T> withMicrophonePermission(block: suspend () -> T): T

Executes the block if the microphone permission is granted, otherwise throws an AudioPermissionDeniedException.