A basic library that enables easy composition of gesture sequence recognition on a view.
This was inspired by the existence of UILongPressGestureRecognizer on iOS
// Perform action() when the view is tapped twice followed by a long press
GestureSequence.Builder(view)
.tap()
.tap()
.longPress()
.applyToView { action() }
- Tap
- Long press
Make sure you have mavenCentral()
in your repositories block
implementation 'io.github.paulklauser:gesturesequence:0.2'