of

fun of(poolLength: Int, poolLengthUnit: String, totalDistance: Float?, totalDuration: Duration?, swimmingIntervals: List<SwimmingLog.SwimmingInterval>?): SwimmingLog

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

Return

An instance of SwimmingLog

Since

1.0.0

Parameters

poolLength

The pool length. It's unit follows the poolLengthUnit.

poolLengthUnit

The unit of the pool length ('meter' or 'yard')

totalDistance

The total swimming distance. It's unit follows the poolLengthUnit

totalDuration

The total swimming duration in seconds

swimmingIntervals

The list of detail information of swimming Interval

Preferences Submitted

You have successfully updated your cookie preferences.