Inheritance: IEnableLogger
Ejemplo n.º 1
0
 public override void OnCreate()
 {
     base.OnCreate();
                 
     suspendHelper = new AutoSuspendHelper(this);
     RxApp.SuspensionHost.CreateNewAppState = () => new AppBootstrapper();
     RxApp.SuspensionHost.SetupDefaultSuspendResume();
 }
Ejemplo n.º 2
0
        public AppDelegate()
        {
            // if you want to use a different Application Delegate class from "AppDelegate"
            // you can specify it here.
            RxApp.SuspensionHost.CreateNewAppState = () => new AppState();
            RxApp.SuspensionHost.SetupDefaultSuspendResume();

            autoSuspendHelper = new AutoSuspendHelper(this);
        }
Ejemplo n.º 3
0
        /// <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 += this.OnSuspending;
            autoSuspendHelper = new AutoSuspendHelper(this);

            RxApp.SuspensionHost.CreateNewAppState = () => new MainPageViewModel();
            RxApp.SuspensionHost.SetupDefaultSuspendResume();
        }
Ejemplo n.º 4
0
        /// <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 += this.OnSuspending;
            autoSuspendHelper = new AutoSuspendHelper(this);

            // Register Appbootstrapper itself, other register should put in Appbootstrapper
            IAppBootstrapper bootstrapper = new AppBootstrapper();
            Locator.CurrentMutable.RegisterConstant(bootstrapper, typeof(IAppBootstrapper));

            // you should handle the AppState by yourself
            RxApp.SuspensionHost.CreateNewAppState = () => bootstrapper;
            RxApp.SuspensionHost.SetupDefaultSuspendResume();
        }
Ejemplo n.º 5
0
        public AppDelegate()
        {

            RxApp.SuspensionHost.CreateNewAppState = () => new AppState();
            RxApp.SuspensionHost.SetupDefaultSuspendResume();


			MessageBar.MessageBarManager.SharedInstance.StyleSheet = new RenderMessageBarStyleSheet ();

#if DEBUG || ADHOC
            ServicePointManager.ServerCertificateValidationCallback += (sender, certificate, chain, errors) => true;
#endif

            autoSuspendHelper = new AutoSuspendHelper(this);
        }
Ejemplo n.º 6
0
        public override bool FinishedLaunching (UIApplication app, NSDictionary options)
        {
            Forms.Init ();
            RxApp.SuspensionHost.SetupDefaultSuspendResume();

            suspendHelper = new AutoSuspendHelper(this);
            suspendHelper.FinishedLaunching(app, options);

            window = new UIWindow (UIScreen.MainScreen.Bounds);
            var vc = RxApp.SuspensionHost.GetAppState<AppBootstrapper>().CreateMainView().CreateViewController();

            window.RootViewController = vc;
            window.MakeKeyAndVisible ();

            return true;
        }
		public override void OnCreate ()
		{
			base.OnCreate ();

			_autoSuspendHelper = new AutoSuspendHelper (this);

			// CoolStuff: The job of AutoSuspendHelper is, that it will 
			// automatically save and reload exactly *one* object of your 
			// choice when the app is suspended. If the object can't be
			// reloaded (i.e. if the app is starting for the first time),
			// we're telling ReactiveUI here how to create a new one from
			// scratch.
			RxApp.SuspensionHost.CreateNewAppState = () => new AppBootstrapper ();

			RxApp.SuspensionHost.SetupDefaultSuspendResume ();
		}
        /// <summary>
        /// Constructor for the Application object.
        /// </summary>
        public App()
        {
            // Global handler for uncaught exceptions.
            UnhandledException += Application_UnhandledException;

            // Standard XAML initialization
            InitializeComponent();

            // Phone-specific initialization
            InitializePhoneApplication();

            // Language display initialization
            InitializeLanguage();

            // Show graphics profiling information while debugging.
            if (Debugger.IsAttached)
            {
                // Display the current frame rate counters.
                Application.Current.Host.Settings.EnableFrameRateCounter = true;

                // Show the areas of the app that are being redrawn in each frame.
                //Application.Current.Host.Settings.EnableRedrawRegions = true;

                // Enable non-production analysis visualization mode,
                // which shows areas of a page that are handed off to GPU with a colored overlay.
                //Application.Current.Host.Settings.EnableCacheVisualization = true;

                // Prevent the screen from turning off while under the debugger by disabling the
                // application's idle detection.
                // Caution: - Use this under debug mode only. Application that disables user idle
                //          detection will continue to run and consume battery power when the user
                // is not using the phone.
                PhoneApplicationService.Current.UserIdleDetectionMode = IdleDetectionMode.Disabled;
            }

            this.autoSuspendHelper = new AutoSuspendHelper(this);
            RxApp.SuspensionHost.CreateNewAppState = () => new AppBootstrapper();

            RxApp.SuspensionHost.SetupDefaultSuspendResume();
        }
 public ObservableLifecycle(AutoSuspendHelper This)
 {
     this.This = This;
 }
Ejemplo n.º 10
0
		public AppDelegate()
		{
			suspendHelper = new AutoSuspendHelper(this);
		}
Ejemplo n.º 11
0
 public ObservableLifecycle(AutoSuspendHelper @this)
 {
     _this = @this;
 }
 public AndroidApplication(IntPtr handle, JniHandleOwnership transfer) : base(handle,transfer)
 {
     autoSuspendHelper = new AutoSuspendHelper(this);
 }
 public ObservableLifecycle(AutoSuspendHelper This)
 {
     this.This = This;
 }