コード例 #1
0
        private void TriggerManagerOnChangedState(object sender, TriggerChangedStateEventArgs args)
        {
            var notification = new UILocalNotification
            {
                AlertAction = "Your beer is at the wrong temperature!",
                SoundName = UILocalNotification.DefaultSoundName
            };

            UIApplication.SharedApplication.PresentLocalNotificationNow(notification);
        }
コード例 #2
0
 void HandleTriggerChangedState(object sender, TriggerChangedStateEventArgs e)
 {
     if (e.Trigger.Identifier == TriggerId && e.Trigger.State)
     {
         Console.WriteLine("You forgot your bag!");
         var notification = new UILocalNotification();
         notification.AlertBody = "You forgot your bag!";
         UIApplication.SharedApplication.PresentLocalNotificationNow(notification);
     }
 }
コード例 #3
0
        private void TriggerManagerOnChangedState(object sender, TriggerChangedStateEventArgs args)
        {
            var notification = new UILocalNotification
            {
                AlertAction = "Your beer is at the wrong temperature!",
                SoundName   = UILocalNotification.DefaultSoundName
            };

            UIApplication.SharedApplication.PresentLocalNotificationNow(notification);
        }
コード例 #4
0
        void HandleTriggerChangedState(object sender, TriggerChangedStateEventArgs e)
        {
            if(e.Trigger.Identifier == TriggerId && e.Trigger.State)
            {
                Console.WriteLine("You forgot your bag!");
                var notification = new UILocalNotification();
                notification.AlertBody = "You forgot your bag!";
                UIApplication.SharedApplication.PresentLocalNotificationNow(notification);

            }
        }
コード例 #5
0
 void HandleTriggerChangedState(object sender, TriggerChangedStateEventArgs e)
 {
     LabelTime.Text = DateTime.Now.ToString("G");
 }
コード例 #6
0
 void HandleTriggerChangedState(object sender, TriggerChangedStateEventArgs e)
 {
     LabelTime.Text = DateTime.Now.ToString ("G");
 }