Xam.CrossKeyboard 1.0.0

Install-Package Xam.CrossKeyboard -Version 1.0.0
dotnet add package Xam.CrossKeyboard --version 1.0.0
<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, C# scripting and .NET Interactive. 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.
  1. Install nuget package
  2. Subscribe to KeyboardStateChanged event that is provided by XKeyboard.Current and listen to triggered changes. This event sends KeyboardStateEventArgs as argument, which contains KeyboardEventType and current visible KeyboardHeight.

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
MonoAndroid monoandroid90
Xamarin.iOS xamarinios10
Compatible target framework(s)
Additional computed target framework(s)
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
1.0.0 406 11/25/2019