DefaultBeacons
class DefaultBeacons(bluetooth: BluetoothService, beaconLifetime: Duration = 10.seconds, logger: Logger = RestrictedLogger(RestrictedLogLevel.None), coroutineContext: CoroutineContext = defaultBeaconsDispatcher) : Beacons, CoroutineScope
Default implementation of Beacons
Parameters
bluetooth
the BluetoothService managing bluetooth
beaconLifetime
the Duration during which BeaconInfo is valid
logger
the Logger to use for logging
coroutineContext
the CoroutineContext beacons are monitored on
Constructors
Link copied to clipboard
constructor(bluetooth: BluetoothService, beaconLifetime: Duration = 10.seconds, logger: Logger = RestrictedLogger(RestrictedLogLevel.None), coroutineContext: CoroutineContext = defaultBeaconsDispatcher)
Properties
Link copied to clipboard
StateFlow of the set of BeaconInfo currently scanned
Link copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
A Flow indicating whether startMonitoring has been called
Link copied to clipboard
Starts monitoring for changes to BeaconInfo
Link copied to clipboard
Stops monitoring for changes to BeaconInfo