public void CookIt(string message, MyToastLength length) { var context = GetContext(); var toastLength = (length == MyToastLength.Long) ? ToastLength.Long : ToastLength.Short; Toast.MakeText(context, message, toastLength).Show(); }
public void CookIt(string message, MyToastLength length) { var xmdock = CreateToast(message); var toast = new ToastNotification(xmdock); // Next show the toast using ToastNotificationManager class. var notifi = Windows.UI.Notifications.ToastNotificationManager.CreateToastNotifier(); notifi.Show(toast); }
public void CookIt(string message, MyToastLength length) { var toastLength = (length == MyToastLength.Long) ? LONG_DELAY : SHORT_DELAY; alertDelay = NSTimer.CreateRepeatingScheduledTimer(toastLength, (obj) => { MesajReddet(); }); alert = UIAlertController.Create(null, message, UIAlertControllerStyle.Alert); UIApplication.SharedApplication.KeyWindow.RootViewController.PresentViewController(alert, true, null); }