CervicalMucusRecord.Builder

public static final class CervicalMucusRecord.Builder
extends Object

java.lang.Object
   ↳ android.health.connect.datatypes.CervicalMucusRecord.Builder


Builder class for CervicalMucusRecord

Summary

Public constructors

Builder(Metadata metadata, Instant time, int sensation, int appearance)

Public methods

CervicalMucusRecord build()
CervicalMucusRecord.Builder clearZoneOffset()

Sets the zone offset of this record to system default.

CervicalMucusRecord.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 sensation, 
                int appearance)

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 CervicalMucusRecord.CervicalMucusSensation.SENSATION_UNKNOWN, CervicalMucusRecord.CervicalMucusSensation.SENSATION_LIGHT, CervicalMucusRecord.CervicalMucusSensation.SENSATION_MEDIUM, or CervicalMucusRecord.CervicalMucusSensation.SENSATION_HEAVY

appearance int: The consistency of the user's cervical mucus. Optional field. Allowed values: CervicalMucusAppearance. Value is CervicalMucusRecord.CervicalMucusAppearance.APPEARANCE_UNKNOWN, CervicalMucusRecord.CervicalMucusAppearance.APPEARANCE_DRY, CervicalMucusRecord.CervicalMucusAppearance.APPEARANCE_STICKY, CervicalMucusRecord.CervicalMucusAppearance.APPEARANCE_CREAMY, CervicalMucusRecord.CervicalMucusAppearance.APPEARANCE_WATERY, CervicalMucusRecord.CervicalMucusAppearance.APPEARANCE_EGG_WHITE, or CervicalMucusRecord.CervicalMucusAppearance.APPEARANCE_UNUSUAL

Public methods

build

Added in API level 34
public CervicalMucusRecord build ()

Returns
CervicalMucusRecord Object of CervicalMucusRecord This value cannot be null.

clearZoneOffset

Added in API level 34
public CervicalMucusRecord.Builder clearZoneOffset ()

Sets the zone offset of this record to system default.

Returns
CervicalMucusRecord.Builder This value cannot be null.

setZoneOffset

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

Sets the zone offset of the user when the activity happened

Parameters
zoneOffset ZoneOffset: This value cannot be null.

Returns
CervicalMucusRecord.Builder This value cannot be null.