setDuration

fun setDuration(duration: Int): B

Sets the duration that the BottomBar will be displayed.

Parameters

duration

How long to display the message. Can be LENGTH_SHORT, LENGTH_LONG, LENGTH_INDEFINITE, or a custom duration in milliseconds.