public class AndroidTouchProcessor extends Object
Constructor and Description |
---|
AndroidTouchProcessor(FlutterRenderer renderer)
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)
Sends the given
MotionEvent data to Flutter in a format that Flutter understands. |
public AndroidTouchProcessor(@NonNull FlutterRenderer renderer)
AndroidTouchProcessor
that will send touch event data to the Flutter
execution context represented by the given FlutterRenderer
.public boolean onTouchEvent(@NonNull MotionEvent event)
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.