Refresh a view from AppDelegate class

jaymannjaymann Member ✭✭

Hi

I read in this forum that for Xamarin iOS it is possible to access the visible view controller from the AppDelegate .

I need to refresh the view from the AppDelegate class. Is it possible to accomplish something similar for Mac?

This is how its done for iOS:

var window= UIApplication.SharedApplication.KeyWindow;
var vc = window.RootViewController;
if (vc.PresentedViewController != null) {
    vc = vc.PresentedViewController;
}
Tagged:
Sign In or Register to comment.