Builder


class Builder
kotlin.Any
   ↳ android.health.connect.datatypes.BodyFatRecord.Builder

Builder class for BodyFatRecord

Summary

Public constructors
Builder(metadata: Metadata, time: Instant, percentage: Percentage)

Public methods
BodyFatRecord

BodyFatRecord.Builder

Sets the zone offset of this record to system default.

BodyFatRecord.Builder

Sets the zone offset of the user when the activity happened

Public constructors

Builder

Builder(
    metadata: Metadata,
    time: Instant,
    percentage: Percentage)
Parameters
metadata Metadata: Metadata to be associated with the record. See Metadata.
This value cannot be null.
time Instant: Start time of this activity.
This value cannot be null.
percentage Percentage: Percentage in Percentage unit. Required field. Valid range: 0-100.
This value cannot be null.

Public methods

build

fun build(): BodyFatRecord
Return
BodyFatRecord Object of BodyFatRecord
This value cannot be null.

clearZoneOffset

fun clearZoneOffset(): BodyFatRecord.Builder

Sets the zone offset of this record to system default.

Return
BodyFatRecord.Builder This value cannot be null.

setZoneOffset

fun setZoneOffset(zoneOffset: ZoneOffset): BodyFatRecord.Builder

Sets the zone offset of the user when the activity happened

Parameters
zoneOffset ZoneOffset: This value cannot be null.
Return
BodyFatRecord.Builder This value cannot be null.