DefaultMicrophonePermissionManager

The BasePermissionManager to use as a default for MicrophonePermission

Parameters

context

the Context the MicrophonePermission is to be granted in

settings

the Settings to apply to this manager.

coroutineScope

the CoroutineScope of this manager.

The BasePermissionManager to use as a default for MicrophonePermission

Parameters

settings

the Settings to apply to this manager.

coroutineScope

the CoroutineScope of this manager.

bundle

the NSBundle the MicrophonePermission is to be granted in

The default BasePermissionManager for MicrophonePermission on the JS family (js + wasmJs).

State comes from the W3C Permissions API (navigator.permissions.query({ name: 'microphone' })), polled on the monitoring interval; the prompt is surfaced by opening a getUserMedia audio stream.

Parameters

settings

the Settings to apply to this manager.

coroutineScope

the CoroutineScope of this manager.

Constructors

Link copied to clipboard
constructor(context: Context, settings: BasePermissionManager.Settings, coroutineScope: CoroutineScope)
constructor(bundle: NSBundle, settings: BasePermissionManager.Settings, coroutineScope: CoroutineScope)
constructor(settings: BasePermissionManager.Settings, coroutineScope: CoroutineScope)

Properties

Link copied to clipboard
Link copied to clipboard
open override val events: Flow<PermissionManager.Event>
open override val events: Flow<PermissionManager.Event>
open override val events: Flow<PermissionManager.Event>
open override val events: Flow<PermissionManager.Event>
Link copied to clipboard
expect override val permission: MicrophonePermission

Functions

Link copied to clipboard
override fun requestPermission()
override fun requestPermission()
override fun requestPermission()
override fun requestPermission()
Link copied to clipboard
override fun startMonitoring(interval: Duration)
override fun startMonitoring(interval: Duration)
override fun startMonitoring(interval: Duration)
override fun startMonitoring(interval: Duration)
Link copied to clipboard
override fun stopMonitoring()
override fun stopMonitoring()
override fun stopMonitoring()
override fun stopMonitoring()