Builder
class Builder
| kotlin.Any | |
| ↳ | android.health.connect.datatypes.OvulationTestRecord.Builder |
Builder class for OvulationTestRecord
Summary
| Public constructors | |
|---|---|
| Public methods | |
|---|---|
| OvulationTestRecord |
build() |
| OvulationTestRecord.Builder |
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 |
Public constructors
Builder
Builder(
metadata: Metadata,
time: Instant,
result: Int)
| 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
fun build(): OvulationTestRecord
| Return | |
|---|---|
OvulationTestRecord |
Object of OvulationTestRecord This value cannot be null. |
clearZoneOffset
fun clearZoneOffset(): OvulationTestRecord.Builder
Sets the zone offset of this record to system default.
| Return | |
|---|---|
OvulationTestRecord.Builder |
This value cannot be null. |
setZoneOffset
fun setZoneOffset(zoneOffset: ZoneOffset): OvulationTestRecord.Builder
Sets the zone offset of the user when the activity happened
| Parameters | |
|---|---|
zoneOffset |
ZoneOffset: This value cannot be null. |
| Return | |
|---|---|
OvulationTestRecord.Builder |
This value cannot be null. |