# 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)

*** ** * ** ***


```
public class SplitParallelSampleBandwidthEstimator.Builder
```

<br />

*** ** * ** ***

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

## Summary

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

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

## Public constructors

### Builder

```
public Builder()
```

Creates a new builder instance.

## Public methods

### build

```
public SplitParallelSampleBandwidthEstimator build()
```

### setBandwidthStatistic

```
@CanIgnoreReturnValue
public SplitParallelSampleBandwidthEstimator.Builder setBandwidthStatistic(BandwidthStatistic bandwidthStatistic)
```

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

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

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

### setMinBytesTransferred

```
@CanIgnoreReturnValue
public SplitParallelSampleBandwidthEstimator.Builder setMinBytesTransferred(long minBytesTransferred)
```

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 |
|---|---|
| `long minBytesTransferred` | The minimum number of transferred bytes. |

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

### setMinSamples

```
@CanIgnoreReturnValue
public SplitParallelSampleBandwidthEstimator.Builder setMinSamples(int minSamples)
```

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 |
|---|---|
| `int minSamples` | The minimum number of samples. |

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