public class DragGestureEventHandlerFactory
extends java.lang.Object
AbstractDragGestureEventHandler
.Constructor and Description |
---|
DragGestureEventHandlerFactory(TabSwitcher tabSwitcher)
Creates a new factory, which allows to create instances of the class
AbstractDragGestureEventHandler . |
Modifier and Type | Method and Description |
---|---|
AbstractTouchEventHandler |
fromGesture(DragGesture dragGesture)
Creates and returns the event handler, which corresponds to a specific drag gesture.
|
public DragGestureEventHandlerFactory(@NonNull TabSwitcher tabSwitcher)
AbstractDragGestureEventHandler
.tabSwitcher
- The tab switcher, the event handler should be created for, as an instance of the
class TabSwitcher
. The tab switcher may not be null@NonNull public final AbstractTouchEventHandler fromGesture(@NonNull DragGesture dragGesture)
dragGesture
- The drag gesture, the event handler should be created from, as an instance of the
class DragGesture
. The drag gesture may not be nullAbstractTouchEventHandler
. The event handler may not be null