MenstrualCyclePhaseRecord
public
final
class
MenstrualCyclePhaseRecord
extends IntervalRecord
| java.lang.Object | |||
| ↳ | android.health.connect.datatypes.Record | ||
| ↳ | android.health.connect.datatypes.IntervalRecord | ||
| ↳ | android.health.connect.datatypes.MenstrualCyclePhaseRecord | ||
Represents a user's menstrual cycle phase for a specific day.
This record is designed to capture the current phase of the menstrual cycle (e.g., follicular, luteal) for a given day. It is not intended for predictive use cases.
Summary
Nested classes | |
|---|---|
class |
MenstrualCyclePhaseRecord.Builder
Builder class for |
Constants | |
|---|---|
int |
PHASE_FOLLICULAR
Represents the follicular phase of the menstrual cycle. |
int |
PHASE_LUTEAL
Represents the luteal phase of the menstrual cycle. |
Public methods | |
|---|---|
boolean
|
equals(Object o)
Indicates whether some other object is "equal to" this one. |
LocalDate
|
getDate()
Returns the date of the record. |
int
|
getDayOfCycle()
Returns the day within the menstrual cycle. |
int
|
getPhase()
Returns the phase of the menstrual cycle. |
int
|
hashCode()
Returns a hash code value for the object. |
boolean
|
isDayOfCycleSet()
Returns whether the day of cycle was set in this record. |
Inherited methods | |
|---|---|
Constants
PHASE_FOLLICULAR
public static final int PHASE_FOLLICULAR
Represents the follicular phase of the menstrual cycle. This phase begins with menstruation and ends with ovulation.
Constant Value: 1 (0x00000001)
PHASE_LUTEAL
public static final int PHASE_LUTEAL
Represents the luteal phase of the menstrual cycle. This phase begins after ovulation and ends just before the next menstrual period.
Constant Value: 2 (0x00000002)
Public methods
equals
public boolean equals (Object o)
Indicates whether some other object is "equal to" this one.
| Parameters | |
|---|---|
o |
Object: This value may be null. |
| Returns | |
|---|---|
boolean |
true if this object is the same as the obj |
getDate
public LocalDate getDate ()
Returns the date of the record.
| Returns | |
|---|---|
LocalDate |
This value cannot be null. |
getDayOfCycle
public int getDayOfCycle ()
Returns the day within the menstrual cycle.
| Returns | |
|---|---|
int |
|
| Throws | |
|---|---|
IllegalStateException |
if the day of cycle was not set. |
getPhase
public int getPhase ()
Returns the phase of the menstrual cycle.
| Returns | |
|---|---|
int |
Value is one of the following: |
hashCode
public int hashCode ()
Returns a hash code value for the object.
| Returns | |
|---|---|
int |
a hash code value for this object. |
isDayOfCycleSet
public boolean isDayOfCycleSet ()
Returns whether the day of cycle was set in this record.
| Returns | |
|---|---|
boolean |
|
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2026-02-26 UTC.