# DownloadRequest.TimeRange

# DownloadRequest.TimeRange

Artifact:[androidx.media3:media3-exoplayer](https://developer.android.com/jetpack/androidx/releases/media3)  
[View Source](https://cs.android.com/search?q=file:androidx/media3/exoplayer/offline/DownloadRequest.java+class:androidx.media3.exoplayer.offline.DownloadRequest.TimeRange)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/media3/exoplayer/offline/DownloadRequest.TimeRange "View this page in Java")

<br />

```
class DownloadRequest.TimeRange : Parcelable
```

<br />

*** ** * ** ***

Defines the time range.

## Summary

|                                                                                                                      ### Constants                                                                                                                      |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------|
| `const `[Parcelable.Creator](https://developer.android.com/reference/android/os/Parcelable.Creator.html)`<`[DownloadRequest.TimeRange](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/offline/DownloadRequest.TimeRange)`!>!` | [CREATOR](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/offline/DownloadRequest.TimeRange#CREATOR()) |

|                                ### Public functions                                 |
|-------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)         | [describeContents](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/offline/DownloadRequest.TimeRange#describeContents())`()`                                                                                                                                                                                       |
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | [equals](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/offline/DownloadRequest.TimeRange#equals(java.lang.Object))`(o: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)`                                                                                                          |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)         | [hashCode](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/offline/DownloadRequest.TimeRange#hashCode())`()`                                                                                                                                                                                                       |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)       | [writeToParcel](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/offline/DownloadRequest.TimeRange#writeToParcel(android.os.Parcel,int))`(dest: `[Parcel](https://developer.android.com/reference/android/os/Parcel.html)`!, flags: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` |

|                             ### Public properties                             |
|-------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) | [durationUs](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/offline/DownloadRequest.TimeRange#durationUs()) The duration of the time range, in microseconds.                 |
| [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) | [startPositionUs](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/offline/DownloadRequest.TimeRange#startPositionUs()) The start position of the time range, in microseconds. |

|                                                                                                                                                                                                                                                                                                                                                                                           ### Inherited Constants                                                                                                                                                                                                                                                                                                                                                                                           |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From[android.os.Parcelable](https://developer.android.com/reference/android/os/Parcelable.html) |-------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------| | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [CONTENTS_FILE_DESCRIPTOR](https://developer.android.com/reference/android/os/Parcelable.html#CONTENTS_FILE_DESCRIPTOR())` = 1`           | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [PARCELABLE_WRITE_RETURN_VALUE](https://developer.android.com/reference/android/os/Parcelable.html#PARCELABLE_WRITE_RETURN_VALUE())` = 1` | |

## Constants

### CREATOR

```
const val CREATOR: Parcelable.Creator<DownloadRequest.TimeRange!>!
```  

## Public functions

### describeContents

```
fun describeContents(): Int
```  

### equals

```
fun equals(o: Any?): Boolean
```  

### hashCode

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

### writeToParcel

```
fun writeToParcel(dest: Parcel!, flags: Int): Unit
```  

## Public properties

### durationUs

```
val durationUs: Long
```

The duration of the time range, in microseconds.  

### startPositionUs

```
val startPositionUs: Long
```

The start position of the time range, in microseconds.