lib / tv.smartclip.smartclientandroid.lib.smartcorefacade / ProgressBarController

ProgressBarController

class ProgressBarController : IKoinDi, Releasable

Responsible to set the progress on the provided ProgressBar.

The position reported by the core is not fluent enough to use it as source for the ProgressBar. Instead we will use the ExoPlayer's position combined with the Core duration to create a fluent progress.

Constructors

<init>

Responsible to set the progress on the provided ProgressBar.

ProgressBarController(progressBar: ProgressBar, koinDi: IKoinDi)

Properties

progressBar

val progressBar: ProgressBar

progressVisible

var progressVisible: Boolean

Functions

release

Removes all external class references. Has to be called when the implementing class is not needed anymore.

fun release(): Unit

Companion Object Functions

create

Creates a new ProgressBar with the ProgressBarController set as a tag. controller can be used to get the ProgressBarController.

fun create(layout: ViewGroup, koinDi: IKoinDi): ProgressBar