BpkSnackbar

Deprecated

Use BpkFloatingNotification from Compose instead

A wrapper around Snackbar providing the required customization.

Use BpkSnackbar.make to create a new instance, then use it in the same way as a Snackbar.

See also

Types

Link copied to clipboard
abstract class Callback : BaseTransientBottomBar.BaseCallback<BpkSnackbar>
Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val behaviour: BaseTransientBottomBar.Behavior?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val rawSnackbar: Snackbar

Provides access to internal Snackbar instance. This method should only be used for accessing properties and methods that BpkSnackbar does not have.

Functions

Link copied to clipboard
fun addCallback(callback: BaseTransientBottomBar.BaseCallback<BpkSnackbar>?): BpkSnackbar
Link copied to clipboard
fun dismiss()
Link copied to clipboard
fun removeCallback(callback: BaseTransientBottomBar.BaseCallback<BpkSnackbar>?): BpkSnackbar
Link copied to clipboard
fun setAction(icon: Drawable, contentDescription: String, listener: View.OnClickListener): BpkSnackbar
fun setAction(@DrawableRes resId: Int, contentDescription: String, listener: View.OnClickListener): BpkSnackbar
Link copied to clipboard
fun setBehaviour(behavior: BaseTransientBottomBar.Behavior?): BpkSnackbar
Link copied to clipboard
fun setDuration(duration: Int): BpkSnackbar
Link copied to clipboard
Link copied to clipboard
fun setOnDismissed(ignoreDismissAfterAction: Boolean = true, callback: () -> Unit): BpkSnackbar
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun show()