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

*** ** * ** ***


```
class SplitParallelSampleBandwidthEstimator.Builder
```

<br />

*** ** * ** ***

A builder to create `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/experimental/SplitParallelSampleBandwidthEstimator` instances.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/experimental/SplitParallelSampleBandwidthEstimator.Builder#Builder()()` Creates a new builder instance. |

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/experimental/SplitParallelSampleBandwidthEstimator!` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/experimental/SplitParallelSampleBandwidthEstimator.Builder#build()()` |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/experimental/SplitParallelSampleBandwidthEstimator.Builder!` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/experimental/SplitParallelSampleBandwidthEstimator.Builder#setBandwidthStatistic(androidx.media3.exoplayer.upstream.experimental.BandwidthStatistic)(bandwidthStatistic: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/experimental/BandwidthStatistic!)` Sets the `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/experimental/BandwidthStatistic` to be used by the estimator. |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/experimental/SplitParallelSampleBandwidthEstimator.Builder!` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/experimental/SplitParallelSampleBandwidthEstimator.Builder#setMinBytesTransferred(long)(minBytesTransferred: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` Sets a minimum threshold of bytes that need to be transferred before the estimator can return a bandwidth estimate. |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/experimental/SplitParallelSampleBandwidthEstimator.Builder!` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/experimental/SplitParallelSampleBandwidthEstimator.Builder#setMinSamples(int)(minSamples: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Sets a minimum threshold of samples that need to be taken before the estimator can return a bandwidth estimate. |

## Public constructors

### Builder

```
Builder()
```

Creates a new builder instance.

## Public functions

### build

```
fun build(): SplitParallelSampleBandwidthEstimator!
```

### setBandwidthStatistic

```
@CanIgnoreReturnValue
fun setBandwidthStatistic(bandwidthStatistic: BandwidthStatistic!): SplitParallelSampleBandwidthEstimator.Builder!
```

Sets the `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/experimental/BandwidthStatistic` to be used by the estimator. By default, this is set to a `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/experimental/SlidingWeightedAverageBandwidthStatistic`.

| Parameters |
|---|---|
| `bandwidthStatistic: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/experimental/BandwidthStatistic!` | The `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/experimental/BandwidthStatistic`. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/experimental/SplitParallelSampleBandwidthEstimator.Builder!` | This builder for convenience. |

### setMinBytesTransferred

```
@CanIgnoreReturnValue
fun setMinBytesTransferred(minBytesTransferred: Long): SplitParallelSampleBandwidthEstimator.Builder!
```

Sets a minimum threshold of bytes that need to be transferred before the estimator can return a bandwidth estimate. By default, this is set to `0`.

| Parameters |
|---|---|
| `minBytesTransferred: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | The minimum number of transferred bytes. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/experimental/SplitParallelSampleBandwidthEstimator.Builder!` | This builder for convenience. |

### setMinSamples

```
@CanIgnoreReturnValue
fun setMinSamples(minSamples: Int): SplitParallelSampleBandwidthEstimator.Builder!
```

Sets a minimum threshold of samples that need to be taken before the estimator can return a bandwidth estimate. By default, this is set to `0`.

| Parameters |
|---|---|
| `minSamples: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The minimum number of samples. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/experimental/SplitParallelSampleBandwidthEstimator.Builder!` | This builder for convenience. |