/// <summary>
 /// The method to call when the app becomes in focus again.  We check to see if the user has updated their contacts access
 /// and pop this view controller if they have.
 /// </summary>
 /// <param name="notification">Notification.</param>
 public void checkAuthStatus(Foundation.NSNotification notification)
 {
     if (AppDelegate.Self.checkContactsAuth())
     {
         this.NavigationController.PopViewController(true);
     }
 }
Beispiel #2
0
        public override void DidFinishLaunching(Foundation.NSNotification notification)
        {
            MvxMacSetupSingleton.EnsureSingletonAvailable(this, MainWindow).EnsureInitialized();
            RunAppStart(notification);

            FireLifetimeChanged(MvxLifetimeEvent.Launching);
        }
Beispiel #3
0
 public override void SelectionDidChange(Foundation.NSNotification notification)
 {
     if (_callback != null)
     {
         _callback.SelectionDidChange();
     }
 }
 public override void DidResignActive(Foundation.NSNotification notification)
 {
     // applicationWillResignActive
     if (_application == null)
     {
         return;
     }
     _isSuspended = true;
     _application.SendSleep();
 }
        private void keyboardWillShow(Foundation.NSNotification aNotification)
        {
            Foundation.NSDictionary info   = aNotification.UserInfo;
            CoreGraphics.CGSize     kbSize = (info.ObjectForKey(UIKeyboard.FrameBeginUserInfoKey) as Foundation.NSValue).RectangleFValue.Size;

            UIEdgeInsets contentInsets = new UIEdgeInsets(this._tableView.ContentInset.Top, 0.0, kbSize.Height, 0);

            this._tableView.ContentInset          = contentInsets;
            this._tableView.ScrollIndicatorInsets = contentInsets;
        }
 public override void DidBecomeActive(Foundation.NSNotification notification)
 {
     // applicationDidBecomeActive
     // execute any OpenGL ES drawing calls
     if (_application == null || !_isSuspended)
     {
         return;
     }
     _isSuspended = false;
     _application.SendResume();
 }
        private void keyboardWillHide(Foundation.NSNotification aNotificition)
        {
            UIView.BeginAnimations(null);
            UIView.SetAnimationDuration(0.35);
            UIEdgeInsets constentInsets = new UIEdgeInsets(this._tableView.ContentInset.Top, 0.0, 0.0, 0.0);

            this._tableView.ContentInset          = constentInsets;
            this._tableView.ScrollIndicatorInsets = constentInsets;

            UIView.CommitAnimations();
        }
Beispiel #8
0
        public override void DidFinishLaunching(Foundation.NSNotification notification)
        {
            var instance = MvxMacSetupSingleton.EnsureSingletonAvailable(this, MainWindow);

            instance.EnsureInitialized();

            RunAppStart(notification);

            instance.PlatformSetup <MvxFormsMacSetup>().FormsApplication.SendStart();
            FireLifetimeChanged(MvxLifetimeEvent.Launching);
            base.DidFinishLaunching(notification);
        }
Beispiel #9
0
        // The app is terminating
        void AppWillTerminate(Foundation.NSNotification notification)
        {
            Console.WriteLine("Received a notification UIApplication: " + notification);

            // Deregister from any/all notifications.
            Foundation.NSNotificationCenter.DefaultCenter.RemoveObserver(this);

            // Set the VidyoConnector to nil so it is garbage collected
            vc = null;

            // Uninitialize VidyoClient library.
            // This should be called only once throughout the lifetime of the app.
            ConnectorPKG.Uninitialize();
        }
Beispiel #10
0
        public override void DidFinishLaunching(Foundation.NSNotification notification)
        {
            var instance = MvxMacSetupSingleton.EnsureSingletonAvailable(this, MainWindow);

            instance.EnsureInitialized();

            RunAppStart(notification);

            instance.PlatformSetup <MvxFormsMacSetup>().FormsApplication.SendStart();
            FireLifetimeChanged(MvxLifetimeEvent.Launching);

            // Unlike most other overrides, this should be left here so that the base FormsApplicationDelegate override is called
            base.DidFinishLaunching(notification);
        }
        public override void DidFinishLaunching(Foundation.NSNotification notification)
        {
            if (MainWindow == null)
            {
                throw new InvalidOperationException("Please provide a main window in your app");
            }

            MainWindow.Display();
            MainWindow.MakeKeyAndOrderFront(NSApplication.SharedApplication);
            if (_application == null)
            {
                throw new InvalidOperationException("You MUST invoke LoadApplication () before calling base.FinishedLaunching ()");
            }

            SetMainPage();
            _application.SendStart();
        }
Beispiel #12
0
 public virtual override void WillUnhide(Foundation.NSNotification notification)
 {
 }
Beispiel #13
0
 public virtual override void WillTerminate(Foundation.NSNotification notification)
 {
 }
 public override void SelectionDidChange(Foundation.NSNotification notification)
 {
     _controller.PreviewTableSelectionChanged();
 }
 public override void SelectionDidChange(Foundation.NSNotification notification)
 {
     m_main.EnableIde();
 }
Beispiel #16
0
 public override void WillClose(Foundation.NSNotification notification)
 {
     m_main.ChangeVisibility(false);
 }
Beispiel #17
0
 // The app is about to enter into the foreground
 void AppWillEnterForeground(Foundation.NSNotification notification)
 {
     Console.WriteLine("Received a notification UIApplication: " + notification);
     vc.SetMode(Connector.ConnectorMode.ConnectormodeForeground);
 }
Beispiel #18
0
 public override void WillClose(Foundation.NSNotification notification)
 {
     _controller.DoClose();
 }
Beispiel #19
0
 public override void DidResignActive(Foundation.NSNotification notification)
 {
     FireLifetimeChanged(MvxLifetimeEvent.Deactivated);
 }
Beispiel #20
0
 public override void DidFinishLaunching(Foundation.NSNotification notification)
 {
     FireLifetimeChanged(MvxLifetimeEvent.Launching);
     base.DidFinishLaunching(notification);
 }
Beispiel #21
0
 public override void SelectionDidChange(Foundation.NSNotification notification)
 {
     //_controller.RuleTableSelectionChanged ();
 }
Beispiel #22
0
 public virtual override void DidResignActive(Foundation.NSNotification notification)
 {
 }
Beispiel #23
0
 public virtual override void DidUpdate(Foundation.NSNotification notification)
 {
 }
Beispiel #24
0
 public override void DidDeminiaturize(Foundation.NSNotification notification)
 {
     m_main.EnabledUI();
 }
Beispiel #25
0
 public override void ScreenParametersChanged(Foundation.NSNotification notification)
 {
 }
Beispiel #26
0
 public virtual override void DidBecomeActive(Foundation.NSNotification notification)
 {
 }
Beispiel #27
0
 public override void WillBecomeActive(Foundation.NSNotification notification)
 {
     FireLifetimeChanged(MvxLifetimeEvent.ActivatedFromMemory);
 }
Beispiel #28
0
 public override void DidUnhide(Foundation.NSNotification notification)
 {
 }
Beispiel #29
0
 public override void WillTerminate(Foundation.NSNotification notification)
 {
     FireLifetimeChanged(MvxLifetimeEvent.Closing);
 }
Beispiel #30
0
 public override void DidFinishLaunching(Foundation.NSNotification notification)
 {
 }