/// <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); } }
public override void DidFinishLaunching(Foundation.NSNotification notification) { MvxMacSetupSingleton.EnsureSingletonAvailable(this, MainWindow).EnsureInitialized(); RunAppStart(notification); FireLifetimeChanged(MvxLifetimeEvent.Launching); }
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(); }
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); }
// 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(); }
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(); }
public virtual override void WillUnhide(Foundation.NSNotification notification) { }
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(); }
public override void WillClose(Foundation.NSNotification notification) { m_main.ChangeVisibility(false); }
// 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); }
public override void WillClose(Foundation.NSNotification notification) { _controller.DoClose(); }
public override void DidResignActive(Foundation.NSNotification notification) { FireLifetimeChanged(MvxLifetimeEvent.Deactivated); }
public override void DidFinishLaunching(Foundation.NSNotification notification) { FireLifetimeChanged(MvxLifetimeEvent.Launching); base.DidFinishLaunching(notification); }
public override void SelectionDidChange(Foundation.NSNotification notification) { //_controller.RuleTableSelectionChanged (); }
public virtual override void DidResignActive(Foundation.NSNotification notification) { }
public virtual override void DidUpdate(Foundation.NSNotification notification) { }
public override void DidDeminiaturize(Foundation.NSNotification notification) { m_main.EnabledUI(); }
public override void ScreenParametersChanged(Foundation.NSNotification notification) { }
public virtual override void DidBecomeActive(Foundation.NSNotification notification) { }
public override void WillBecomeActive(Foundation.NSNotification notification) { FireLifetimeChanged(MvxLifetimeEvent.ActivatedFromMemory); }
public override void DidUnhide(Foundation.NSNotification notification) { }
public override void WillTerminate(Foundation.NSNotification notification) { FireLifetimeChanged(MvxLifetimeEvent.Closing); }
public override void DidFinishLaunching(Foundation.NSNotification notification) { }