Added in API level 34
InstantRecord
abstract class InstantRecord : Record
| kotlin.Any | ||
| ↳ | android.health.connect.datatypes.Record | |
| ↳ | android.health.connect.datatypes.InstantRecord | |
A record that contains a measurement recorded as an instance .
Summary
| Public methods | |
|---|---|
| open Boolean |
Indicates whether some other object is "equal to" this one. |
| open Instant |
getTime() |
| 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 |
getTime
Added in API level 34
open fun getTime(): Instant
| Return | |
|---|---|
Instant |
Time of the activity This value cannot be null. |
getZoneOffset
Added in API level 34
open fun getZoneOffset(): ZoneOffset
| Return | |
|---|---|
ZoneOffset |
Zone offset of the user when the activity happened 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. |