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
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 one of the following: |
appearance |
int: The consistency of the user's cervical mucus. Optional field. Allowed
values: CervicalMucusAppearance.
Value is one of the following:
|
Public methods
build
public CervicalMucusRecord build ()
| Returns | |
|---|---|
CervicalMucusRecord |
Object of CervicalMucusRecord
This value cannot be null. |
clearZoneOffset
public CervicalMucusRecord.Builder clearZoneOffset ()
Sets the zone offset of this record to system default.
| Returns | |
|---|---|
CervicalMucusRecord.Builder |
This value cannot be null. |
setZoneOffset
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. |