Added in API level 34

Builder

class Builder
kotlin.Any
   ↳ android.health.connect.datatypes.OvulationTestRecord.Builder

Builder class for OvulationTestRecord

Summary

Public constructors
Builder(metadata: Metadata, time: Instant, result: Int)

Public methods
OvulationTestRecord

OvulationTestRecord.Builder

Sets the zone offset of this record to system default.

OvulationTestRecord.Builder

Sets the zone offset of the user when the activity happened

Public constructors

Builder

Added in API level 34
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 android.health.connect.datatypes.OvulationTestRecord.OvulationTestResult#RESULT_INCONCLUSIVE, android.health.connect.datatypes.OvulationTestRecord.OvulationTestResult#RESULT_POSITIVE, android.health.connect.datatypes.OvulationTestRecord.OvulationTestResult#RESULT_HIGH, or android.health.connect.datatypes.OvulationTestRecord.OvulationTestResult#RESULT_NEGATIVE

Public methods

build

Added in API level 34
fun build(): OvulationTestRecord
Return
OvulationTestRecord Object of OvulationTestRecord This value cannot be null.

clearZoneOffset

Added in API level 34
fun clearZoneOffset(): OvulationTestRecord.Builder

Sets the zone offset of this record to system default.

Return
OvulationTestRecord.Builder This value cannot be null.

setZoneOffset

Added in API level 34
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.