Added in API level 34
Builder
class Builder
| kotlin.Any | |
| ↳ | android.health.connect.datatypes.BloodGlucoseRecord.Builder |
Builder class for BloodGlucoseRecord
Summary
| Public constructors | |
|---|---|
| Public methods | |
|---|---|
| BloodGlucoseRecord |
build() |
| BloodGlucoseRecord.Builder |
Sets the zone offset of this record to system default. |
| BloodGlucoseRecord.Builder |
setZoneOffset(zoneOffset: ZoneOffset)Sets the zone offset of the user when the activity happened |
Public constructors
Builder
Added in API level 34
Builder(
metadata: Metadata,
time: Instant,
specimenSource: Int,
level: BloodGlucose,
relationToMeal: Int,
mealType: Int)
Public methods
build
Added in API level 34
fun build(): BloodGlucoseRecord
| Return | |
|---|---|
BloodGlucoseRecord |
Object of BloodGlucoseRecord This value cannot be null. |
clearZoneOffset
Added in API level 34
fun clearZoneOffset(): BloodGlucoseRecord.Builder
Sets the zone offset of this record to system default.
| Return | |
|---|---|
BloodGlucoseRecord.Builder |
This value cannot be null. |
setZoneOffset
Added in API level 34
fun setZoneOffset(zoneOffset: ZoneOffset): BloodGlucoseRecord.Builder
Sets the zone offset of the user when the activity happened
| Parameters | |
|---|---|
zoneOffset |
ZoneOffset: This value cannot be null. |
| Return | |
|---|---|
BloodGlucoseRecord.Builder |
This value cannot be null. |