/// A Dart version of Android's [MotionEvent.PointerProperties](https://developer.android.com/reference/android/view/MotionEvent.PointerProperties).
classAndroidPointerProperties{
/// Creates an AndroidPointerProperties.
///
/// All parameters must not be null.
constAndroidPointerProperties({
@requiredthis.id,
@requiredthis.toolType
}):assert(id!=null),
assert(toolType!=null);
/// See Android's [MotionEvent.PointerProperties#id](https://developer.android.com/reference/android/view/MotionEvent.PointerProperties.html#id).
finalintid;
/// The type of tool used to make contact such as a finger or stylus, if known.
/// See Android's [MotionEvent.PointerProperties#toolType](https://developer.android.com/reference/android/view/MotionEvent.PointerProperties.html#toolType).
/// A Dart version of Android's [MotionEvent.PointerCoords](https://developer.android.com/reference/android/view/MotionEvent.PointerCoords).
classAndroidPointerCoords{
/// Creates an AndroidPointerCoords.
///
/// All parameters must not be null.
constAndroidPointerCoords({
@requiredthis.orientation,
@requiredthis.pressure,
@requiredthis.size,
@requiredthis.toolMajor,
@requiredthis.toolMinor,
@requiredthis.touchMajor,
@requiredthis.touchMinor,
@requiredthis.x,
@requiredthis.y
}):assert(orientation!=null),
assert(pressure!=null),
assert(size!=null),
assert(toolMajor!=null),
assert(toolMinor!=null),
assert(touchMajor!=null),
assert(touchMinor!=null),
assert(x!=null),
assert(y!=null);
/// The orientation of the touch area and tool area in radians clockwise from vertical.
///
/// See Android's [MotionEvent.PointerCoords#orientation](https://developer.android.com/reference/android/view/MotionEvent.PointerCoords.html#orientation).
finaldoubleorientation;
/// A normalized value that describes the pressure applied to the device by a finger or other tool.
///
/// See Android's [MotionEvent.PointerCoords#pressure](https://developer.android.com/reference/android/view/MotionEvent.PointerCoords.html#pressure).
finaldoublepressure;
/// A normalized value that describes the approximate size of the pointer touch area in relation to the maximum detectable size of the device.
///
/// See Android's [MotionEvent.PointerCoords#size](https://developer.android.com/reference/android/view/MotionEvent.PointerCoords.html#size).
finaldoublesize;
/// See Android's [MotionEvent.PointerCoords#toolMajor](https://developer.android.com/reference/android/view/MotionEvent.PointerCoords.html#toolMajor).
finaldoubletoolMajor;
/// See Android's [MotionEvent.PointerCoords#toolMinor](https://developer.android.com/reference/android/view/MotionEvent.PointerCoords.html#toolMinor).
finaldoubletoolMinor;
/// See Android's [MotionEvent.PointerCoords#touchMajor](https://developer.android.com/reference/android/view/MotionEvent.PointerCoords.html#touchMajor).
finaldoubletouchMajor;
/// See Android's [MotionEvent.PointerCoords#touchMinor](https://developer.android.com/reference/android/view/MotionEvent.PointerCoords.html#touchMinor).
finaldoubletouchMinor;
/// The X component of the pointer movement.
///
/// See Android's [MotionEvent.PointerCoords#x](https://developer.android.com/reference/android/view/MotionEvent.PointerCoords.html#x).
finaldoublex;
/// The Y component of the pointer movement.
///
/// See Android's [MotionEvent.PointerCoords#y](https://developer.android.com/reference/android/view/MotionEvent.PointerCoords.html#y).
/// The unique identifier of the Android view controlled by this controller.
finalintid;
...
...
@@ -146,9 +415,27 @@ class AndroidViewController {
});
}
/// Sends an Android [MotionEvent](https://developer.android.com/reference/android/view/MotionEvent)
/// to the view.
///
/// The Android MotionEvent object is created with [MotionEvent.obtain](https://developer.android.com/reference/android/view/MotionEvent.html#obtain(long,%20long,%20int,%20float,%20float,%20float,%20float,%20int,%20float,%20float,%20int,%20int)).
/// See documentation of [MotionEvent.obtain](https://developer.android.com/reference/android/view/MotionEvent.html#obtain(long,%20long,%20int,%20float,%20float,%20float,%20float,%20int,%20float,%20float,%20int,%20int))