Xamarin Touch Tracking (for Drawing With Skiasharp)
Solution 1:
I really hate to answer my own questions but by accident i found out, that SkiaSharp actually supports everything we need. Which is pretty amazing, since after my google research i found out EVERYBODY is looking for it and it seemed only MR Gestures does support what i was looking for. To the point: SKCanvasView has a Touch event with arguments (object, SKTouchEventArgs). those event args provide everything you need to draw on the surface, position, type of action (pressed, released, exited, entered, cancelled, ...) but please notice: you need to enable the handling with setting 'Handled' true, if not the event args will return just Pressed. Also you have to enable the Touch Input when creating the SKCanvasView.
Someone should add this to the page provided in the previous answer.
Solution 2:
So are there cross-platform solutions for touch drawing?
You could refer to this artical : Invoking Events from Effects.
- Implement low-level multi-touch finger tracking in Xamarin.Forms controls.
Related sample : Touch-Tracking Effect Demos
- This sample demonstrates an effect that implements multi-touch finger tracking, and shows how to trigger events from an effect.
Post a Comment for "Xamarin Touch Tracking (for Drawing With Skiasharp)"