Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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