registerBluetoothPermissionIfNotRegistered

fun PermissionsBuilder.registerBluetoothPermissionIfNotRegistered(bluetoothPermissionManagerBuilderBuilder: (PermissionContext) -> BaseBluetoothPermissionManagerBuilder = ::BluetoothPermissionManagerBuilder, monitoringInterval: Duration = PermissionStateRepo.defaultMonitoringInterval, settings: BasePermissionManager.Settings = BasePermissionManager.Settings()): BaseBluetoothPermissionManagerBuilder

Gets the BaseBluetoothPermissionManagerBuilder registered If not yet registered, this will register a BaseBluetoothPermissionManagerBuilder and PermissionStateRepo for BluetoothPermission to the PermissionsBuilder.register and PermissionsBuilder.registerPermissionStateRepoBuilder respectively

Return

the BaseBluetoothPermissionManagerBuilder registered

Parameters

bluetoothPermissionManagerBuilderBuilder
monitoringInterval

the Duration after which the system should poll for changes to the permission if automatic detection is impossible.

settings

the BasePermissionManager.Settings to apply to any BasePermissionManager created using the registered builders.


Gets the BaseBluetoothPermissionManagerBuilder registered If not yet registered, this will register a BaseBluetoothPermissionManagerBuilder and PermissionStateRepo for BluetoothPermission to the PermissionsBuilder.register and PermissionsBuilder.registerPermissionStateRepoBuilder respectively

Return

the BaseBluetoothPermissionManagerBuilder registered

Parameters

bluetoothPermissionManagerBuilderBuilder