Example #1
0
        public RealmDataStore()
        {
            // Setup offline database
            var config = new RealmConfiguration("ddr-track-starter.realm");

            realm = Realm.GetInstance(config);

            // Test local dummy data
            InitializeSongs();
            // Setup online config
            app = Realms.Sync.App.Create(Constants.RealmAppID);
        }
Example #2
0
 protected override void OnStart()
 {
     RealmApp = Realms.Sync.App.Create(appId);
     if (App.RealmApp.CurrentUser == null)
     {
         MainPage = new NavigationPage(new LoginPage());
     }
     else
     {
         MainPage = new NavigationPage(new ProjectPage());
     }
 }
Example #3
0
        public App()
        {
            InitializeComponent();

            // Register Services
            //
            //DependencyService.Register<MockDataStore>();

            // Create the RealmApp
            //
            RealmApp = Realms.Sync.App.Create(appId);

            MainPage = new AppShell();
        }
Example #4
0
 protected override void OnStart()
 {
     // :code-block-start:open-realm
     // :state-start: final
     RealmApp = Realms.Sync.App.Create(appId);
     //:state-end: :state-uncomment-start: start
     //// TODO: call Realms.Sync.App.Create()
     // :state-uncomment-end:
     // :code-block-end:
     if (App.RealmApp.CurrentUser == null)
     {
         MainPage = new NavigationPage(new LoginPage());
     }
     else
     {
         MainPage = new NavigationPage(new ProjectPage());
     }
 }