Plugin.MAUI.TouchTracking 0.0.4

dotnet add package Plugin.MAUI.TouchTracking --version 0.0.4                
NuGet\Install-Package Plugin.MAUI.TouchTracking -Version 0.0.4                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Plugin.MAUI.TouchTracking" Version="0.0.4" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Plugin.MAUI.TouchTracking --version 0.0.4                
#r "nuget: Plugin.MAUI.TouchTracking, 0.0.4"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Plugin.MAUI.TouchTracking as a Cake Addin
#addin nuget:?package=Plugin.MAUI.TouchTracking&version=0.0.4

// Install Plugin.MAUI.TouchTracking as a Cake Tool
#tool nuget:?package=Plugin.MAUI.TouchTracking&version=0.0.4                

<img src="https://raw.githubusercontent.com/nor0x/TouchTracking.MAUI/main/Art/packageicon.png" width="320px" />

TouchTracking.MAUI 👆

.NET alternate text is missing from this package README image alternate text is missing from this package README image

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 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-ios17.2 is compatible.  net8.0-maccatalyst was computed.  net8.0-maccatalyst17.2 is compatible.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net8.0-windows10.0.19041 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.0.4 366 5/22/2024
0.0.3 109 5/22/2024
0.0.2 111 5/22/2024
0.0.1 105 5/22/2024