Builder

class Builder

A builder to create a HealthDataPoint instance.

Since

1.0.0

Functions

Link copied to clipboard
fun <T> addFieldData(field: Field<T>, value: T?): HealthDataPoint.Builder

Add a field and its value.

Link copied to clipboard

Builds a HealthDataPoint instance from the configuration of this builder.

Link copied to clipboard

Sets the optional ID supplied by the app (client) associated with the data.

Link copied to clipboard

Sets the optional data version supplied by the app (client) associated with the data.

Link copied to clipboard

Set the device ID of the device that generated this data.

Link copied to clipboard
fun setEndTime(endTime: Instant, zoneOffset: ZoneOffset? = null): HealthDataPoint.Builder

Sets the end Instant time of this data, exclusive.

Link copied to clipboard

Sets the end LocalDateTime time of this data, exclusive.

Link copied to clipboard

Sets the start LocalDateTime time of this data, inclusive.

Link copied to clipboard
fun setStartTime(startTime: Instant, zoneOffset: ZoneOffset? = null): HealthDataPoint.Builder

Sets the start Instant time of this data, inclusive.

Preferences Submitted

You have successfully updated your cookie preferences.