SLPipeBase

abstract class SLPipeBase(analytics: SLAnalytics?, var enabled: Boolean = true)

Abstract base class describing a step in the slam data collection procedure. Can be subclassed to define custom steps to add into the process.

Inheritors

Constructors

Link copied to clipboard
constructor(analytics: SLAnalytics?, enabled: Boolean = true)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
abstract fun runAsync(context: SLPipeContext): Deferred<SLPipeResult>
Link copied to clipboard
open fun stop(androidContext: Context)
Link copied to clipboard
abstract 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