# LegacyPlayerControlView.ProgressUpdateListener

# LegacyPlayerControlView.ProgressUpdateListener

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

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/media3/ui/LegacyPlayerControlView.ProgressUpdateListener "View this page in Java")

<br />

```
interface LegacyPlayerControlView.ProgressUpdateListener
```

<br />

*** ** * ** ***

Listener to be notified when progress has been updated.

## Summary

|                             ### Public functions                              |
|-------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | [onProgressUpdate](https://developer.android.com/reference/kotlin/androidx/media3/ui/LegacyPlayerControlView.ProgressUpdateListener#onProgressUpdate(long,long))`(position: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`, bufferedPosition: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`)` Called when progress needs to be updated. |

## Public functions

### onProgressUpdate

```
fun onProgressUpdate(position: Long, bufferedPosition: Long): Unit
```

Called when progress needs to be updated.  

|                                            Parameters                                             |
|---------------------------------------------------------------------------------------------------|--------------------------------|
| `position: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)         | The current position.          |
| `bufferedPosition: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) | The current buffered position. |