Xam.CrossKeyboard
1.0.0
dotnet add package Xam.CrossKeyboard --version 1.0.0
NuGet\Install-Package Xam.CrossKeyboard -Version 1.0.0
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="Xam.CrossKeyboard" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Xam.CrossKeyboard --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Xam.CrossKeyboard, 1.0.0"
#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 Xam.CrossKeyboard as a Cake Addin #addin nuget:?package=Xam.CrossKeyboard&version=1.0.0 // Install Xam.CrossKeyboard as a Cake Tool #tool nuget:?package=Xam.CrossKeyboard&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
- Install nuget package
- Subscribe to
KeyboardStateChanged
event that is provided byXKeyboard.Current
and listen to triggered changes. This event sendsKeyboardStateEventArgs
as argument, which containsKeyboardEventType
and current visibleKeyboardHeight
.
KeyboardEventTypes can be: WillShow
, DidShow
, WillHide
, DidHide
.
Sample
XKeyboard.Current.KeyboardStateChanged += Current_KeyboardStateChanged;
private void Current_KeyboardStateChanged(object sender, KeyboardStateEventArgs e)
{
KeyboardHeight = e.KeyboardHeight.ToString();
KeyboardEventType = e.EventType.ToString();
}
For more detailed sample click here. Read full documentation here.
License
The MIT License (MIT). See License File
Product | Versions Compatible and additional computed target framework versions. |
---|---|
MonoAndroid | monoandroid90 is compatible. |
Xamarin.iOS | xamarinios10 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
All Frameworks
- Microsoft.NETCore.Portable.Compatibility (>= 1.0.1)
- NETStandard.Library (>= 2.0.3)
-
MonoAndroid 9.0
- Xamarin.Android.Arch.Core.Common (>= 1.1.1.1)
- Xamarin.Android.Arch.Core.Runtime (>= 1.1.1.1)
- Xamarin.Android.Arch.Lifecycle.Common (>= 1.1.1.1)
- Xamarin.Android.Arch.Lifecycle.LiveData (>= 1.1.1.1)
- Xamarin.Android.Arch.Lifecycle.LiveData.Core (>= 1.1.1.1)
- Xamarin.Android.Arch.Lifecycle.Runtime (>= 1.1.1.1)
- Xamarin.Android.Arch.Lifecycle.ViewModel (>= 1.1.1.1)
- Xamarin.Android.Support.Animated.Vector.Drawable (>= 28.0.0.1)
- Xamarin.Android.Support.Annotations (>= 28.0.0.1)
- Xamarin.Android.Support.AsyncLayoutInflater (>= 28.0.0.1)
- Xamarin.Android.Support.Collections (>= 28.0.0.1)
- Xamarin.Android.Support.Compat (>= 28.0.0.1)
- Xamarin.Android.Support.CoordinaterLayout (>= 28.0.0.1)
- Xamarin.Android.Support.Core.UI (>= 28.0.0.1)
- Xamarin.Android.Support.Core.Utils (>= 28.0.0.1)
- Xamarin.Android.Support.CursorAdapter (>= 28.0.0.1)
- Xamarin.Android.Support.CustomTabs (>= 28.0.0.1)
- Xamarin.Android.Support.CustomView (>= 28.0.0.1)
- Xamarin.Android.Support.Design (>= 28.0.0.1)
- Xamarin.Android.Support.DocumentFile (>= 28.0.0.1)
- Xamarin.Android.Support.DrawerLayout (>= 28.0.0.1)
- Xamarin.Android.Support.Fragment (>= 28.0.0.1)
- Xamarin.Android.Support.Interpolator (>= 28.0.0.1)
- Xamarin.Android.Support.Loader (>= 28.0.0.1)
- Xamarin.Android.Support.LocalBroadcastManager (>= 28.0.0.1)
- Xamarin.Android.Support.Media.Compat (>= 28.0.0.1)
- Xamarin.Android.Support.Print (>= 28.0.0.1)
- Xamarin.Android.Support.SlidingPaneLayout (>= 28.0.0.1)
- Xamarin.Android.Support.SwipeRefreshLayout (>= 28.0.0.1)
- Xamarin.Android.Support.Transition (>= 28.0.0.1)
- Xamarin.Android.Support.v4 (>= 28.0.0.1)
- Xamarin.Android.Support.v7.AppCompat (>= 28.0.0.1)
- Xamarin.Android.Support.v7.CardView (>= 28.0.0.1)
- Xamarin.Android.Support.v7.RecyclerView (>= 28.0.0.1)
- Xamarin.Android.Support.Vector.Drawable (>= 28.0.0.1)
- Xamarin.Android.Support.VersionedParcelable (>= 28.0.0.1)
- Xamarin.Android.Support.ViewPager (>= 28.0.0.1)
- Xamarin.Forms (>= 4.1.0.778454)
-
Xamarin.iOS 1.0
- No dependencies.
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 |
---|---|---|
1.0.0 | 626 | 11/25/2019 |