aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/ca/allanwang/kau/swipe/ViewDragHelperExtras.java
blob: 638f2fa54d41410b8aa05e91f92c9221c8b7d64c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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();

}