added in version 24.1.0
belongs to Maven artifact com.android.support:leanback-v17:28.0.0-alpha1

ProgressBarManager

public final class ProgressBarManager
extends Object

java.lang.Object
   ↳ android.support.v17.leanback.app.ProgressBarManager


Manager for showing/hiding progress bar widget. This class lets user specify an initial delay after which the progress bar will be shown. This is currently being used in BrowseFragment & VerticalGridFragment to show ProgressBar while the data is being loaded.

Summary

Public constructors

ProgressBarManager()

Public methods

void disableProgressBar()

Disables progress bar.

void enableProgressBar()

Enables progress bar.

long getInitialDelay()

Returns the initial delay.

void hide()

Hides the progress bar.

void setInitialDelay(long initialDelay)

Sets the initial delay.

void setProgressBarView(View progressBarView)

Sets a custom view to be shown in place of the default ProgressBar.

void setRootView(ViewGroup rootView)

Sets the root view on which the progress bar will be attached.

void show()

Displays the progress bar.

Inherited methods

From class java.lang.Object

Public constructors

ProgressBarManager

added in version 24.1.0
ProgressBarManager ()

Public methods

disableProgressBar

added in version 24.1.0
void disableProgressBar ()

Disables progress bar.

enableProgressBar

added in version 24.1.0
void enableProgressBar ()

Enables progress bar.

getInitialDelay

added in version 24.1.0
long getInitialDelay ()

Returns the initial delay.

Returns
long

hide

added in version 24.1.0
void hide ()

Hides the progress bar.

setInitialDelay

added in version 24.1.0
void setInitialDelay (long initialDelay)

Sets the initial delay. Progress bar will be shown after this delay has elapsed.

Parameters
initialDelay long: millisecond representing the in