33 lines
1.9 KiB
Java
33 lines
1.9 KiB
Java
// Compile-only stub (API level 10 signatures). Never packaged into the APK.
|
|
package android.view;
|
|
|
|
public class GestureDetector {
|
|
public GestureDetector(android.content.Context context, OnGestureListener listener) { throw new RuntimeException("Stub!"); }
|
|
public boolean onTouchEvent(MotionEvent ev) { throw new RuntimeException("Stub!"); }
|
|
public interface OnGestureListener {
|
|
boolean onDown(MotionEvent e);
|
|
void onShowPress(MotionEvent e);
|
|
boolean onSingleTapUp(MotionEvent e);
|
|
boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY);
|
|
void onLongPress(MotionEvent e);
|
|
boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY);
|
|
}
|
|
public interface OnDoubleTapListener {
|
|
boolean onSingleTapConfirmed(MotionEvent e);
|
|
boolean onDoubleTap(MotionEvent e);
|
|
boolean onDoubleTapEvent(MotionEvent e);
|
|
}
|
|
public static class SimpleOnGestureListener implements OnGestureListener, OnDoubleTapListener {
|
|
public SimpleOnGestureListener() { throw new RuntimeException("Stub!"); }
|
|
public boolean onSingleTapUp(MotionEvent e) { throw new RuntimeException("Stub!"); }
|
|
public void onLongPress(MotionEvent e) { throw new RuntimeException("Stub!"); }
|
|
public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY) { throw new RuntimeException("Stub!"); }
|
|
public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { throw new RuntimeException("Stub!"); }
|
|
public void onShowPress(MotionEvent e) { throw new RuntimeException("Stub!"); }
|
|
public boolean onDown(MotionEvent e) { throw new RuntimeException("Stub!"); }
|
|
public boolean onDoubleTap(MotionEvent e) { throw new RuntimeException("Stub!"); }
|
|
public boolean onDoubleTapEvent(MotionEvent e) { throw new RuntimeException("Stub!"); }
|
|
public boolean onSingleTapConfirmed(MotionEvent e) { throw new RuntimeException("Stub!"); }
|
|
}
|
|
}
|