Package-level declarations

Types

Link copied to clipboard

Custom AccelerationSensor that takes in gravity data to calculate true Acceleration of the watch

Link copied to clipboard
class AttitudeSensor(val sensor: Sensor, newAttitudeAlgo: Boolean) : SensorModel

Custom AttitudeSensor that implements two types of Euler Conversion Algorithms

Link copied to clipboard
class AudioSensor(val valueNames: Array<String> = arrayOf("decibel", "magnitude"), context: Context) : DataProvider<SensorTypeDouble>

Audio Sensor that

Link copied to clipboard

Bundling Interface for all Sensor providers

Link copied to clipboard
sealed interface DataProvider<T : SupportedSensorTypes>

Base interface for all "Sensors" throughout the app

Link copied to clipboard
class PPGSensor(val sensor: Sensor) : SensorModel

Custom Sensor for photoplethysmography (PPG)

Link copied to clipboard
open class SensorModel(val sensor: Sensor, val valueNames: Array<String>, initialValues: Array<SensorTypeFloat> = emptyArray()) : CustomSensorListener, DataProvider<SensorTypeFloat>

Base implementation for all android.hardware.Sensors

Link copied to clipboard

Double datatype encapsulation

Link copied to clipboard

Float datatype encapsulation

Link copied to clipboard

Integer datatype encapsulation

Link copied to clipboard
data class SensorTypeString(val string: String) : SupportedSensorTypes

String datatype encapsulation

Link copied to clipboard
class StubProvider<T : SupportedNumericSensorTypes>(val valueNames: Array<String>, reportedValue: Array<T>) : DataProvider<T>

Stub Sensor providing the same value continuously. Is used as a Fallback-Sensor to not have to crash the app

Link copied to clipboard

Numerics datatype encapsulation

Link copied to clipboard

ParentClass to ensure a limited amount of types when working with Kotlin's Generics

Link copied to clipboard
class TimeSensor(val valueNames: Array<String> = arrayOf("timestamp")) : DataProvider<SupportedSensorTypes>