Package 

Class InWindowDragger

  • All Implemented Interfaces:
    io.mattcarroll.hover.Dragger

    
    public class InWindowDragger
     implements Dragger
                        

    Dragger implementation that works within a {@code Window}.

    • Constructor Summary

      Constructors 
      Constructor Description
      InWindowDragger(Context context, WindowViewController windowViewController, int touchAreaDiameter, float tapTouchSlop) Note: {@code view} must already be added to the {@code Window}.
    • Method Summary

      Modifier and Type Method Description
      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.
      void enableDebugMode(boolean isDebugMode) Enable/Disable debug mode.
      • 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

      • InWindowDragger

        InWindowDragger(Context context, WindowViewController windowViewController, int touchAreaDiameter, float tapTouchSlop)
        Note: {@code view} must already be added to the {@code Window}.
        Parameters:
        context - context
        windowViewController - windowViewController
        tapTouchSlop - tapTouchSlop
    • Method Detail

      • 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.

      • enableDebugMode

         void enableDebugMode(boolean isDebugMode)

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