ExerciseClient

interface ExerciseClient


Client which provides a way to subscribe to the health data of a device during an exercise.

Summary

Public fields

abstract @NonNull ListenableFuture<@NonNull ExerciseCapabilities>

Returns the ExerciseCapabilities of this client for the device.

abstract @NonNull ListenableFuture<@NonNull ExerciseInfo>

Returns the current ExerciseInfo.

Public methods

abstract @NonNull ListenableFuture<@NonNull Void>

Adds an ExerciseGoal for an active exercise.

abstract @NonNull ListenableFuture<@NonNull Void>

Clears the listener set using setUpdateListener.

abstract @NonNull ListenableFuture<@NonNull Void>

Ends the current exercise, if it has been started.

abstract @NonNull ListenableFuture<@NonNull Void>

Flushes the sensors for the active exercise.

abstract @NonNull ListenableFuture<@NonNull Void>

Ends the current lap, calls ExerciseStateListener.onLapSummary with data spanning the marked lap and starts a new lap.

abstract @NonNull ListenableFuture<@NonNull Void>

Enables or disables auto pause/resume for the current exercise.

abstract @NonNull ListenableFuture<@NonNull Void>

Pauses the current exercise, if it is currently started.

abstract @NonNull ListenableFuture<@NonNull Void>

Prepares for a new exercise.

abstract @NonNull ListenableFuture<@NonNull