@Document(name = "builtin:StopwatchLap")
class StopwatchLap : Thing


An AppSearch document representing a StopwatchLap entity.

A Stopwatch can create a Lap, which will take a snapshot of the duration from when the previous Lap was created to when the new Lap is created. For example: if a Stopwatch starts at 12:00, creates a Lap at 12:05, and creates another Lap at 12:15, then it would have created two Laps with 5 minutes duration and 10 minutes duration respectively.

Summary

Public functions

Long

Returns the total duration in milliseconds accumulated by all the StopwatchLap instances up to and including this one.

Long

Returns the total duration in milliseconds accumulated by the current StopwatchLap.

Int

Returns the position of the current StopwatchLap, starting at 1.

Inherited functions

From androidx.appsearch.builtintypes.Thing
(Mutable)List<String!>

Returns an unmodifiable list of aliases, if any, for this item.

Long

Returns the creation timestamp, in milliseconds since Unix epoch, of this item.

String?

Returns a description of this item.

Int

Returns the intrinsic score (or importance) of this item.

Long

Returns the time-to-live timestamp, in milliseconds since getCreationTimestampMillis, for this item.

String

Returns the unique identifier for this item.

String?

Returns the URL for an image of this item.

String?

Returns the name of this item.

String

Returns the namespace (or logical grouping) for this item.

(Mutable)List<PotentialAction!>

Returns the actions that can be taken on this object.

String?

Returns the deeplink URL of this item.

Public functions

getAccumulatedLapDurationMillis

Added in 1.1.0-alpha07
fun getAccumulatedLapDurationMillis(): Long

Returns the total duration in milliseconds accumulated by all the StopwatchLap instances up to and including this one.

getLapDurationMillis

Added in 1.1.0-alpha07
fun getLapDurationMillis(): Long

Returns the total duration in milliseconds accumulated by the current StopwatchLap.

getLapNumber

Added in 1.1.0-alpha07
fun getLapNumber(): Int

Returns the position of the current StopwatchLap, starting at 1.