# ExerciseLapSummary

# ExerciseLapSummary

Artifact:[androidx.health:health-services-client](https://developer.android.com/jetpack/androidx/releases/health)  
[View Source](https://cs.android.com/search?q=file:androidx/health/services/client/data/ExerciseLapSummary.kt+class:androidx.health.services.client.data.ExerciseLapSummary)  
Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/health#1.0.0)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/health/services/client/data/ExerciseLapSummary "View this page in Java")

<br />

```
class ExerciseLapSummary
```

<br />

*** ** * ** ***

Describes a completed exercise lap.

## Summary

|                                                                                                                                                                                                                                                                                                                                                                                             ### Public constructors                                                                                                                                                                                                                                                                                                                                                                                             |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [ExerciseLapSummary](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ExerciseLapSummary#ExerciseLapSummary(kotlin.Int,java.time.Instant,java.time.Instant,java.time.Duration,androidx.health.services.client.data.DataPointContainer))`(` ` lapCount: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`,` ` startTime: `[Instant](https://developer.android.com/reference/java/time/Instant.html)`,` ` endTime: `[Instant](https://developer.android.com/reference/java/time/Instant.html)`,` ` activeDuration: `[Duration](https://developer.android.com/reference/java/time/Duration.html)`,` ` lapMetrics: `[DataPointContainer](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataPointContainer) `)` |

|                                   ### Public functions                                   |
|------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------|
| `open `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html) | [toString](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ExerciseLapSummary#toString())`()` |

|                                                    ### Public properties                                                     |
|------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Duration](https://developer.android.com/reference/java/time/Duration.html)                                                  | [activeDuration](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ExerciseLapSummary#activeDuration()) Returns the total elapsed time for which the exercise has been active during this lap, i.e. started but not paused.                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| [Instant](https://developer.android.com/reference/java/time/Instant.html)                                                    | [endTime](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ExerciseLapSummary#endTime()) Returns the time at which the lap has ended.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                  | [lapCount](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ExerciseLapSummary#lapCount()) Returns the lap count of this summary.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| [DataPointContainer](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataPointContainer) | [lapMetrics](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ExerciseLapSummary#lapMetrics()) Returns the[DataPoint](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataPoint)s for each metric keyed by[DataType](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataType)tracked between[startTime](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ExerciseLapSummary#startTime())and[endTime](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ExerciseLapSummary#endTime())i.e. during the duration of this lap. |
| [Instant](https://developer.android.com/reference/java/time/Instant.html)                                                    | [startTime](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ExerciseLapSummary#startTime()) Returns the time at which the lap has started.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |

## Public constructors

### ExerciseLapSummary

Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/health#1.0.0)  

```
ExerciseLapSummary(
    lapCount: Int,
    startTime: Instant,
    endTime: Instant,
    activeDuration: Duration,
    lapMetrics: DataPointContainer
)
```  

## Public functions

### toString

```
open fun toString(): String
```  

## Public properties

### activeDuration

Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/health#1.0.0)  

```
val activeDuration: Duration
```

Returns the total elapsed time for which the exercise has been active during this lap, i.e. started but not paused.  

### endTime

Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/health#1.0.0)  

```
val endTime: Instant
```

Returns the time at which the lap has ended.  

### lapCount

Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/health#1.0.0)  

```
val lapCount: Int
```

Returns the lap count of this summary. Lap count starts at 1 for the first lap.  

### lapMetrics

Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/health#1.0.0)  

```
val lapMetrics: DataPointContainer
```

Returns the[DataPoint](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataPoint)s for each metric keyed by[DataType](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataType)tracked between[startTime](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ExerciseLapSummary#startTime())and[endTime](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/ExerciseLapSummary#endTime())i.e. during the duration of this lap. This will only contain[AggregateDataType](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/AggregateDataType)s calculated over the duration of the lap.  

### startTime

Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/health#1.0.0)  

```
val startTime: Instant
```

Returns the time at which the lap has started.