ExerciseTypeCapabilities


class ExerciseTypeCapabilities


Provides exercise specific capabilities data.

Summary

Public constructors

ExerciseTypeCapabilities(
    supportedDataTypes: Set<DataType<*, *>>,
    supportedGoals: Map<AggregateDataType<*, *>, Set<ComparisonType>>,
    supportedMilestones: Map<AggregateDataType<*, *>, Set<ComparisonType>>,
    supportsAutoPauseAndResume: Boolean,
    exerciseEventCapabilities: Map<ExerciseEventType<*>, ExerciseEventCapabilities>,
    supportedDebouncedGoals: Map<DataType<*, *>, Set<ComparisonType>>
)

Public functions

C?

Returns the ExerciseEventCapabilities for a requested ExerciseEventType.

open String

Public properties

Set<DataType<*, *>>

Supported DataTypes for a given exercise.

Map<DataType<*, *>, Set<ComparisonType>>

Map from supported debounced goals to a set of compatible ComparisonTypes.

Set<ExerciseEventType<*>>

Returns the set of supported ExerciseEventTypes on this device.

Map<AggregateDataType<*, *>, Set<ComparisonType>>

Map from supported goals DataTypes to a set of compatible ComparisonTypes.

Map<AggregateDataType<*, *>, Set<ComparisonType>>

Map from supported milestone DataTypes to a set of compatible ComparisonTypes.

Boolean

Returns true if the given exercise supports auto pause and resume.

Public constructors

ExerciseTypeCapabilities

ExerciseTypeCapabilities(
    supportedDataTypes: Set<DataType<*, *>>,
    supportedGoals: Map<AggregateDataType<*, *>, Set<ComparisonType>>,
    supportedMilestones: Map<AggregateDataType<*, *>, Set<ComparisonType>>,
    supportsAutoPauseAndResume: Boolean,
    exerciseEventCapabilities: Map<ExerciseEventType<*>, ExerciseEventCapabilities> = emptyMap(),
    supportedDebouncedGoals: Map<DataType<*, *>, Set<ComparisonType>> = emptyMap()
)

Public functions

getExerciseEventCapabilityDetails

Added in 1.1.0-alpha04
fun <C : ExerciseEventCapabilities> getExerciseEventCapabilityDetails(
    exerciseEventType: ExerciseEventType<C>
): C?

Returns the ExerciseEventCapabilities for a requested ExerciseEventType.

toString

open fun toString(): String

Public properties

supportedDataTypes

Added in 1.0.0
val supportedDataTypesSet<DataType<*, *>>

Supported DataTypes for a given exercise.

supportedDebouncedGoals

Added in 1.1.0-alpha04
val supportedDebouncedGoalsMap<DataType<*, *>, Set<ComparisonType>>

Map from supported debounced goals to a set of compatible ComparisonTypes.

supportedExerciseEvents

Added in 1.1.0-alpha04
val supportedExerciseEventsSet<ExerciseEventType<*>>

Returns the set of supported ExerciseEventTypes on this device.

supportedGoals

Added in 1.0.0
val supportedGoalsMap<AggregateDataType<*, *>, Set<ComparisonType>>

Map from supported goals DataTypes to a set of compatible ComparisonTypes.

supportedMilestones

Added in 1.0.0
val supportedMilestonesMap<AggregateDataType<*, *>, Set<ComparisonType>>

Map from supported milestone DataTypes to a set of compatible ComparisonTypes.

supportsAutoPauseAndResume

Added in 1.0.0
val supportsAutoPauseAndResumeBoolean

Returns true if the given exercise supports auto pause and resume.