Xamarin.iOS.EmojiKeyboard
1.0.0
dotnet add package Xamarin.iOS.EmojiKeyboard --version 1.0.0
NuGet\Install-Package Xamarin.iOS.EmojiKeyboard -Version 1.0.0
<PackageReference Include="Xamarin.iOS.EmojiKeyboard" Version="1.0.0" />
paket add Xamarin.iOS.EmojiKeyboard --version 1.0.0
#r "nuget: Xamarin.iOS.EmojiKeyboard, 1.0.0"
// Install Xamarin.iOS.EmojiKeyboard as a Cake Addin #addin nuget:?package=Xamarin.iOS.EmojiKeyboard&version=1.0.0 // Install Xamarin.iOS.EmojiKeyboard as a Cake Tool #tool nuget:?package=Xamarin.iOS.EmojiKeyboard&version=1.0.0
Xamarin.iOS-EmojKeyboard
Xamarin.iOS Binding of AGEmojiKeyboard library https://github.com/ayushgoel/AGEmojiKeyboard by Giuseppe Novielli
Inizialize EmojiKeyboard
using XamAGEmojiKeyboard;
namespace Example.iOS {
public partial class EmojiKeyboardViewController : UIViewController { ..... AGEmojiKeyboardView _emojiView; .......
public override void ViewDidLoad()
{
base.ViewDidLoad();
......
var cgRect = new CGRect(0,0, View.Frame.Size.Width, 216);
//Inizialize KeyboardEmoji with DataSource
_emojiView = new AGEmojiKeyboardView(cgRect, new EmojiKeyDataSource());
_emojiView.AutoresizingMask = UIViewAutoresizing.FlexibleHeight;
//Inizialize Delegate
var emojiDelegate = new EmojiKeyDelegate();
emojiDelegate.OnEmojiSelected += EmojiDelegate_OnEmojiSelected;
emojiDelegate.OnEmojiDeleted += EmojiDelegate_OnEmojiDeleted;
//Set Delegate
_emojiView.Delegate = emojiDelegate;
.......
}
}
}
DataSource Class
using XamAGEmojiKeyboard;
namespace Example.iOS { public class EmojiKeyDataSource : AGEmojiKeyboardViewDataSource { public EmojiKeyDataSource() { }
public override UIImage BackSpaceButtonImageForEmojiKeyboardView(AGEmojiKeyboardView emojiKeyboardView)
{
//Return UIImage
}
public override UIImage EmojiKeyboardView(AGEmojiKeyboardView emojiKeyboardView, AGEmojiKeyboardViewCategoryImage category)
{
//Return UIImage
}
public override UIImage EmojiKeyboardViewNonSelected(AGEmojiKeyboardView emojiKeyboardView, AGEmojiKeyboardViewCategoryImage category)
{
//Return UIImage
}
}
}
Delegate Class
using XamAGEmojiKeyboard;
namespace Example.iOS { public class EmojiKeyDelegate : AGEmojiKeyboardViewDelegate { public event EventHandler<string> OnEmojiSelected; public event EventHandler OnEmojiDeleted;
public EmojiKeyDelegate()
{
}
public override void EmojiKeyBoardView(AGEmojiKeyboardView emojiKeyBoardView, string emoji)
{
OnEmojiSelected?.Invoke(emojiKeyBoardView, emoji);
}
public override void EmojiKeyBoardViewDidPressBackSpace(AGEmojiKeyboardView emojiKeyBoardView)
{
OnEmojiDeleted?.Invoke(emojiKeyBoardView, EventArgs.Empty);
}
}
More Documentation Available https://github.com/ayushgoel/AGEmojiKeyboard
Product | Versions Compatible and additional computed target framework versions. |
---|---|
Xamarin.iOS | xamarinios is compatible. |
This package has 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 | 917 | 3/11/2019 |
First Release