SLWifiPipe

class SLWifiPipe(summariser: SLSummary, analytics: SLAnalytics?, var enabled: Boolean = true, maxScanTimeMs: SLSensorLog? = null, useMostRecentWifisOnTimeout: Boolean = false) : SLPipeBase

Pipe implementation for collecting WiFi data.

Constructors

Link copied to clipboard
constructor(summariser: SLSummary, analytics: SLAnalytics?, enabled: Boolean = true, maxScanTimeMs: SLSensorLog? = null, useMostRecentWifisOnTimeout: Boolean = false)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun runAsync(context: SLPipeContext): Deferred<SLPipeResult>
Link copied to clipboard
open override fun stop(androidContext: Context)
Link copied to clipboard
open override fun updateMode(mode: SLMode)

Here we can define what should happen on modechanges. Most commonly we just want to enable/disable the pipe based on selected mode. But this is not always the case. Sometimes we might want to cancel an ongoing process