/// <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);
     }
 }
Exemplo n.º 2
0
        public override void DidFinishLaunching(Foundation.NSNotification notification)
        {
            MvxMacSetupSingleton.EnsureSingletonAvailable(this, MainWindow).EnsureInitialized();
            RunAppStart(notification);

            FireLifetimeChanged(MvxLifetimeEvent.Launching);
        }
Exemplo n.º 3
0
 public override void SelectionDidChange(Foundation.NSNotification notification)
 {
     if (_callback != null)
     {
         _callback.SelectionDidChange();
     }
 }
Exemplo n.º 4
0
 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;
        }
Exemplo n.º 6
0
 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();
        }
Exemplo n.º 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);
        }
Exemplo n.º 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();
        }
Exemplo n.º 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();
        }
Exemplo n.º 12
0
 public virtual override void WillUnhide(Foundation.NSNotification notification)
 {
 }
Exemplo n.º 13
0
 public virtual override void WillTerminate(Foundation.NSNotification notification)
 {
 }
 public override void SelectionDidChange(Foundation.NSNotification notification)
 {
     _controller.PreviewTableSelectionChanged();
 }
Exemplo n.º 15
0
 public override void SelectionDidChange(Foundation.NSNotification notification)
 {
     m_main.EnableIde();
 }
Exemplo n.º 16
0
 public override void WillClose(Foundation.NSNotification notification)
 {
     m_main.ChangeVisibility(false);
 }
Exemplo n.º 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);
 }
Exemplo n.º 18
0
 public override void WillClose(Foundation.NSNotification notification)
 {
     _controller.DoClose();
 }
Exemplo n.º 19
0
 public override void DidResignActive(Foundation.NSNotification notification)
 {
     FireLifetimeChanged(MvxLifetimeEvent.Deactivated);
 }
Exemplo n.º 20
0
 public override void DidFinishLaunching(Foundation.NSNotification notification)
 {
     FireLifetimeChanged(MvxLifetimeEvent.Launching);
     base.DidFinishLaunching(notification);
 }
Exemplo n.º 21
0
 public override void SelectionDidChange(Foundation.NSNotification notification)
 {
     //_controller.RuleTableSelectionChanged ();
 }
Exemplo n.º 22
0
 public virtual override void DidResignActive(Foundation.NSNotification notification)
 {
 }
Exemplo n.º 23
0
 public virtual override void DidUpdate(Foundation.NSNotification notification)
 {
 }
Exemplo n.º 24
0
 public override void DidDeminiaturize(Foundation.NSNotification notification)
 {
     m_main.EnabledUI();
 }
Exemplo n.º 25
0
 public override void ScreenParametersChanged(Foundation.NSNotification notification)
 {
 }
Exemplo n.º 26
0
 public virtual override void DidBecomeActive(Foundation.NSNotification notification)
 {
 }
Exemplo n.º 27
0
 public override void WillBecomeActive(Foundation.NSNotification notification)
 {
     FireLifetimeChanged(MvxLifetimeEvent.ActivatedFromMemory);
 }
Exemplo n.º 28
0
 public override void DidUnhide(Foundation.NSNotification notification)
 {
 }
Exemplo n.º 29
0
 public override void WillTerminate(Foundation.NSNotification notification)
 {
     FireLifetimeChanged(MvxLifetimeEvent.Closing);
 }
Exemplo n.º 30
0
 public override void DidFinishLaunching(Foundation.NSNotification notification)
 {
 }