Float.XFormsTouch
2.0.0.10
dotnet add package Float.XFormsTouch --version 2.0.0.10
NuGet\Install-Package Float.XFormsTouch -Version 2.0.0.10
<PackageReference Include="Float.XFormsTouch" Version="2.0.0.10" />
paket add Float.XFormsTouch --version 2.0.0.10
#r "nuget: Float.XFormsTouch, 2.0.0.10"
// Install Float.XFormsTouch as a Cake Addin
#addin nuget:?package=Float.XFormsTouch&version=2.0.0.10
// Install Float.XFormsTouch as a Cake Tool
#tool nuget:?package=Float.XFormsTouch&version=2.0.0.10
Float.XFormsTouch
This NuGet library provides touch event notifications for Android and iOS via Xamarin.Forms.Effect mechanism as shown in one of the xamarin samples.
The code is copied from https://github.com/xamarin/xamarin-forms-samples/tree/master/Effects/TouchTrackingEffect and adapted to be used as a separate library. Xamarin explains how it works at https://docs.microsoft.com/en-us/xamarin/xamarin-forms/app-fundamentals/effects/touch-tracking.
Original copyright is owned by Xamarin Inc (see LICENSE and NOTICE).
Example
public class App : Application
{
public App()
{
var label = new Label()
{
Text = "Touch Me",
Margin = new Thickness(20, 50),
};
var touchEffect = new TouchEffect();
touchEffect.TouchAction += (s, e) => label.Text = e.Type.ToString("f");
label.Effects.Add(touchEffect);
MainPage = new ContentPage()
{
Content = label
};
}
}
Building
This project can be built using Visual Studio for Mac or Cake. It is recommended that you build this project by invoking the boostrap script:
./build.sh
There are a number of optional arguments that can be provided to the bootstrapper that will be parsed and passed on to Cake itself. See the Cake build file in order to identify all supported parameters.
./build.sh \
--task=Build \
--projectName=Float.XFormsTouch \
--configuration=Debug \
--nugetUrl=https://nuget.org \
--nugetToken=####
License
All content in this repository is shared under an Apache 2.0 license. See license.md for details.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. monoandroid10.0 is compatible. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. xamarinios10 is compatible. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Xamarin.Forms (>= 5.0.0.1874)
-
MonoAndroid 10.0
- Xamarin.AndroidX.AppCompat (>= 1.2.0.5)
- Xamarin.Forms (>= 5.0.0.1874)
-
Xamarin.iOS 1.0
- Xamarin.Forms (>= 5.0.0.1874)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.