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 ButtonError_Click(object sender, System.EventArgs e) { PolishedToast.Error(this, "Error").Show(); }
private void ButtonDefault_Click(object sender, System.EventArgs e) { PolishedToast.Create(this, "Default").Show(); }
private void ButtonInfo_Click(object sender, System.EventArgs e) { PolishedToast.Info(this, "Info").Show(); }
private void ButtonSuccess_Click(object sender, System.EventArgs e) { PolishedToast.Success(this, "Success").Show(); }
private void ButtonWarning_Click(object sender, System.EventArgs e) { PolishedToast.Warning(this, "Warning", ToastLength.Long, false).Show(); }