Added in API level 34
IntervalRecord
abstract class IntervalRecord : Record
kotlin.Any | ||
↳ | android.health.connect.datatypes.Record | |
↳ | android.health.connect.datatypes.IntervalRecord |
A record that contains a measurement with a time interval.
Summary
Public methods | |
---|---|
open Boolean |
Indicates whether some other object is "equal to" this one. |
open Instant | |
open ZoneOffset | |
open Instant | |
open ZoneOffset | |
open Int |
hashCode() Returns a hash code value for the object. |
Inherited functions | |
---|---|
Public methods
equals
Added in API level 34
open fun equals(other: Any?): Boolean
Indicates whether some other object is "equal to" this one.
Parameters | |
---|---|
obj |
the reference object with which to compare. |
object |
the reference object with which to compare. This value may be null . |
Return | |
---|---|
Boolean |
true if this object is the same as the obj |
getEndTime
Added in API level 34
open fun getEndTime(): Instant
Return | |
---|---|
Instant |
End time of the activity This value cannot be null . |
getEndZoneOffset
Added in API level 34
open fun getEndZoneOffset(): ZoneOffset
Return | |
---|---|
ZoneOffset |
End time's zone offset of the activity This value cannot be null . |
getStartTime
Added in API level 34
open fun getStartTime(): Instant
Return | |
---|---|
Instant |
Start time of the activity This value cannot be null . |
getStartZoneOffset
Added in API level 34
open fun getStartZoneOffset(): ZoneOffset
Return | |
---|---|
ZoneOffset |
Start time's zone offset of the activity This value cannot be null . |
hashCode
Added in API level 34
open fun hashCode(): Int
Returns a hash code value for the object.
Return | |
---|---|
Int |
a hash code value for this object. |