Settings
data class Settings(val permissions: Permissions, val autoRequestPermission: Boolean = true, val autoEnableSensors: Boolean = true, val discoverBondedDevices: Boolean = true, val defaultConnectionSettings: ConnectionSettings = ConnectionSettings(), val logger: Logger = RestrictedLogger(RestrictedLogLevel.None))
Settings to configure a BaseScanner
Parameters
defaultConnectionSettings
The ConnectionSettings to apply for scanned devices if no settings are provided in Scanner.scanForDevices
Constructors
Link copied to clipboard
constructor(permissions: Permissions, autoRequestPermission: Boolean = true, autoEnableSensors: Boolean = true, discoverBondedDevices: Boolean = true, defaultConnectionSettings: ConnectionSettings = ConnectionSettings(), logger: Logger = RestrictedLogger(RestrictedLogLevel.None))
Properties
Link copied to clipboard
if true
the scanner should automatically enable the Bluetooth service if disabled
Link copied to clipboard
if true
the scanner should automatically request permissions if not granted
Link copied to clipboard
Link copied to clipboard
If true
scanned results will include devices bonded to the system.
Link copied to clipboard
the Permissions to manage the bluetooth related permissions