Esempio n. 1
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init ();

            App.Speech = new Speech ();
            LoadApplication (new App ());
            todoItems = App.TodoManager.All;

            if (UIDevice.CurrentDevice.CheckSystemVersion (9, 0)) {
                SpotlightSearch = new SpotlightSearch (todoItems);
            } else {
                throw new NotSupportedException ("CoreSpotlight not supported");
            }

            return base.FinishedLaunching (app, options);
        }
Esempio n. 2
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();

            App.Speech = new Speech();
            LoadApplication(new App());
            todoItems = App.TodoManager.All;

            if (UIDevice.CurrentDevice.CheckSystemVersion(9, 0))
            {
                SpotlightSearch = new SpotlightSearch(todoItems);
            }
            else
            {
                throw new NotSupportedException("CoreSpotlight not supported");
            }

            return(base.FinishedLaunching(app, options));
        }