Record


abstract class Record
kotlin.Any
   ↳ android.health.connect.datatypes.Record

A base class for all record classes

Summary

Constants
static Int

The record represents an instantaneous event.

static Int

The record represents an event over an interval.

static Int

The record represents an event that occurred on a specific date.

Public methods
open Boolean
equals(other: Any?)

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

open Metadata

open Int

Returns a hash code value for the object.

Constants

RECORD_TEMPORAL_TYPE_INSTANT

Added in API level 34
static val RECORD_TEMPORAL_TYPE_INSTANT: Int

The record represents an instantaneous event.

Value: 0

RECORD_TEMPORAL_TYPE_INTERVAL

Added in API level 34
static val RECORD_TEMPORAL_TYPE_INTERVAL: Int

The record represents an event over an interval.

Value: 1

RECORD_TEMPORAL_TYPE_LOCAL_DATE

Added in API level 34
static val RECORD_TEMPORAL_TYPE_LOCAL_DATE: Int

The record represents an event that occurred on a specific date.

Value: 2

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

getMetadata

open fun getMetadata(): Metadata
Return
Metadata Metadata for this record.
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.