Added in API level 34
  
  
  
  
  
   
  
  
  
  
OvulationTestRecord.Builder
  public
  static
  final
  
  class
  OvulationTestRecord.Builder
  
    extends Object
  
  
  
  
  
  
| java.lang.Object | |
| ↳ | android.health.connect.datatypes.OvulationTestRecord.Builder | 
Builder class for OvulationTestRecord
Summary
| Public constructors | |
|---|---|
| 
      Builder(Metadata metadata, Instant time, int result)
       | |
| Public methods | |
|---|---|
| 
        
        
        
        
        
        OvulationTestRecord | 
      build()
       | 
| 
        
        
        
        
        
        OvulationTestRecord.Builder | 
      clearZoneOffset()
      Sets the zone offset of this record to system default. | 
| 
        
        
        
        
        
        OvulationTestRecord.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, int result)
| 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. | 
| result | int: The result of a user's ovulation test, which shows if they're ovulating or
     not. Required field. Allowed values:OvulationTestResult.
 Value isOvulationTestRecord.OvulationTestResult.RESULT_INCONCLUSIVE,OvulationTestRecord.OvulationTestResult.RESULT_POSITIVE,OvulationTestRecord.OvulationTestResult.RESULT_HIGH, orOvulationTestRecord.OvulationTestResult.RESULT_NEGATIVE | 
Public methods
build
    Added in API level 34
  
      
  
    public OvulationTestRecord build ()
| Returns | |
|---|---|
| OvulationTestRecord | Object of OvulationTestRecordThis value cannot benull. | 
clearZoneOffset
    Added in API level 34
  
      
  
    public OvulationTestRecord.Builder clearZoneOffset ()
Sets the zone offset of this record to system default.
| Returns | |
|---|---|
| OvulationTestRecord.Builder | This value cannot be null. | 
setZoneOffset
    Added in API level 34
  
      
  
    public OvulationTestRecord.Builder setZoneOffset (ZoneOffset zoneOffset)
Sets the zone offset of the user when the activity happened
| Parameters | |
|---|---|
| zoneOffset | ZoneOffset: This value cannot benull. | 
| Returns | |
|---|---|
| OvulationTestRecord.Builder | This value cannot be null. | 
