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>
)

Public functions

C?

Returns the ExerciseEventCapabilities for a requested ExerciseEventType.

open String

Public properties

Set<DataType<*, *>>

Supported DataTypes for a given exercise.

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()
)

Public functions

getExerciseEventCapabilityDetails

Added in 1.1.0-alpha02
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.

supportedExerciseEvents

Added in 1.1.0-alpha02
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.