コード例 #1
0
        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();
        }
コード例 #2
0
ファイル: ToastService.cs プロジェクト: girish66/XamStart
        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);
        }
コード例 #3
0
ファイル: ToastService.cs プロジェクト: girish66/XamStart
        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);
        }