protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.Main);

            // Get our button from the layout resource,
            // and attach an event to it
            Button button = FindViewById <Button>(Resource.Id.MyButton);

            button.Click += delegate
            {
                var notifier = new LocalNotifier();
                notifier.Notify(new LocalNotification()
                {
                    Title      = "Title",
                    Text       = "Text",
                    NotifyTime = DateTime.Now.AddSeconds(10),
                });

                Toast.MakeText(Application.Context, "Notification will be triggered in a 10 seconds", ToastLength.Short).Show();
            };
        }
Example #2
0
 public LocalClient(IUserClient localUser)
     : base(localUser)
 {
     Notifier = new LocalNotifier();
 }