PowerRecord

public final class PowerRecord
extends IntervalRecord

java.lang.Object
   ↳ android.health.connect.datatypes.Record
     ↳ android.health.connect.datatypes.IntervalRecord
       ↳ android.health.connect.datatypes.PowerRecord


Captures the power generated by the user, e.g. during cycling or rowing with a power meter.

Summary

Nested classes

class PowerRecord.Builder

Builder class for PowerRecord 

class PowerRecord.PowerRecordSample

Represents a single measurement of power. 

Fields

public static final AggregationType<Power> POWER_AVG

Metric identifier to get avg power using aggregate APIs in HealthConnectManager

public static final AggregationType<Power> POWER_MAX

Metric identifier to get max power using aggregate APIs in HealthConnectManager

public static final AggregationType<Power> POWER_MIN

Metric identifier to get min power using aggregate APIs in HealthConnectManager

Public methods

boolean equals(Object object)

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

List<PowerRecord.PowerRecordSample> getSamples()
int hashCode()

Returns a hash code value for the object.

Inherited methods

Fields

POWER_AVG

Added in API level 34
public static final AggregationType<Power> POWER_AVG

Metric identifier to get avg power using aggregate APIs in HealthConnectManager

POWER_MAX

Added in API level 34
public static final AggregationType<Power> POWER_MAX

Metric identifier to get max power using aggregate APIs in HealthConnectManager

POWER_MIN

Added in API level 34
public static final AggregationType<Power> POWER_MIN

Metric identifier to get min power using aggregate APIs in HealthConnectManager

Public methods

equals

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

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

Parameters
object Object: the reference object with which to compare. This value may be null.

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

getSamples

Added in API level 34
public List<PowerRecord.PowerRecordSample> getSamples ()

Returns
List<PowerRecord.PowerRecordSample> PowerRecord samples corresponding to this record This value cannot be null.

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.