Beacons

interface Beacons

Scans for BeaconInfo. Only supports the Eddystone protocol

Inheritors

Properties

Link copied to clipboard
abstract val beacons: StateFlow<Set<BeaconInfo>>

StateFlow of the set of BeaconInfo currently scanned

Functions

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
abstract suspend fun isMonitoring(): Flow<Boolean>

A Flow indicating whether startMonitoring has been called

Link copied to clipboard
abstract suspend fun startMonitoring()

Starts monitoring for changes to BeaconInfo

Link copied to clipboard
abstract suspend fun stopMonitoring()

Stops monitoring for changes to BeaconInfo