Added in API level 34

Builder

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

Builder class for MenstruationFlowRecord

Summary

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

Public methods
MenstruationFlowRecord

MenstruationFlowRecord.Builder

Sets the zone offset of this record to system default.

MenstruationFlowRecord.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,
    flow: 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.
flow Int: How heavy the user's menstrual flow was. Optional field. Allowed values: MenstruationFlowType. Value is android.health.connect.datatypes.MenstruationFlowRecord.MenstruationFlowType#FLOW_UNKNOWN, android.health.connect.datatypes.MenstruationFlowRecord.MenstruationFlowType#FLOW_LIGHT, android.health.connect.datatypes.MenstruationFlowRecord.MenstruationFlowType#FLOW_MEDIUM, or android.health.connect.datatypes.MenstruationFlowRecord.MenstruationFlowType#FLOW_HEAVY

Public methods

build

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

clearZoneOffset

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

Sets the zone offset of this record to system default.

Return
MenstruationFlowRecord.Builder This value cannot be null.

setZoneOffset

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

Sets the zone offset of the user when the activity happened

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