SpeedRecord
  public
  
  final
  
  class
  SpeedRecord
  
  
  
  
  
  
  
    extends IntervalRecord
  
  
  
  
  
  
| java.lang.Object | |||
| ↳ | android.health.connect.datatypes.Record | ||
| ↳ | android.health.connect.datatypes.IntervalRecord | ||
| ↳ | android.health.connect.datatypes.SpeedRecord | ||
Captures the user's speed, e.g. during running or cycling.
Summary
| Nested classes | |
|---|---|
| 
        
        
        
        
        class | SpeedRecord.BuilderBuilder class for  | 
| 
        
        
        
        
        class | SpeedRecord.SpeedRecordSampleRepresents a single measurement of the speed, a scalar magnitude. | 
| Fields | |
|---|---|
| 
    public
    static
    final
    AggregationType<Velocity> | SPEED_AVGMetric identifier to retrieve average speed using aggregate APIs in  | 
| 
    public
    static
    final
    AggregationType<Velocity> | SPEED_MAXMetric identifier to retrieve maximum speed using aggregate APIs in  | 
| 
    public
    static
    final
    AggregationType<Velocity> | SPEED_MINMetric identifier to retrieve minimum speed using aggregate APIs in  | 
| Public methods | |
|---|---|
| 
        
        
        
        
        
        boolean | 
      equals(Object object)
      Indicates whether some other object is "equal to" this one. | 
| 
        
        
        
        
        
        List<SpeedRecord.SpeedRecordSample> | 
      getSamples()
       | 
| 
        
        
        
        
        
        int | 
      hashCode()
      Returns a hash code value for the object. | 
| Inherited methods | |
|---|---|
Fields
SPEED_AVG
public static final AggregationType<Velocity> SPEED_AVG
Metric identifier to retrieve average speed using aggregate APIs in HealthConnectManager
SPEED_MAX
public static final AggregationType<Velocity> SPEED_MAX
Metric identifier to retrieve maximum speed using aggregate APIs in HealthConnectManager
SPEED_MIN
public static final AggregationType<Velocity> SPEED_MIN
Metric identifier to retrieve minimum speed 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 benull. | 
| Returns | |
|---|---|
| boolean | trueif this object is the same as the obj | 
getSamples
public List<SpeedRecord.SpeedRecordSample> getSamples ()
| Returns | |
|---|---|
| List<SpeedRecord.SpeedRecordSample> | SpeedRecord samples corresponding to this record, in ascending time order
 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 2025-08-20 UTC.
