ExerciseConfig

public final class ExerciseConfig extends ProtoParcelable

Object
   ↳ ProtoParcelable
     ↳ ExerciseConfig

Defines configuration for an exercise tracked using HealthServices.

Summary

Nested types

ExerciseConfig.Builder

Builder for ExerciseConfig instances.

ExerciseConfig.Companion

Public methods

@NonNull String

Inherited methods

From class ProtoParcelable
int
boolean
equals(Object other)
int
void
writeToParcel(Parcel dest, int flags)

Public fields

aggregateDataTypes

public final @NonNull Set<@NonNull DataTypeaggregateDataTypes

dataTypes

public final @NonNull Set<@NonNull DataTypedataTypes

exerciseGoals

public final @NonNull List<@NonNull ExerciseGoalexerciseGoals

exerciseParams

public final @NonNull Bundle exerciseParams

exerciseType

public final @NonNull ExerciseType exerciseType

ExerciseType the user is performing for this exercise.

This information can be used to tune sensors, e.g. the calories estimate can take the MET value into account.

shouldEnableAutoPauseAndResume

public final boolean shouldEnableAutoPauseAndResume

shouldEnableGps

public final boolean shouldEnableGps

Public methods

toString

public @NonNull String toString()