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 |
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 |
public
static
final
AggregationType<Power> |
POWER_MAX
Metric identifier to get max power using aggregate APIs in |
public
static
final
AggregationType<Power> |
POWER_MIN
Metric identifier to get min power using aggregate APIs in |
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
public static final AggregationType<Power> POWER_AVG
Metric identifier to get avg power using aggregate APIs in HealthConnectManager
POWER_MAX
public static final AggregationType<Power> POWER_MAX
Metric identifier to get max power using aggregate APIs in HealthConnectManager
POWER_MIN
public static final AggregationType<Power> POWER_MIN
Metric identifier to get min power using aggregate APIs in HealthConnectManager
Public methods
equals
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
public List<PowerRecord.PowerRecordSample> getSamples ()
Returns | |
---|---|
List<PowerRecord.PowerRecordSample> |
PowerRecord samples corresponding to this record
This value cannot be null . |
hashCode
public int hashCode ()
Returns a hash code value for the object.
Returns | |
---|---|
int |
a hash code value for this object. |
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 2024-04-11 UTC.
pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier! Saves Data!
--- a PPN by Garber Painting Akron. With Image Size Reduction included!
Fetched URL: http://developer.android.com/reference/android/health/connect/datatypes/PowerRecord
Alternative Proxies: