RestingHeartRateRecord

public final class RestingHeartRateRecord
extends InstantRecord

java.lang.Object
   ↳ android.health.connect.datatypes.Record
     ↳ android.health.connect.datatypes.InstantRecord
       ↳ android.health.connect.datatypes.RestingHeartRateRecord


Captures the user's resting heart rate. Each record represents a single instantaneous measurement.

Summary

Nested classes

class RestingHeartRateRecord.Builder

Builder class for RestingHeartRateRecord 

Fields

public static final AggregationType<Long> BPM_AVG

Metric identifier to get average resting heart rate in beats per minute using aggregate APIs in HealthConnectManager

public static final AggregationType<Long> BPM_MAX

Metric identifier to get max resting heart rate in beats per minute using aggregate APIs in HealthConnectManager

public static final AggregationType<Long> BPM_MIN

Metric identifier to get min resting heart rate in beats per minute using aggregate APIs in HealthConnectManager

Public methods

boolean equals(Object o)

Indicates whether some other object is "equal to" this one.

long getBeatsPerMinute()
int hashCode()

Returns a hash code value for the object.

Inherited methods

Fields

BPM_AVG

Added in API level 34
public static final AggregationType<Long> BPM_AVG

Metric identifier to get average resting heart rate in beats per minute using aggregate APIs in HealthConnectManager

BPM_MAX

Added in API level 34
public static final AggregationType<Long> BPM_MAX

Metric identifier to get max resting heart rate in beats per minute using aggregate APIs in HealthConnectManager

BPM_MIN

Added in API level 34
public static final AggregationType<Long> BPM_MIN

Metric identifier to get min resting heart rate in beats per minute using aggregate APIs in HealthConnectManager

Public methods

equals

Added in API level 34
public boolean equals (Object o)

Indicates whether some other object is "equal to" this one.

Parameters
o Object: the reference object with which to compare.

Returns
boolean true if this object is the same as the obj

getBeatsPerMinute

Added in API level 34
public long getBeatsPerMinute ()

Returns
long beatsPerMinute

hashCode

Added in API level 34
public int hashCode ()

Returns a hash code value for the object.

Returns
int a hash code value for this object.