snackprogressbar

lib / com.tingyik90.snackprogressbar / SnackProgressBarManager / show

show

fun show(storeId: Int, duration: Int): Unit

Shows the SnackProgressBar based on its storeId with the specified duration. If another SnackProgressBar is already showing, this SnackProgressBar will be queued and shown accordingly after those queued are dismissed.

Parameters

storeId - StoreId of the SnackProgressBar stored in SnackProgressBarManager.

duration - Duration to show the SnackProgressBar of either LENGTH_SHORT, LENGTH_LONG, LENGTH_INDEFINITE or any positive millis.fun show(storeId: Int, duration: Int, onDisplayId: Int): Unit

Shows the SnackProgressBar based on its storeId with the specified duration. If another SnackProgressBar is already showing, this SnackProgressBar will be queued and shown accordingly after those queued are dismissed.

Parameters

storeId - StoreId of the SnackProgressBar stored in SnackProgressBarManager.

duration - Duration to show the SnackProgressBar of either LENGTH_SHORT, LENGTH_LONG, LENGTH_INDEFINITE or any positive millis.

onDisplayId - OnDisplayId attached to the SnackProgressBar when implementing the OnDisplayListener.fun show(snackProgressBar: SnackProgressBar, duration: Int): Unit

Shows the SnackProgressBar with the specified duration. If another SnackProgressBar is already showing, this SnackProgressBar will be queued and shown accordingly after those queued are dismissed.

Parameters

snackProgressBar - SnackProgressBar to be shown.

duration - Duration to show the SnackProgressBar of either LENGTH_SHORT, LENGTH_LONG, LENGTH_INDEFINITE or any positive millis.fun show(snackProgressBar: SnackProgressBar, duration: Int, onDisplayId: Int): Unit

Shows the SnackProgressBar with the specified duration. If another SnackProgressBar is already showing, this SnackProgressBar will be queued and shown accordingly after those queued are dismissed.

Parameters

snackProgressBar - SnackProgressBar to be shown.

duration - Duration to show the SnackProgressBar of either LENGTH_SHORT, LENGTH_LONG, LENGTH_INDEFINITE or any positive millis.

onDisplayId - OnDisplayId attached to the SnackProgressBar when implementing the OnDisplayListener.