Added in API level 34

Builder

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

Builder class for BoneMassRecord

Summary

Public constructors
Builder(metadata: Metadata, time: Instant, mass: Mass)

Public methods
BoneMassRecord

BoneMassRecord.Builder

Sets the zone offset of this record to system default.

BoneMassRecord.Builder

Sets the zone offset of the user when the activity happened

Public constructors

Builder

Added in API level 34
Builder(
    metadata: Metadata,
    time: Instant,
    mass: Mass)
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.
mass Mass: Mass in Mass unit. Required field. Valid range: 0-1000000 grams. This value cannot be null.

Public methods

build

Added in API level 34
fun build(): BoneMassRecord
Return
BoneMassRecord Object of BoneMassRecord This value cannot be null.

clearZoneOffset

Added in API level 34
fun clearZoneOffset(): BoneMassRecord.Builder

Sets the zone offset of this record to system default.

Return
BoneMassRecord.Builder This value cannot be null.

setZoneOffset

Added in API level 34
fun setZoneOffset(zoneOffset: ZoneOffset): BoneMassRecord.Builder

Sets the zone offset of the user when the activity happened

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