# ParsingLoadable.Builder

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/upstream/ParsingLoadable.java+class:androidx.media3.exoplayer.upstream.ParsingLoadable.Builder)

*** ** * ** ***


```
class ParsingLoadable.Builder<T>
```

<br />

*** ** * ** ***

Builder for `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/ParsingLoadable`.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/ParsingLoadable.Builder#Builder(androidx.media3.datasource.DataSource,androidx.media3.datasource.DataSpec,int,androidx.media3.exoplayer.upstream.ParsingLoadable.Parser<? extends T>)( dataSource: https://developer.android.com/reference/kotlin/androidx/media3/datasource/DataSource!, dataSpec: https://developer.android.com/reference/kotlin/androidx/media3/datasource/DataSpec!, @https://developer.android.com/reference/kotlin/androidx/media3/common/C.DataType type: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, parser: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/ParsingLoadable.Parser<T!>! )` Creates a builder. |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/ParsingLoadable.Builder#Builder(androidx.media3.datasource.DataSource,android.net.Uri,int,androidx.media3.exoplayer.upstream.ParsingLoadable.Parser<? extends T>)( dataSource: https://developer.android.com/reference/kotlin/androidx/media3/datasource/DataSource!, uri: https://developer.android.com/reference/android/net/Uri.html!, @https://developer.android.com/reference/kotlin/androidx/media3/common/C.DataType type: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, parser: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/ParsingLoadable.Parser<T!>! )` Creates a builder. |

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/ParsingLoadable<T!>!` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/ParsingLoadable.Builder#build()()` Builds the `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/ParsingLoadable`. |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/ParsingLoadable.Builder<T!>!` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/ParsingLoadable.Builder#setSteeredPathwayId(java.lang.String)(steeredPathwayId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?)` Sets the `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/ParsingLoadable#steeredPathwayId()`, the default is `null`. |

## Public constructors

### Builder

```
Builder(
    dataSource: DataSource!,
    dataSpec: DataSpec!,
    @C.DataType type: Int,
    parser: ParsingLoadable.Parser<T!>!
)
```

Creates a builder.

| Parameters |
|---|---|
| `dataSource: https://developer.android.com/reference/kotlin/androidx/media3/datasource/DataSource!` | A `https://developer.android.com/reference/kotlin/androidx/media3/datasource/DataSource` to use when loading the data. |
| `dataSpec: https://developer.android.com/reference/kotlin/androidx/media3/datasource/DataSpec!` | The `https://developer.android.com/reference/kotlin/androidx/media3/datasource/DataSpec` from which the object should be loaded. |
| `@https://developer.android.com/reference/kotlin/androidx/media3/common/C.DataType type: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The `https://developer.android.com/reference/kotlin/androidx/media3/common/C.DataType` of the data. |
| `parser: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/ParsingLoadable.Parser<T!>!` | Parses the object from the response. |

### Builder

```
Builder(
    dataSource: DataSource!,
    uri: Uri!,
    @C.DataType type: Int,
    parser: ParsingLoadable.Parser<T!>!
)
```

Creates a builder.

| Parameters |
|---|---|
| `dataSource: https://developer.android.com/reference/kotlin/androidx/media3/datasource/DataSource!` | A `https://developer.android.com/reference/kotlin/androidx/media3/datasource/DataSource` to use when loading the data. |
| `uri: https://developer.android.com/reference/android/net/Uri.html!` | The `https://developer.android.com/reference/android/net/Uri.html` from which the object should be loaded. |
| `@https://developer.android.com/reference/kotlin/androidx/media3/common/C.DataType type: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The `https://developer.android.com/reference/kotlin/androidx/media3/common/C.DataType` of the data. |
| `parser: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/ParsingLoadable.Parser<T!>!` | Parses the object from the response. |

## Public functions

### build

```
fun build(): ParsingLoadable<T!>!
```

Builds the `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/ParsingLoadable`.

### setSteeredPathwayId

```
@CanIgnoreReturnValue
fun setSteeredPathwayId(steeredPathwayId: String?): ParsingLoadable.Builder<T!>!
```

Sets the `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/ParsingLoadable#steeredPathwayId()`, the default is `null`.

| Parameters |
|---|---|
| `steeredPathwayId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | See `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/ParsingLoadable#steeredPathwayId()`. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/ParsingLoadable.Builder<T!>!` | This builder. |