BluetoothBuilder

constructor(applicationContext: Context = ApplicationHolder.applicationContext, permissionsBuilder: suspend (CoroutineContext) -> Permissions = { context -> Permissions( PermissionsBuilder(PermissionContext(applicationContext)).apply { registerBluetoothPermissionIfNotRegistered() registerLocationPermissionIfNotRegistered() }, coroutineContext = context, ) }, scannerBuilder: BaseScanner.Builder = DefaultScanner.Builder(applicationContext = applicationContext))

Parameters

applicationContext

the Context in which Bluetooth should run

permissionsBuilder

a method for creating the Permissions object to manage the Bluetooth permissions. Needs to have com.splendo.kaluga.permissions.bluetooth.BluetoothPermission and com.splendo.kaluga.permissions.location.LocationPermission registered.

scannerBuilder

the BaseScanner.Builder for creating the BaseScanner to handle scanning

constructor(bundle: <Error class: unknown class> = NSBundle.mainBundle, permissionsBuilder: suspend (<Error class: unknown class>) -> <Error class: unknown class> = { context -> Permissions( PermissionsBuilder(bundle).apply { registerBluetoothPermissionIfNotRegistered() }, context, ) }, scannerBuilder: DefaultScanner.Builder = DefaultScanner.Builder())

Parameters

bundle

the NSBundle in which Bluetooth should run

permissionsBuilder

a method for creating the Permissions object to manage the Bluetooth permissions. Needs to have com.splendo.kaluga.permissions.bluetooth.BluetoothPermission registered.

scannerBuilder

the BaseScanner.Builder for creating the BaseScanner to handle scanning

constructor(permissionsBuilder: suspend (CoroutineContext) -> Permissions = { context -> Permissions( PermissionsBuilder().apply { registerBluetoothPermissionIfNotRegistered() }, context, ) })

Parameters

permissionsBuilder

a method for creating the Permissions object to manage the Bluetooth permissions. Needs to have com.splendo.kaluga.permissions.bluetooth.BluetoothPermission registered.

constructor(permissionsBuilder: suspend (CoroutineContext) -> Permissions = { context -> Permissions( PermissionsBuilder().apply { registerBluetoothPermissionIfNotRegistered() }, context, ) })

Parameters

permissionsBuilder

a method for creating the Permissions object to manage the Bluetooth permissions. Needs to have com.splendo.kaluga.permissions.bluetooth.BluetoothPermission registered.