ExerciseConfig

public data final class ExerciseConfig


Defines configuration for an exercise tracked using HealthServices.

Summary

Nested types

ExerciseConfig.Builder

Builder for ExerciseConfig instances.

ExerciseConfig.Companion

Public fields

final boolean
final @NonNull Set<@NonNull DataType>
final @NonNull List<@NonNull ExerciseGoal>
final @NonNull Bundle
final @NonNull ExerciseType

ExerciseType the user is performing for this exercise.

Public methods

int
boolean
int
void
writeToParcel(@NonNull Parcel dest, int flags)

Public fields

autoPauseAndResume

@NonNull
public final boolean autoPauseAndResume

dataTypes

@NonNull
public final @NonNull Set<@NonNull DataTypedataTypes

exerciseGoals

@NonNull
public final @NonNull List<@NonNull ExerciseGoalexerciseGoals

exerciseParams

@NonNull
public final @NonNull Bundle exerciseParams

exerciseType

@NonNull
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.

Public methods

describeContents

@NonNull
public int describeContents()

equals

@NonNull
public boolean equals(@Nullable Object other)

hashCode

@NonNull
public int hashCode()

writeToParcel

@NonNull
public void writeToParcel(@NonNull Parcel dest, int flags)