Package 

Class InViewDragger

    • Constructor Summary

      Constructors 
      Constructor Description
      InViewDragger(ViewGroup container, int touchAreaDiameter, int touchSlop)
    • Method Summary

      Modifier and Type Method Description
      void enableDebugMode(boolean isDebugMode) Enable/Disable debug mode.
      void activate(@NonNull() Dragger.DragListener dragListener, @NonNull() Point dragStartCenterPosition) Starts reporting user drag behavior given a drag area represented by {@code controlBounds}.
      void deactivate() Stops monitoring and reporting user drag behavior.
      • Methods inherited from class io.mattcarroll.hover.Dragger

        enableDebugMode
      • Methods inherited from class java.lang.Object

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

      • InViewDragger

        InViewDragger(ViewGroup container, int touchAreaDiameter, int touchSlop)
    • Method Detail

      • enableDebugMode

         void enableDebugMode(boolean isDebugMode)

        Enable/Disable debug mode. In debug mode this Dragger will paint its touch area with atranslucent color.

      • activate

         void activate(@NonNull() Dragger.DragListener dragListener, @NonNull() Point dragStartCenterPosition)

        Starts reporting user drag behavior given a drag area represented by {@code controlBounds}.

        Parameters:
        dragListener - listener that receives information about drag behavior
        dragStartCenterPosition - initial touch point to start dragging
      • deactivate

         void deactivate()

        Stops monitoring and reporting user drag behavior.