BaseTransientBottomBar.Behavior

public static class BaseTransientBottomBar.Behavior
extends SwipeDismissBehavior<View>

java.lang.Object
   ↳
     ↳ com.google.android.material.behavior.SwipeDismissBehavior<View>
       ↳ com.google.android.material.snackbar.BaseTransientBottomBar.Behavior


Behavior for BaseTransientBottomBar.

Summary

Inherited constants

From class com.google.android.material.behavior.SwipeDismissBehavior

Inherited fields

From class com.google.android.material.behavior.SwipeDismissBehavior

Public constructors

BaseTransientBottomBar.Behavior()

Public methods

boolean canSwipeDismissView(View child)

Called when the user's input indicates that they want to swipe the given view.

boolean onInterceptTouchEvent(CoordinatorLayout parent, View child, MotionEvent event)

Inherited methods

From class com.google.android.material.behavior.SwipeDismissBehavior
From class java.lang.Object

Public constructors

BaseTransientBottomBar.Behavior

BaseTransientBottomBar.Behavior ()

Public methods

canSwipeDismissView

boolean canSwipeDismissView (View child)

Called when the user's input indicates that they want to swipe the given view.

Parameters
child View: View the user is attempting to swipe

Returns
boolean true if the view can be dismissed via swiping, false otherwise

onInterceptTouchEvent

boolean onInterceptTouchEvent (CoordinatorLayout parent, 
                View child, 
                MotionEvent event)

Parameters
parent CoordinatorLayout

child View

event MotionEvent

Returns
boolean