Plugin.MAUI.TouchTracking
0.0.5
dotnet add package Plugin.MAUI.TouchTracking --version 0.0.5
NuGet\Install-Package Plugin.MAUI.TouchTracking -Version 0.0.5
<PackageReference Include="Plugin.MAUI.TouchTracking" Version="0.0.5" />
paket add Plugin.MAUI.TouchTracking --version 0.0.5
#r "nuget: Plugin.MAUI.TouchTracking, 0.0.5"
// Install Plugin.MAUI.TouchTracking as a Cake Addin #addin nuget:?package=Plugin.MAUI.TouchTracking&version=0.0.5 // Install Plugin.MAUI.TouchTracking as a Cake Tool #tool nuget:?package=Plugin.MAUI.TouchTracking&version=0.0.5
<img src="https://raw.githubusercontent.com/nor0x/TouchTracking.MAUI/main/Art/packageicon.png" width="320px" />
TouchTracking.MAUI 👆
TouchTracking provides unified API for multi-touch gestures in .NET MAUI. It is a hard-fork of TouchTracking.Forms upgraded to .NET MAUI - it has a similar API and functionality as the original library.
Usage
Install the Plugin.MAUI.TouchTracking NuGet package.
Add TouchTrackingBehavior to your view in XAML:
xmlns:tt="clr-namespace:TouchTracking;assembly=TouchTracking.MAUI"
<Image.Behaviors>
<tt:TouchTrackingBehavior TouchAction="OnTouchAction" />
</Image.Behaviors>
TouchAction with TouchActionEventArgs will be called on every touch event:
void OnTouchAction(object sender, TouchActionEventArgs args)
{
Status.Text = $"Capture: {MyTouchBehavior.Capture}, " +
$"Id: {args.Id}, " +
$"Touch: {args.Type}, " +
$"Location: {args.Location.X}, {args.Location.Y}, " +
$"IsInContact: {args.IsInContact}, ";
}
not finalized yet
please note that the API is not finalized yet and might change in the future. Currently it should be easy to upgrade from the original package - I will most likely add some new features in the future. If you have any suggestions or feature requests, feel free to open an issue or a pull request.
Credits
TouchTracking.MAUI is hard-forked from TouchTrack.Forms in SkiaScene. Credits to the original author and contributors.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-android34.0 is compatible. net8.0-browser was computed. net8.0-ios was computed. net8.0-ios18.0 is compatible. net8.0-maccatalyst was computed. net8.0-maccatalyst18.0 is compatible. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net8.0-windows10.0.19041 is compatible. |
-
net8.0
- Microsoft.Maui.Controls (>= 8.0.83)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.83)
-
net8.0-android34.0
- Microsoft.Maui.Controls (>= 8.0.83)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.83)
-
net8.0-ios18.0
- Microsoft.Maui.Controls (>= 8.0.83)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.83)
-
net8.0-maccatalyst18.0
- Microsoft.Maui.Controls (>= 8.0.83)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.83)
-
net8.0-windows10.0.19041
- Microsoft.Maui.Controls (>= 8.0.83)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.83)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.