ExerciseCompletionGoal.DistanceAndDurationGoal


class ExerciseCompletionGoal.DistanceAndDurationGoal : ExerciseCompletionGoal


An ExerciseCompletionGoal that requires covering a specified distance. Additionally, the step is not complete until the specified time has elapsed. Time remaining after the specified distance has been completed should be spent resting. In the context of swimming, this is sometimes referred to as 'interval training'.

For example, a swimming coach may specify '100m @ 1min40s'. This implies: complete 100m and if you manage it in 1min30s, you will have 10s of rest prior to the next set.

Summary

Public constructors

DistanceAndDurationGoal(distance: Length, duration: Duration)

Public functions

open operator Boolean
equals(other: Any?)
open Int
open String

Public properties

Length
Duration

Public constructors

DistanceAndDurationGoal

Added in 1.1.0-alpha10
DistanceAndDurationGoal(distance: Length, duration: Duration)

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

distance

Added in 1.1.0-alpha10
val distanceLength

duration

Added in 1.1.0-alpha10
val durationDuration