-
- 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 voidactivate(@NonNull() Dragger.DragListener dragListener, @NonNull() Point dragStartCenterPosition)Starts reporting user drag behavior given a drag area represented by {@code controlBounds}.voiddeactivate()Stops monitoring and reporting user drag behavior. voidenableDebugMode(boolean isDebugMode)Enable/Disable debug mode. -
-
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- contextwindowViewController- windowViewControllertapTouchSlop- 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 behaviordragStartCenterPosition- 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.
-
-
-
-