public abstract class TuSdkGestureRecognizer
extends java.lang.Object
implements android.view.View.OnTouchListener
限定符和类型 | 类和说明 |
---|---|
static class |
TuSdkGestureRecognizer.StepData
步进数据
|
限定符和类型 | 字段和说明 |
---|---|
static long |
MultipleStablizationDistance
多点触摸防抖延时毫秒
|
构造器和说明 |
---|
TuSdkGestureRecognizer()
手势对象
|
限定符和类型 | 方法和说明 |
---|---|
float |
getDegree()
两点间角度
|
android.graphics.PointF |
getLastPoint()
触摸点信息
|
long |
getMultipleStablizationDistance()
多点触摸防抖延时毫秒 (默认:50 毫秒)
|
float |
getSpace()
两点间距离
|
TuSdkGestureRecognizer.StepData |
getStepData()
步进数据
|
float |
getStepDegree()
两点间步进角度
|
android.graphics.PointF |
getStepPoint()
步进距离信息
|
float |
getStepSpace()
两点间步进距离
|
boolean |
isMultipleStablization()
多点触摸防抖
|
boolean |
onTouch(android.view.View view,
android.view.MotionEvent event) |
abstract void |
onTouchBegin(TuSdkGestureRecognizer gesture,
android.view.View view,
android.view.MotionEvent event)
触摸开始
|
void |
onTouchEnd(TuSdkGestureRecognizer gesture,
android.view.View view,
android.view.MotionEvent event,
TuSdkGestureRecognizer.StepData data)
触摸结束
|
void |
onTouchMultipleBegin(TuSdkGestureRecognizer gesture,
android.view.View view,
android.view.MotionEvent event)
多点触摸开始
|
void |
onTouchMultipleMove(TuSdkGestureRecognizer gesture,
android.view.View view,
android.view.MotionEvent event,
TuSdkGestureRecognizer.StepData data)
多点触摸移动
|
void |
onTouchMultipleMoveForStablization(TuSdkGestureRecognizer gesture,
TuSdkGestureRecognizer.StepData data)
多点触摸移动 (开启防抖)
|
abstract void |
onTouchSingleMove(TuSdkGestureRecognizer gesture,
android.view.View view,
android.view.MotionEvent event,
TuSdkGestureRecognizer.StepData data)
单点触摸移动
|
void |
setMultipleStablization(boolean mMultipleStablization)
多点触摸防抖
|
void |
setMultipleStablizationDistance(long multipleStablizationDistance)
多点触摸防抖延时毫秒 (默认:50 毫秒)
|
public TuSdkGestureRecognizer.StepData getStepData()
public android.graphics.PointF getLastPoint()
public android.graphics.PointF getStepPoint()
public float getSpace()
public float getStepSpace()
public float getDegree()
public float getStepDegree()
public boolean isMultipleStablization()
public void setMultipleStablization(boolean mMultipleStablization)
public long getMultipleStablizationDistance()
public void setMultipleStablizationDistance(long multipleStablizationDistance)
public boolean onTouch(android.view.View view, android.view.MotionEvent event)
onTouch
在接口中 android.view.View.OnTouchListener
public abstract void onTouchBegin(TuSdkGestureRecognizer gesture, android.view.View view, android.view.MotionEvent event)
gesture
- 手势对象view
- 事件视图event
- 事件对象public void onTouchEnd(TuSdkGestureRecognizer gesture, android.view.View view, android.view.MotionEvent event, TuSdkGestureRecognizer.StepData data)
gesture
- 手势对象view
- 事件视图event
- 事件对象public abstract void onTouchSingleMove(TuSdkGestureRecognizer gesture, android.view.View view, android.view.MotionEvent event, TuSdkGestureRecognizer.StepData data)
gesture
- 手势对象view
- 事件视图event
- 事件对象data
- 步进数据public void onTouchMultipleMove(TuSdkGestureRecognizer gesture, android.view.View view, android.view.MotionEvent event, TuSdkGestureRecognizer.StepData data)
gesture
- 手势对象view
- 事件视图event
- 事件对象data
- 步进数据public void onTouchMultipleMoveForStablization(TuSdkGestureRecognizer gesture, TuSdkGestureRecognizer.StepData data)
gesture
- 手势对象data
- 步进数据public void onTouchMultipleBegin(TuSdkGestureRecognizer gesture, android.view.View view, android.view.MotionEvent event)
gesture
- 手势对象view
- 事件视图event
- 事件对象