diff options
Diffstat (limited to 'core/src/main/kotlin/ca/allanwang/kau/swipe/SwipeListener.kt')
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/swipe/SwipeListener.kt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/src/main/kotlin/ca/allanwang/kau/swipe/SwipeListener.kt b/core/src/main/kotlin/ca/allanwang/kau/swipe/SwipeListener.kt new file mode 100644 index 0000000..4fe9fa8 --- /dev/null +++ b/core/src/main/kotlin/ca/allanwang/kau/swipe/SwipeListener.kt @@ -0,0 +1,10 @@ +package ca.allanwang.kau.swipe + +interface SwipeListener { + fun onScroll(percent: Float, px: Int) + fun onEdgeTouch() + /** + * Invoke when scroll percent over the threshold for the first time + */ + fun onScrollToClose() +}
\ No newline at end of file |