of

fun of(duration: Duration, strokeCount: Int, strokeType: DataType.ExerciseType.StrokeType, interval: Int): SwimmingLog.SwimmingInterval

Creates a SwimmingInterval instance with a given duration, stroke count, stroke type and interval.

Return

An instance of SwimmingInterval.

Since

1.0.0

Parameters

duration

The duration time for this swimming interval, specified as Duration.

strokeCount

The stroke count value of this SwimmingInterval. See StrokeType for the type of stroke performed.

strokeType

The stroke type value of this SwimmingInterval.

interval

It represents the grouping of repeated swim sets within a session..

Preferences Submitted

You have successfully updated your cookie preferences.