# DataType.TimeType

# DataType.TimeType

Artifact: [androidx.health:health-services-client](https://developer.android.com/jetpack/androidx/releases/health)  
[View Source](https://cs.android.com/search?q=file:androidx/health/services/client/data/DataType.kt+class:androidx.health.services.client.data.DataType.TimeType)  
Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/health#1.0.0)

*** ** * ** ***

Kotlin \|[Java](https://developer.android.com/reference/androidx/health/services/client/data/DataType.TimeType "View this page in Java")


```
class DataType.TimeType
```

<br />

*** ** * ** ***

Whether the [DataType](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataType) corresponds to a measurement spanning an interval, or a sample at a single point in time.

## Summary

|                                              ### Public companion properties                                               |
|----------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [DataType.TimeType](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataType.TimeType) | [INTERVAL](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataType.TimeType#INTERVAL()) TimeType that indicates the DataType has a value that represents an interval of time with a beginning and end.                                                              |
| [DataType.TimeType](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataType.TimeType) | [SAMPLE](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataType.TimeType#SAMPLE()) TimeType that indicates the DataType has a value that represents a single point in time.                                                                                        |
| [DataType.TimeType](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataType.TimeType) | [UNKNOWN](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataType.TimeType#UNKNOWN()) The [TimeType](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataType.TimeType) is unknown or this library is too old to know about it. |

|                                        ### Public functions                                         |
|-----------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `open operator `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | [equals](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataType.TimeType#equals(kotlin.Any))`(other: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)` |
| `open `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                  | [hashCode](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataType.TimeType#hashCode())`()`                                                                                            |
| `open `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)            | [toString](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataType.TimeType#toString())`()`                                                                                            |

|                               ### Public properties                               |
|-----------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)       | [id](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataType.TimeType#id())     |
| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html) | [name](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataType.TimeType#name()) |

## Public companion properties

### INTERVAL

```
val INTERVAL: DataType.TimeType
```

TimeType that indicates the DataType has a value that represents an interval of time with a beginning and end. For example, number of steps taken over a span of time.  

### SAMPLE

```
val SAMPLE: DataType.TimeType
```

TimeType that indicates the DataType has a value that represents a single point in time. For example, heart rate reading at a specific time.  

### UNKNOWN

```
val UNKNOWN: DataType.TimeType
```

The [TimeType](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataType.TimeType) is unknown or this library is too old to know about it.  

## Public functions

### equals

```
open operator fun equals(other: Any?): Boolean
```  

### hashCode

```
open fun hashCode(): Int
```  

### toString

```
open fun toString(): String
```  

## Public properties

### id

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/health#1.0.0)  

```
val id: Int
```  

### name

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/health#1.0.0)  

```
val name: String
```