Package-level declarations

Types

Link copied to clipboard

Unique identifier of a Beacon

Link copied to clipboard
data class BeaconInfo(val identifier: Identifier, val beaconID: BeaconID, val txPower: TxPower, val rssi: RSSI, val lastSeen: KalugaDate)

Info describing a Beacon

Link copied to clipboard
interface Beacons

Scans for BeaconInfo. Only supports the Eddystone protocol

Link copied to clipboard
class DefaultBeacons(bluetooth: BluetoothService, beaconLifetime: Duration = 10.seconds, logger: Logger = RestrictedLogger(RestrictedLogLevel.None), coroutineContext: CoroutineContext = defaultBeaconsDispatcher) : Beacons, CoroutineScope

Default implementation of Beacons

Link copied to clipboard
class Eddystone

The Eddystone protocol message to read from a Beacon https://github.com/google/eddystone/blob/master/protocol-specification.md

Properties

Link copied to clipboard

Returns the kotlin.time.Duration since the beacon was last seen

Functions

Link copied to clipboard
Link copied to clipboard
operator fun Flow<Set<BeaconInfo>>.get(identifier: Identifier): Flow<BeaconInfo?>

Gets a (Flow of) BeaconInfo from the Flow of a collection of BeaconInfo

Link copied to clipboard
fun Beacons.isAnyInRange(beaconIds: List<BeaconID>): Flow<Boolean>

Gets a Flow that indicates whether any BeaconID have been detected

Link copied to clipboard

Returns the time in milliseconds since the beacon was last seen