addFieldData

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

Add a field and its value.

This is a generic type function, so the class type of the value object is determined by the input field.

Return

This builder

Since

1.0.0

Parameters

field

A field of this data

value

A value of the given field, null if this data does not contain a value for the given field

Preferences Submitted

You have successfully updated your cookie preferences.