LiveSignalCollector

A SignalCollector that can additionally emit continuous updates.

Used by categories whose values change over time (e.g. battery, motion), allowing the UI to observe a stream instead of polling collect.

Properties

Link copied to clipboard
abstract val category: SignalCategory

The single category this collector is responsible for.

Functions

Link copied to clipboard
abstract suspend fun collect(context: Context): List<FingerprintSignal>

Probes the device once and returns the collected signals.

Link copied to clipboard
abstract fun liveFlow(context: Context): Flow<List<FingerprintSignal>>

Returns a cold Flow emitting fresh signal lists as the underlying state changes.