AudioPermissionManager

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
sealed class Error : Throwable
Link copied to clipboard

Properties

Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
abstract suspend fun requestPermission()
Link copied to clipboard

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.