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. See Metadata .
This value cannot be null . |
time |
Instant : Start time of this activity
This value cannot be null . |
result |
int : The result of a user's ovulation test, which shows if they're ovulating or
not. Required field. Allowed values: OvulationTestResult .
Value is OvulationTestRecord.OvulationTestResult.RESULT_INCONCLUSIVE , OvulationTestRecord.OvulationTestResult.RESULT_POSITIVE , OvulationTestRecord.OvulationTestResult.RESULT_HIGH , or OvulationTestRecord.OvulationTestResult.RESULT_NEGATIVE |
Public methods
build
Added in API level 34
public OvulationTestRecord build ()
Returns | |
---|---|
OvulationTestRecord |
Object of OvulationTestRecord
This value cannot be null . |
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 be null . |
Returns | |
---|---|
OvulationTestRecord.Builder |
This value cannot be null . |