Package 

Class BottomSheetBehavior.BottomSheetCallback

    • Method Summary

      Modifier and Type Method Description
      abstract void onStateChanged(@NonNull() View bottomSheet, int newState) Called when the bottom sheet changes its state.
      abstract void onSlide(@NonNull() View bottomSheet, float slideOffset) Called when the bottom sheet is being dragged.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • onStateChanged

         abstract void onStateChanged(@NonNull() View bottomSheet, int newState)

        Called when the bottom sheet changes its state.

        Parameters:
        bottomSheet - The bottom sheet view.
        newState - The new state.
      • onSlide

         abstract void onSlide(@NonNull() View bottomSheet, float slideOffset)

        Called when the bottom sheet is being dragged.

        Parameters:
        bottomSheet - The bottom sheet view.
        slideOffset - The new offset of this bottom sheet within [-1,1] range.