/// <summary> /// Initializes the singleton application object. This is the first line of authored code /// executed, and as such is the logical equivalent of main() or WinMain(). /// </summary> public App() { this.InitializeComponent(); this.Suspending += OnSuspending; AppStart.Initialize(); }
protected override void OnCreate(Bundle bundle) { AppStart.Initialize(); base.OnCreate(bundle); SetContentView(Resource.Layout.Main); FindIds(); BindViewModel(); }
public override void OnCreate() { base.OnCreate(); CrossCurrentActivity.Current.Init(this); RegisterActivityLifecycleCallbacks(this); AppCenter.Start("2408931e-943c-41f9-9adf-d44fdcaa8206", typeof(Analytics), typeof(Crashes)); AppStart.Initialize(RegisterAndroidDependencies); }
protected override void OnLaunched(LaunchActivatedEventArgs e) { AppStart.Initialize(RegisterInnerDependencies); //#if DEBUG // if (System.Diagnostics.Debugger.IsAttached) // { // this.DebugSettings.EnableFrameRateCounter = true; // } //#endif Frame rootFrame = Window.Current.Content as Frame; if (rootFrame == null) { rootFrame = new Frame(); rootFrame.NavigationFailed += OnNavigationFailed; rootFrame.Navigated += OnNavigated; if (e.PreviousExecutionState == ApplicationExecutionState.Terminated) { } Window.Current.Content = rootFrame; SystemNavigationManager.GetForCurrentView().BackRequested += OnBackRequested; SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility = rootFrame.CanGoBack ? AppViewBackButtonVisibility.Visible : AppViewBackButtonVisibility.Collapsed; } if (e.PrelaunchActivated == false) { if (rootFrame.Content == null) { rootFrame.Navigate(typeof(LoginPage), e.Arguments); } Window.Current.Activate(); } SetWindowTitleColor(); }
protected void Application_Start() { AppStart.Initialize(); }