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