aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/ca/allanwang/kau/swipe/ViewDragHelperExtras.java
blob: 868dd3fb9ca48d43df69131d78d78e80bafebb04 (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
25
26
27
28
29
30
31
package ca.allanwang.kau.swipe;

import android.content.Context;

/**
 * Created by Allan Wang on 2017-07-05.
 * <p>
 * Collection of addition methods added into ViewDragHelper that weren't in the original
 */

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();

    void setSensitivity(Context context, float sensitivity);

    float getSensitivity();

    int STATE_JUDGING = 3;

}