# ChunkHolder

# ChunkHolder

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/source/chunk/ChunkHolder.java+class:androidx.media3.exoplayer.source.chunk.ChunkHolder)

*** ** * ** ***

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

<br />

```
@UnstableApi
class ChunkHolder
```

<br />

*** ** * ** ***

Holds a chunk or an indication that the end of the stream has been reached.

## Summary

|                                                      ### Public constructors                                                       |
|------------------------------------------------------------------------------------------------------------------------------------|
| [ChunkHolder](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/chunk/ChunkHolder#ChunkHolder())`()` |

|                             ### Public functions                              |
|-------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------|
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | [clear](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/chunk/ChunkHolder#clear())`()` Clears the holder. |

|                                          ### Public properties                                          |
|---------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Chunk](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/chunk/Chunk)`?` | [chunk](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/chunk/ChunkHolder#chunk()) The chunk.                                                         |
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)                     | [endOfStream](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/chunk/ChunkHolder#endOfStream()) Indicates that the end of the stream has been reached. |

## Public constructors

### ChunkHolder

```
ChunkHolder()
```  

## Public functions

### clear

```
fun clear(): Unit
```

Clears the holder.  

## Public properties

### chunk

```
val chunk: Chunk?
```

The chunk.  

### endOfStream

```
val endOfStream: Boolean
```

Indicates that the end of the stream has been reached.