Xamarin.iOS.EmojiKeyboard 1.0.0

Xamarin.iOS Binding of AGEmojiKeyboard library https://github.com/ayushgoel/AGEmojiKeyboard by Giuseppe Novielli

Install-Package Xamarin.iOS.EmojiKeyboard -Version 1.0.0
dotnet add package Xamarin.iOS.EmojiKeyboard --version 1.0.0
<PackageReference Include="Xamarin.iOS.EmojiKeyboard" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Xamarin.iOS.EmojiKeyboard --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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

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

Release Notes

First Release

Dependencies

This package has no dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.0 105 3/11/2019