DefaultBluetoothPermissionManager

The BasePermissionManager to use as a default for BluetoothPermission

Parameters

context

the Context the BluetoothPermission is to be granted in

bluetoothAdapter

the BluetoothAdapter of the system

settings

the Settings to apply to this manager.

coroutineScope

the CoroutineScope of this manager.

The BasePermissionManager to use as a default for BluetoothPermission

Parameters

settings

the Settings to apply to this manager.

coroutineScope

the CoroutineScope of this manager.

bundle

the NSBundle the BluetoothPermission is to be granted in

The BasePermissionManager to use as a default for BluetoothPermission

Parameters

settings

the Settings to apply to this manager.

coroutineScope

the CoroutineScope of this manager.

bundle

the NSBundle the BluetoothPermission is to be granted in

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

Backed by the Web Bluetooth permission state from the Permissions API, polled on the monitoring interval. There is no programmatic permission request on the web — access is granted per-device through navigator.bluetooth.requestDevice (a user-gesture device picker driven by the scanner), so requestPermissionDidStart is a no-op. The peripheral/server role does not exist on the web, so BluetoothPermission.Type.Server is always reported denied.

Parameters

settings

the Settings to apply to this manager.

coroutineScope

the CoroutineScope of this manager.

bluetoothPermission

the BluetoothPermission to manage

Constructors

Link copied to clipboard
constructor(context: Context, bluetoothPermission: BluetoothPermission, bluetoothAdapter: BluetoothAdapter?, settings: BasePermissionManager.Settings, coroutineScope: CoroutineScope)
constructor(bluetoothPermission: BluetoothPermission, bundle: NSBundle, settings: BasePermissionManager.Settings, coroutineScope: CoroutineScope)
constructor(bluetoothPermission: BluetoothPermission, bundle: NSBundle, settings: BasePermissionManager.Settings, coroutineScope: CoroutineScope)
constructor(bluetoothPermission: BluetoothPermission, settings: BasePermissionManager.Settings, coroutineScope: CoroutineScope)

Types

Link copied to clipboard
object Companion
object Companion

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>
open override val events: Flow<PermissionManager.Event>
Link copied to clipboard
expect override val permission: BluetoothPermission

Functions

Link copied to clipboard
override fun requestPermission()
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)
override fun startMonitoring(interval: Duration)
Link copied to clipboard
override fun stopMonitoring()
override fun stopMonitoring()
override fun stopMonitoring()
override fun stopMonitoring()
override fun stopMonitoring()