Added in API level 34

Builder

class Builder
kotlin.Any
   ↳ android.health.connect.datatypes.ExerciseLap.Builder

Builder class for ExerciseLap

Summary

Public constructors
Builder(startTime: Instant, endTime: Instant)

Public methods
ExerciseLap

Builds ExerciseLap instance.

ExerciseLap.Builder
setLength(length: Length)

Sets the length of this lap

Public constructors

Builder

Added in API level 34
Builder(
    startTime: Instant,
    endTime: Instant)
Parameters
startTime Instant: This value cannot be null.
endTime Instant: This value cannot be null.

Public methods

build

Added in API level 34
fun build(): ExerciseLap

Builds ExerciseLap instance.

Return
ExerciseLap This value cannot be null.

setLength

Added in API level 34
fun setLength(length: Length): ExerciseLap.Builder

Sets the length of this lap

Parameters
length Length: Length of the lap, in Length unit. Optional field. Valid range: 0-1000000 meters. This value cannot be null.
Return
ExerciseLap.Builder This value cannot be null.