-
Notifications
You must be signed in to change notification settings - Fork 417
/
OnSeekChangeListener.java
47 lines (44 loc) · 1.96 KB
/
OnSeekChangeListener.java
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package com.warkiz.widget;
/**
* created by zhuangguangquan on 2018/6/3
* <p>
* A callback that notifies clients when the progress level has been
* changed. This includes changes that were initiated by the user through a
* touch track or thumb as well as changes that were initiated programmatically.
* https://github.com/warkiz/IndicatorSeekBar
* <p>
* Donation/打赏:
* If this library is helpful to you ,you can give me a donation by:
*
* @see <a href="https://www.paypal.me/BuyMeACupOfTeaThx">ZhuanGuangQuan's Paypal</a>, or
* @see <a href="https://github.com/warkiz/IndicatorSeekBar/blob/master/app/src/main/res/mipmap-xxhdpi/wechat_pay.png?raw=true">微信支付</a>, or
* @see <a href="https://github.com/warkiz/IndicatorSeekBar/blob/master/app/src/main/res/mipmap-xxhdpi/alipay.png?raw=true">支付宝</a>
* <p>
*/
public interface OnSeekChangeListener {
/**
* Notification that the progress level has changed.
* <p>
* Clients can use the fromUser parameter to distinguish user-initiated changes from
* those that occurred programmatically, also, if the seek bar type is discrete series,
* clients can use the thumbPosition parameter to check the thumb position on ticks and
* tick text parameter to get the tick text which located at current thumb below.
*
* @param seekParams the params info about the seeking bar
*/
void onSeeking(SeekParams seekParams);
/**
* Notification that the user has started a touch gesture. Clients may want to use this
* to disable advancing the seek bar.
*
* @param seekBar The SeekBar in which the touch gesture began
*/
void onStartTrackingTouch(IndicatorSeekBar seekBar);
/**
* Notification that the user has finished a touch gesture. Clients may want to use this
* to re-enable advancing the seek bar.
*
* @param seekBar The SeekBar in which the touch gesture began
*/
void onStopTrackingTouch(IndicatorSeekBar seekBar);
}