Added in API level 34

Builder

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

Builder class for CervicalMucusRecord

Summary

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

Public methods
CervicalMucusRecord

CervicalMucusRecord.Builder

Sets the zone offset of this record to system default.

CervicalMucusRecord.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,
    sensation: Int,
    appearance: 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.
sensation Int: The feel of the user's cervical mucus. Optional field. Allowed values: CervicalMucusSensation. Value is android.health.connect.datatypes.CervicalMucusRecord.CervicalMucusSensation#SENSATION_UNKNOWN, android.health.connect.datatypes.CervicalMucusRecord.CervicalMucusSensation#SENSATION_LIGHT, android.health.connect.datatypes.CervicalMucusRecord.CervicalMucusSensation#SENSATION_MEDIUM, or android.health.connect.datatypes.CervicalMucusRecord.CervicalMucusSensation#SENSATION_HEAVY
appearance Int: The consistency of the user's cervical mucus. Optional field. Allowed values: CervicalMucusAppearance. Value is android.health.connect.datatypes.CervicalMucusRecord.CervicalMucusAppearance#APPEARANCE_UNKNOWN, android.health.connect.datatypes.CervicalMucusRecord.CervicalMucusAppearance#APPEARANCE_DRY, android.health.connect.datatypes.CervicalMucusRecord.CervicalMucusAppearance#APPEARANCE_STICKY, android.health.connect.datatypes.CervicalMucusRecord.CervicalMucusAppearance#APPEARANCE_CREAMY, android.health.connect.datatypes.CervicalMucusRecord.CervicalMucusAppearance#APPEARANCE_WATERY, android.health.connect.datatypes.CervicalMucusRecord.CervicalMucusAppearance#APPEARANCE_EGG_WHITE, or android.health.connect.datatypes.CervicalMucusRecord.CervicalMucusAppearance#APPEARANCE_UNUSUAL

Public methods

build

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

clearZoneOffset

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

Sets the zone offset of this record to system default.

Return
CervicalMucusRecord.Builder This value cannot be null.

setZoneOffset

Added in API level 34
fun setZoneOffset(zoneOffset: ZoneOffset): CervicalMucusRecord.Builder

Sets the zone offset of the user when the activity happened

Parameters
zoneOffset ZoneOffset: This value cannot be null.
Return
CervicalMucusRecord.Builder This value cannot be null.