public static ToastFluent MakeText(string text) { var toast = new ToastFluent(text); toast.MakeNewSetting(); return(toast); }
public void Show() { ToastFluent.MakeText(this.Text, this.Duration) .SetBgAlpha(new nfloat(this.BackgroundColor.A)) .SetBgRed(new nfloat(this.BackgroundColor.R)) .SetBgGreen(new nfloat(this.BackgroundColor.G)) .SetBgBlue(new nfloat(this.BackgroundColor.B)) .SetType(this.Type) .SetGravity(this.Gravity) .Show(ToastType.Info); }
public void Show() { try { var toast = new ToastFluent { Text = this.Text, Duration = this.Duration }; toast.Show(); } catch (Exception) { // ignored } }