Package-level declarations

Types

Link copied to clipboard
@Serializable
data class AmbientTemperatureMeasurement(val time: Instant, val temperature: Temperature) : InstantaneousMeasurement, KoinComponent

Captures the ambient temperature.

Link copied to clipboard
class AndroidSensorManager(context: Context) : SensorManager, KoinComponent
Link copied to clipboard
Link copied to clipboard
@Serializable
data class AuthorizationRequest(val username: String, val password: String)
Link copied to clipboard
@Serializable
data class AuthorizationResponse(val transactionId: String)
Link copied to clipboard
Link copied to clipboard
data class ClientMessage(val msg: ClientMessage.Msg<*>? = null, val unknownFields: Map<Int, UnknownField> = emptyMap()) : Message
Link copied to clipboard
sealed class Code : Message.Enum
Link copied to clipboard
interface DataSyncManager
Link copied to clipboard
class DataSyncWorker(appContext: Context, workerParams: WorkerParameters) : CoroutineWorker, KoinComponent
Link copied to clipboard
typealias DefaultActionAsync = suspend () -> Unit
Link copied to clipboard
class EventBus
Link copied to clipboard
class FakeNonEmptyMap<K, V> : HashMap<K, V>

This map always returns false when isEmpty is called to bypass TFLite interpreter's stupid empty check on the input argument of runSignature.

Link copied to clipboard
class FederatedJobWorker(appContext: Context, workerParams: WorkerParameters) : CoroutineWorker
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class FlowerClient<X : Any, Y : Any>(tfliteFileBuffer: MappedByteBuffer, val layersSizes: IntArray, val spec: SampleSpec<X, Y>) : AutoCloseable

Flower client that handles TensorFlow Lite model Interpreter and sample data.

Link copied to clipboard
class FlowerServiceRunnable<X : Any, Y : Any>(val flowerClient: FlowerClient<X, Y>, val callback: (String) -> Unit)

Start communication with Flower server and training in the background. Note: constructing an instance of this class immediately starts training.

Link copied to clipboard
class ForbiddenException(exception: String) : Throwable
Link copied to clipboard
Link copied to clipboard
sealed interface HealthDataType
Link copied to clipboard
interface HealthManager
Link copied to clipboard
@Serializable
sealed interface HealthRecord

Common interface shared by readable or writable records.

Link copied to clipboard
class HubroSession(baseUrl: String, tokenVerifier: String)
Link copied to clipboard
class HubroSessionBuilder(baseUrl: String, tokenVerifier: String) : KoinComponent

This is a KDoc comment.

Link copied to clipboard
Link copied to clipboard
@Serializable
sealed interface InstantaneousMeasurement : SensorMeasurement
Link copied to clipboard
@Serializable
sealed interface InstantaneousRecord : HealthRecord

A record that contains an instantaneous measurement.

Link copied to clipboard
@Serializable
sealed interface IntervalRecord : HealthRecord

A record that contains a measurement with a time interval.

Link copied to clipboard
class IOSDataSyncManager(hubroSession: <Error class: unknown class>)
Link copied to clipboard
@Serializable
data class LocationMeasurement(val time: Instant, val latitude: Double, val longitude: Double, val altitude: Double? = null) : InstantaneousMeasurement, KoinComponent
Link copied to clipboard
actual class ManagerFactory
expect class ManagerFactory
actual class ManagerFactory
actual class ManagerFactory
actual class ManagerFactory
actual class ManagerFactory
Link copied to clipboard
class NumberOfRecordsRequest(val type: Number, val from: Number, val to: Number)
Link copied to clipboard
@Serializable
data class Observation(val device: String, val type: String, val value: String, val dateTime: String)
Link copied to clipboard
data class Parameters(val tensors: List<ByteArr> = emptyList(), val tensorType: String = "", val unknownFields: Map<Int, UnknownField> = emptyMap()) : Message
Link copied to clipboard
object PbandkErrorDetailParser : ErrorDetailParser
Link copied to clipboard
class PbandkProtoAdapter<E : Message>(clazz: KClass<E>) : Codec<E>
Link copied to clipboard
class PbandkStrategy : SerializationStrategy
Link copied to clipboard
@Serializable
data class Questionnaire(val name: String, val accessLink: String)
Link copied to clipboard
sealed class Reason : Message.Enum
Link copied to clipboard
class RecordsRequest(val type: Number, val from: Number, val to: Number)
Link copied to clipboard
@Serializable
data class RefreshTokenRequest(val accessToken: String, val refreshToken: String)
Link copied to clipboard
Link copied to clipboard
data class Sample<X, Y>(val bottleneck: X, val label: Y)

One sample data point (bottleneck, label).

Link copied to clipboard
data class SampleSpec<X, Y>(val convertX: (List<X>) -> Array<X>, val convertY: (List<Y>) -> Array<Y>, val emptyY: (Int) -> Array<Y>, val loss: (MutableList<Sample<X, Y>>, Array<Y>) -> Float, val accuracy: (MutableList<Sample<X, Y>>, Array<Y>) -> Float)
Link copied to clipboard
data class Scalar(val scalar: Scalar.Scalar<*>? = null, val unknownFields: Map<Int, UnknownField> = emptyMap()) : Message
Link copied to clipboard
sealed interface SensorDataType
Link copied to clipboard
class SensorKitManager : KoinComponent
Link copied to clipboard
class SensorListener : SensorEventListener, KoinComponent
Link copied to clipboard
interface SensorManager
Link copied to clipboard
@Serializable
sealed interface SensorMeasurement
Link copied to clipboard
data class ServerMessage(val msg: ServerMessage.Msg<*>? = null, val unknownFields: Map<Int, UnknownField> = emptyMap()) : Message
Link copied to clipboard
data class Status(val code: Code = no.hubroplatform.hubroconnect.Code.fromValue(0), val message: String = "", val unknownFields: Map<Int, UnknownField> = emptyMap()) : Message
Link copied to clipboard
@Serializable
data class StepsRecord(val startTime: Instant, val endTime: Instant, val count: Int) : IntervalRecord

Captures the number of steps taken since the last reading. Each step is only reported once so records shouldn't have overlapping time. The start time of each record should represent the start of the interval in which steps were taken.

Link copied to clipboard
Link copied to clipboard
@Serializable
data class TokenResponse(val accessToken: String, val refreshToken: String)
Link copied to clipboard
@Serializable
data class VerificationRequest(val transactionId: String, val code: String)
Link copied to clipboard
data class WeightRecord(val time: Instant, val weight: Mass) : InstantaneousRecord

Captures the user's weight.

Link copied to clipboard
class WorkManagerDataSyncManager : KoinComponent

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun evaluateResAsProto(accuracy: Float, testing_size: Int): ClientMessage
Link copied to clipboard
fun fitResAsProto(weights: Array<ByteBuffer>, training_size: Int): ClientMessage
Link copied to clipboard
Link copied to clipboard
suspend fun requestLocation(): <Error class: unknown class>
Link copied to clipboard
Link copied to clipboard