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                
#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                
  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 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.

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