ProgressTrackerState

This interface allows subscribing to the current Player progress and provides callbacks for manual progress adjustments.

Inheritors

Properties

Link copied to clipboard
abstract val progress: StateFlow<Duration>

A StateFlow emitting the current progress, which can either be the progress manually set, or the actual progress of the underlying Player.

Functions

Link copied to clipboard
abstract fun onChanged(progress: Duration)

Callback to invoke when the progress is being manually changed.

Link copied to clipboard
abstract fun onFinished()

Callback to invoke when the progress operation has finished.