aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/ca/allanwang/kau/swipe/ViewDragHelperExtras.java
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/main/kotlin/ca/allanwang/kau/swipe/ViewDragHelperExtras.java')
-rw-r--r--core/src/main/kotlin/ca/allanwang/kau/swipe/ViewDragHelperExtras.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/core/src/main/kotlin/ca/allanwang/kau/swipe/ViewDragHelperExtras.java b/core/src/main/kotlin/ca/allanwang/kau/swipe/ViewDragHelperExtras.java
new file mode 100644
index 0000000..638f2fa
--- /dev/null
+++ b/core/src/main/kotlin/ca/allanwang/kau/swipe/ViewDragHelperExtras.java
@@ -0,0 +1,24 @@
+package ca.allanwang.kau.swipe;
+
+/**
+ * Created by Allan Wang on 2017-07-05.
+ * <p>
+ * Collection of addition methods added into ViewDragHelper that weren't in the original
+ */
+
+public interface ViewDragHelperExtras {
+
+
+ /**
+ * Sets the new size of a given edge
+ * Any touch within this range will be defined to have started from an edge
+ *
+ * @param size the new size in px
+ */
+ void setEdgeSize(int size);
+
+ void setMaxVelocity(float maxVel);
+
+ float getMaxVelocity();
+
+}