Exemple #1
0
        public void Show(string Message, ToastType type)
        {
            switch (type)
            {
            case ToastType.Default:
                PolishedToast.Create(Android.App.Application.Context, Message).Show();
                break;

            case ToastType.Error:
                PolishedToast.Error(Android.App.Application.Context, Message).Show();
                break;

            case ToastType.Info:
                PolishedToast.Info(Android.App.Application.Context, Message).Show();
                break;

            case ToastType.Success:
                PolishedToast.Success(Android.App.Application.Context, Message).Show();
                break;

            case ToastType.Warning:
                PolishedToast.Warning(Android.App.Application.Context, Message).Show();
                break;
            }
        }
 private void ButtonInfo_Click(object sender, System.EventArgs e)
 {
     PolishedToast.Info(this, "Info").Show();
 }