lib / com.tingyik90.snackprogressbar / SnackProgressBarManager / 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.
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.
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.
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.
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.