Beispiel #1
0
		public override bool FinishedLaunching (UIApplication application, NSDictionary launchOptions)
		{
			var mainViewModel = new MainViewModel ();

			mainViewModel.RequestHomePage = OnRequestHomePage;
			mainViewModel.RequestOnboardingPage = OnRequestOnboardingPage;

			_lifecycleService.OnStart ();

			#if DEBUG
			Calabash.Start();
			#endif

            Insights.Initialize(Settings.XamarinInsightsApiKey);

			return true;
		}
Beispiel #2
0
        protected override async void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            SetContentView(Resource.Layout.SplashLayout);

            _mainLayout = FindViewById<RelativeLayout>(Resource.Id.SplashMainRelativeLayout);
            _appName = FindViewById<ImageView>(Resource.Id.SplashAppName);
            _whatAccounts = FindViewById<TextView>(Resource.Id.SplashWhatAccounts);
            _appNameLayout = FindViewById<RelativeLayout>(Resource.Id.SplashAppNameLayout);
            _facebookButton = FindViewById<Button>(Resource.Id.SplashFacebookButton);
            _twitterButton = FindViewById<Button>(Resource.Id.SplashTwitterButton);
            _goButton = FindViewById<Button>(Resource.Id.SplashGoButton);

            InitUi();

            _splashViewModel = new MainViewModel();
            _splashViewModel.RequestHomePage = OnRequestHomePage;
            _splashViewModel.RequestOnboardingPage = OnRequestOnboardingPage;
            _mainLayout.ViewTreeObserver.GlobalLayout += ViewTreeObserverOnGlobalLayout;
        }