Skip to content

Instantly share code, notes, and snippets.

@jeevan-vj
Created February 24, 2018 14:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeevan-vj/5295db3704ec837d11fc2b92e680e691 to your computer and use it in GitHub Desktop.
Save jeevan-vj/5295db3704ec837d11fc2b92e680e691 to your computer and use it in GitHub Desktop.
ToastMessageService.cs
[assembly: Xamarin.Forms.Dependency(typeof(ToastMessageService))]
namespace ToastTestXamarin.Droid
{
public class ToastMessageService : IToastMessageService
{
public void ShowToastMessage(string message)
{
Toast.MakeText(Android.App.Application.Context, message, ToastLength.Long).Show();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment