# HlsContentSteeringTracker.Callback

Artifact: [androidx.media3:media3-exoplayer-hls](https://developer.android.com/jetpack/androidx/releases/media3) [View Source](https://cs.android.com/search?q=file:androidx/media3/exoplayer/hls/HlsContentSteeringTracker.java+class:androidx.media3.exoplayer.hls.HlsContentSteeringTracker.Callback)

*** ** * ** ***


```
interface HlsContentSteeringTracker.Callback
```

<br />

*** ** * ** ***

A callback to be notified of `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsContentSteeringTracker` events.

## Summary

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsContentSteeringTracker.Callback#onCurrentPathwayUpdated(java.lang.String,java.lang.String,long)( currentPathwayId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!, previousPathwayId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?, previousPathwayExcludeDurationMs: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html )` Called when the current pathway is updated. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsContentSteeringTracker.Callback#onNewPathwayAvailable(java.lang.String,java.lang.String,com.google.common.collect.ImmutableList<android.net.Uri>,com.google.common.collect.ImmutableList<android.net.Uri>)( newPathwayId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!, basePathwayId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!, newUris: https://guava.dev/releases/snapshot-android/api/docs/com/google/common/collect/ImmutableList.html<https://developer.android.com/reference/android/net/Uri.html!>!, baseUris: https://guava.dev/releases/snapshot-android/api/docs/com/google/common/collect/ImmutableList.html<https://developer.android.com/reference/android/net/Uri.html!>! )` Called when a new pathway cloned from an existing pathway becomes available. |

## Public functions

### onCurrentPathwayUpdated

```
fun onCurrentPathwayUpdated(
    currentPathwayId: String!,
    previousPathwayId: String?,
    previousPathwayExcludeDurationMs: Long
): Unit
```

Called when the current pathway is updated.

| Parameters |
|---|---|
| `currentPathwayId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | The current pathway ID after the update. |
| `previousPathwayId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | The pathway ID before the update, or `null` if the call of this method is the result of starting the tracker. |
| `previousPathwayExcludeDurationMs: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | The exclude duration in milliseconds if the update is due to the exclusion of the previous pathway, or `https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET()` if the previous pathway is not excluded. |

### onNewPathwayAvailable

```
fun onNewPathwayAvailable(
    newPathwayId: String!,
    basePathwayId: String!,
    newUris: ImmutableList<Uri!>!,
    baseUris: ImmutableList<Uri!>!
): Unit
```

Called when a new pathway cloned from an existing pathway becomes available.

The lists `newUris` and `baseUris` have the equal size, and each URI in the `newUris` is cloned from the base URI in the `baseUris` of the same index.

| Parameters |
|---|---|
| `newPathwayId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | The new pathway ID. |
| `basePathwayId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | The base pathway ID. |
| `newUris: https://guava.dev/releases/snapshot-android/api/docs/com/google/common/collect/ImmutableList.html<https://developer.android.com/reference/android/net/Uri.html!>!` | The list of new cloned URIs. |
| `baseUris: https://guava.dev/releases/snapshot-android/api/docs/com/google/common/collect/ImmutableList.html<https://developer.android.com/reference/android/net/Uri.html!>!` | The list of base URIs. |