BluetoothServerBuilder
constructor(applicationContext: Context = ApplicationHolder.applicationContext, permissionsBuilder: suspend (CoroutineContext) -> Permissions = { context ->
Permissions(
PermissionsBuilder(PermissionContext(applicationContext)).apply {
registerBluetoothPermissionIfNotRegistered()
registerLocationPermissionIfNotRegistered()
},
coroutineContext = context,
)
})
Parameters
applicationContext
the android.content.Context in which Bluetooth should run Needs to have com.splendo.kaluga.permissions.bluetooth.BaseBluetoothPermissionManagerBuilder and com.splendo.kaluga.permissions.location.BaseLocationPermissionManagerBuilder registered.
permissionsBuilder
a method for creating the com.splendo.kaluga.permissions.base.Permissions object to manage the Bluetooth permissions.
constructor(bundle: NSBundle = NSBundle.Companion.mainBundle, permissionsBuilder: suspend (CoroutineContext) -> Permissions = { context ->
Permissions(
PermissionsBuilder(bundle).apply {
registerBluetoothPermissionIfNotRegistered()
},
context,
)
})
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.BaseBluetoothPermissionManagerBuilder registered.