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
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 one of the following: |
Public methods
build
public OvulationTestRecord build ()
| Returns | |
|---|---|
OvulationTestRecord |
Object of OvulationTestRecord
This value cannot be null. |
clearZoneOffset
public OvulationTestRecord.Builder clearZoneOffset ()
Sets the zone offset of this record to system default.
| Returns | |
|---|---|
OvulationTestRecord.Builder |
This value cannot be null. |
setZoneOffset
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. |