Added in API level 34
  
  
  
  
  
   
  
  
  
  
BasalMetabolicRateRecord.Builder
  public
  static
  final
  
  class
  BasalMetabolicRateRecord.Builder
  
    extends Object
  
  
  
  
  
  
| java.lang.Object | |
| ↳ | android.health.connect.datatypes.BasalMetabolicRateRecord.Builder | 
Builder class for BasalMetabolicRateRecord
Summary
| Public constructors | |
|---|---|
| 
      Builder(Metadata metadata, Instant time, Power basalMetabolicRate)
       | |
| Public methods | |
|---|---|
| 
        
        
        
        
        
        BasalMetabolicRateRecord | 
      build()
       | 
| 
        
        
        
        
        
        BasalMetabolicRateRecord.Builder | 
      clearZoneOffset()
      Sets the zone offset of this record to system default. | 
| 
        
        
        
        
        
        BasalMetabolicRateRecord.Builder | 
      setZoneOffset(ZoneOffset zoneOffset)
      Sets the zone offset of the user when the activity happened | 
| Inherited methods | |
|---|---|
Public constructors
Builder
    Added in API level 34
  
      
  
    public Builder (Metadata metadata, Instant time, Power basalMetabolicRate)
| Parameters | |
|---|---|
| metadata | Metadata: Metadata to be associated with the record. SeeMetadata.
 This value cannot benull. | 
| time | Instant: Start time of this activity
 This value cannot benull. | 
| basalMetabolicRate | Power: Basal metabolic rate, inPowerunit. Required field.
     Valid range: 0-10000 kcal/day.
 This value cannot benull. | 
Public methods
build
    Added in API level 34
  
      
  
    public BasalMetabolicRateRecord build ()
| Returns | |
|---|---|
| BasalMetabolicRateRecord | Object of BasalMetabolicRateRecordThis value cannot benull. | 
clearZoneOffset
    Added in API level 34
  
      
  
    public BasalMetabolicRateRecord.Builder clearZoneOffset ()
Sets the zone offset of this record to system default.
| Returns | |
|---|---|
| BasalMetabolicRateRecord.Builder | This value cannot be null. | 
setZoneOffset
    Added in API level 34
  
      
  
    public BasalMetabolicRateRecord.Builder setZoneOffset (ZoneOffset zoneOffset)
Sets the zone offset of the user when the activity happened
| Parameters | |
|---|---|
| zoneOffset | ZoneOffset: This value cannot benull. | 
| Returns | |
|---|---|
| BasalMetabolicRateRecord.Builder | This value cannot be null. | 
