public static class SwipeGesture.Builder extends DragGesture.Builder<SwipeGesture,SwipeGesture.Builder>
SwipeGesture
.threshold, touchableArea
Constructor and Description |
---|
Builder()
Creates a new builder, which allows to configure and create instances of the class
SwipeGesture . |
Modifier and Type | Method and Description |
---|---|
SwipeGesture |
create()
Creates and returns the drag gesture.
|
SwipeGesture.Builder |
setAnimationDuration(long animationDuration)
Sets the duration of the swipe animation of the gestures, which are created by the
builder.
|
self, setThreshold, setTouchableArea, setTouchableArea
public Builder()
SwipeGesture
.public SwipeGesture.Builder setAnimationDuration(long animationDuration)
animationDuration
- The duration, which should be set, in milliseconds as a Long
value or -1,
if the default duration should be usedpublic final SwipeGesture create()
DragGesture.Builder
create
in class DragGesture.Builder<SwipeGesture,SwipeGesture.Builder>