Ejemplo 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);
        }
Ejemplo 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));
        }