Added in API level 34
    Builder
class Builder
| kotlin.Any | |
| ↳ | android.health.connect.datatypes.OxygenSaturationRecord.Builder | 
Builder class for OxygenSaturationRecord
Summary
| Public constructors | |
|---|---|
| Builder(metadata: Metadata, time: Instant, percentage: Percentage) | |
| Public methods | |
|---|---|
| OxygenSaturationRecord | build() | 
| OxygenSaturationRecord.Builder | Sets the zone offset of this record to system default. | 
| OxygenSaturationRecord.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,
percentage: Percentage)
| Parameters | |
|---|---|
| metadata | Metadata: Metadata to be associated with the record. See Metadata. This value cannot benull. | 
| time | Instant: Start time of this activity This value cannot be null. | 
| percentage | Percentage: Percentage in Percentageunit. Required field. Valid range: 0-100. This value cannot benull. | 
Public methods
build
Added in API level 34
      fun build(): OxygenSaturationRecord
| Return | |
|---|---|
| OxygenSaturationRecord | Object of OxygenSaturationRecordThis value cannot benull. | 
clearZoneOffset
Added in API level 34
      fun clearZoneOffset(): OxygenSaturationRecord.Builder
Sets the zone offset of this record to system default.
| Return | |
|---|---|
| OxygenSaturationRecord.Builder | This value cannot be null. | 
setZoneOffset
Added in API level 34
      fun setZoneOffset(zoneOffset: ZoneOffset): OxygenSaturationRecord.Builder
Sets the zone offset of the user when the activity happened
| Parameters | |
|---|---|
| zoneOffset | ZoneOffset: This value cannot be null. | 
| Return | |
|---|---|
| OxygenSaturationRecord.Builder | This value cannot be null. | 
