ExerciseCapabilities


class ExerciseCapabilities


Contains the capabilities supported by androidx.health.services.client.ExerciseClient on this device.

Summary

Public constructors

ExerciseCapabilities(
    typeToCapabilities: Map<ExerciseTypeExerciseTypeCapabilities>,
    supportedBatchingModeOverrides: Set<BatchingMode>
)

Public functions

ExerciseTypeCapabilities

Returns the supported ExerciseTypeCapabilities for a requested ExerciseType.

open String

Public properties

Set<ExerciseType>

Returns the set of ExerciseTypes that support auto pause and resume on this device.

Set<BatchingMode>

Supported BatchingMode overrides on this device.

Set<ExerciseType>

Set of supported ExerciseType s on this device.

Map<ExerciseTypeExerciseTypeCapabilities>

Mapping for each supported ExerciseType to its ExerciseTypeCapabilities on this device.

Public constructors

ExerciseCapabilities

Added in 1.0.0
ExerciseCapabilities(
    typeToCapabilities: Map<ExerciseTypeExerciseTypeCapabilities>
)

ExerciseCapabilities

Added in 1.0.0
ExerciseCapabilities(
    typeToCapabilities: Map<ExerciseTypeExerciseTypeCapabilities>,
    supportedBatchingModeOverrides: Set<BatchingMode> = emptySet()
)

Public functions

getExerciseTypeCapabilities

Added in 1.0.0
fun getExerciseTypeCapabilities(exercise: ExerciseType): ExerciseTypeCapabilities

Returns the supported ExerciseTypeCapabilities for a requested ExerciseType.

Throws
kotlin.IllegalArgumentException

if the exercise is not supported

toString

open fun toString(): String

Public properties

autoPauseAndResumeEnabledExercises

Added in 1.0.0
val autoPauseAndResumeEnabledExercisesSet<ExerciseType>

Returns the set of ExerciseTypes that support auto pause and resume on this device.

supportedBatchingModeOverrides

Added in 1.0.0
val supportedBatchingModeOverridesSet<BatchingMode>

Supported BatchingMode overrides on this device.

supportedExerciseTypes

Added in 1.0.0
val supportedExerciseTypesSet<ExerciseType>

Set of supported ExerciseType s on this device.

typeToCapabilities

Added in 1.0.0
val typeToCapabilitiesMap<ExerciseTypeExerciseTypeCapabilities>

Mapping for each supported ExerciseType to its ExerciseTypeCapabilities on this device.