DeweyBaseTransientBottomBar

Base class for transient bottom bars.

Inheritors

Types

Link copied to clipboard
interface BaseCallback<B>

Callback class for DeweyBaseTransientBottomBar.

Link copied to clipboard
class Behavior(manager: DeweyTransientBottomBarManager) : SwipeDismissBehavior<View>
Link copied to clipboard
class BehaviorDelegate(behavior: SwipeDismissBehavior<*>, mManager: DeweyTransientBottomBarManager)
Link copied to clipboard
Link copied to clipboard
object Companion

Functions

Link copied to clipboard

Adds the specified callback to the list of callbacks that will be notified of transient bottom bar events.

Link copied to clipboard
Link copied to clipboard

Returns the anchor view

Link copied to clipboard
Link copied to clipboard

Returns the DeweyBaseTransientBottomBar's context.

Link copied to clipboard
open fun getDuration(): Int

Returns the duration that the BottomBar will be displayed.

Link copied to clipboard
fun getView(): View

Returns the DeweyBaseTransientBottomBar's view.

Link copied to clipboard
fun hideView(event: Int)
Link copied to clipboard

Returns whether the anchor view layout listener is enabled.

Link copied to clipboard

Returns whether this bottom bar should adjust it's position based on the system gesture area on Android Q and above. See .setGestureInsetBottomIgnored.

Link copied to clipboard

Return whether this DeweyBaseTransientBottomBar is currently being shown.

Link copied to clipboard

Returns whether this DeweyBaseTransientBottomBar is currently being shown, or is queued to be shown next.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun onViewHidden(event: Int)
Link copied to clipboard
Link copied to clipboard

Removes the specified callback from the list of callbacks that will be notified of transient bottom bar events.

Link copied to clipboard
fun setAnchorView(anchorView: View?): B

Sets the view should be anchored above.

fun setAnchorView(@IdRes anchorViewId: Int): B

Sets the view should be anchored above by id.

Link copied to clipboard
fun setAnchorViewLayoutListenerEnabled(anchorViewLayoutListenerEnabled: Boolean)

Sets whether the anchor view layout listener is enabled. If enabled, the BottomBar will recalculate and update its position when the position of the anchor view is changed.

Link copied to clipboard

Sets the DeweyBaseTransientBottomBar.Behavior to be used in this BottomBar.

Link copied to clipboard
fun setDuration(duration: Int): B

Sets the duration that the BottomBar will be displayed.

Link copied to clipboard
fun setGestureInsetBottomIgnored(gestureInsetBottomIgnored: Boolean): B

Sets whether this bottom bar should adjust it's position based on the system gesture area on Android Q and above.

Link copied to clipboard

Returns true if we should animate the Snackbar view in/out.

Link copied to clipboard
fun show()
Link copied to clipboard
fun showView()