# LoadErrorHandlingPolicy.FallbackOptions

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

*** ** * ** ***


```
class LoadErrorHandlingPolicy.FallbackOptions
```

<br />

*** ** * ** ***

Holds information about the available fallback options.

## Summary

| ### Public constructors |
|---|
| `[FallbackOptions](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/LoadErrorHandlingPolicy.FallbackOptions#FallbackOptions(int,int,int,int))( numberOfLocations: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, numberOfExcludedLocations: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, numberOfTracks: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, numberOfExcludedTracks: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html )` **This function is deprecated.** Use `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/LoadErrorHandlingPolicy.FallbackOptions#FallbackOptions(int,int,int,int,boolean)` instead. <br /> |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/LoadErrorHandlingPolicy.FallbackOptions#FallbackOptions(int,int,int,int,boolean)( numberOfLocations: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, numberOfExcludedLocations: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, numberOfTracks: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, numberOfExcludedTracks: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, locationSteeringActive: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html )` Creates an instance. |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/LoadErrorHandlingPolicy.FallbackOptions#isFallbackAvailable(int)(@https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/LoadErrorHandlingPolicy.FallbackType type: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Returns whether a fallback is available for the given `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/LoadErrorHandlingPolicy.FallbackType`. |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/LoadErrorHandlingPolicy.FallbackOptions#locationSteeringActive()` Whether location steering (eg. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/LoadErrorHandlingPolicy.FallbackOptions#numberOfExcludedLocations()` The number of locations that are already excluded. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/LoadErrorHandlingPolicy.FallbackOptions#numberOfExcludedTracks()` The number of tracks that are already excluded. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/LoadErrorHandlingPolicy.FallbackOptions#numberOfLocations()` The number of available locations. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/LoadErrorHandlingPolicy.FallbackOptions#numberOfTracks()` The number of tracks. |

## Public constructors

### FallbackOptions

```
[FallbackOptions](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/LoadErrorHandlingPolicy.FallbackOptions#FallbackOptions(int,int,int,int))(
    numberOfLocations: Int,
    numberOfExcludedLocations: Int,
    numberOfTracks: Int,
    numberOfExcludedTracks: Int
)
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/LoadErrorHandlingPolicy.FallbackOptions#FallbackOptions(int,int,int,int,boolean)` instead.

### FallbackOptions

```
FallbackOptions(
    numberOfLocations: Int,
    numberOfExcludedLocations: Int,
    numberOfTracks: Int,
    numberOfExcludedTracks: Int,
    locationSteeringActive: Boolean
)
```

Creates an instance.

## Public functions

### isFallbackAvailable

```
fun isFallbackAvailable(@LoadErrorHandlingPolicy.FallbackType type: Int): Boolean
```

Returns whether a fallback is available for the given `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/LoadErrorHandlingPolicy.FallbackType`.

## Public properties

### locationSteeringActive

```
val locationSteeringActive: Boolean
```

Whether location steering (eg. Content Steering) is active.

### numberOfExcludedLocations

```
val numberOfExcludedLocations: Int
```

The number of locations that are already excluded.

### numberOfExcludedTracks

```
val numberOfExcludedTracks: Int
```

The number of tracks that are already excluded.

### numberOfLocations

```
val numberOfLocations: Int
```

The number of available locations.

### numberOfTracks

```
val numberOfTracks: Int
```

The number of tracks.