Exemplo n.º 1
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {

            var defaults = NSUserDefaults.StandardUserDefaults;
            const string key = "LaunchedBeforeKey";
            if (!defaults.BoolForKey(key))
            {
                // First launch
                defaults.SetBool(true, key);
                defaults.Synchronize();

                // Create localDb tables
                var localDb = new LocalDB();
                localDb.CreateTables();
            }

            return true;
        }