public class AndroidTouchProcessor extends Object
| Constructor and Description |
|---|
AndroidTouchProcessor(FlutterRenderer renderer,
boolean trackMotionEvents)
Constructs an
AndroidTouchProcessor that will send touch event data to the Flutter
execution context represented by the given FlutterRenderer. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
onGenericMotionEvent(MotionEvent event)
Sends the given generic
MotionEvent data to Flutter in a format that Flutter
understands. |
boolean |
onTouchEvent(MotionEvent event) |
boolean |
onTouchEvent(MotionEvent event,
Matrix transformMatrix)
Sends the given
MotionEvent data to Flutter in a format that Flutter understands. |
public AndroidTouchProcessor(@NonNull
FlutterRenderer renderer,
boolean trackMotionEvents)
AndroidTouchProcessor that will send touch event data to the Flutter
execution context represented by the given FlutterRenderer.public boolean onTouchEvent(@NonNull
MotionEvent event)
public boolean onTouchEvent(@NonNull
MotionEvent event,
Matrix transformMatrix)
MotionEvent data to Flutter in a format that Flutter understands.public boolean onGenericMotionEvent(@NonNull
MotionEvent event)
MotionEvent data to Flutter in a format that Flutter
understands.
Generic motion events include joystick movement, mouse hover, track pad touches, scroll wheel movements, etc.