SignalCollector

interface SignalCollector

Contract implemented by every category collector.

A collector probes the device for one SignalCategory and returns the resulting FingerprintSignals. Implementations are registered in ltechnologies.onionphone.androwatch.collector.CollectorRegistry and dispatched by the runtime. Implementations must be side-effect free beyond reading device state and must tolerate missing permissions/APIs gracefully.

See also

Inheritors

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.