20 references to WindowStateManager
Microsoft.Maui (1)
Platform\iOS\ApplicationExtensions.cs (1)
151 var currentViewController = WindowStateManager.Default.GetCurrentUIViewController(false);
Microsoft.Maui.Essentials (19)
AppInfo\AppInfo.ios.tvos.watchos.macos.cs (2)
58 MainThread.InvokeOnMainThread(() => WindowStateManager.Default.GetCurrentUIViewController()?.TraitCollection) ?? 103 var currentWindow = WindowStateManager.Default.GetCurrentUIWindow(false);
Browser\Browser.ios.cs (1)
36 var vc = WindowStateManager.Default.GetCurrentUIViewController(true)!;
Contacts\Contacts.ios.macos.cs (1)
21 var vc = WindowStateManager.Default.GetCurrentUIViewController(true);
Email\Email.ios.cs (1)
37 var parentController = WindowStateManager.Default.GetCurrentUIViewController(true);
FilePicker\FilePicker.ios.cs (1)
49 var parentController = WindowStateManager.Default.GetCurrentUIViewController(true);
MediaPicker\MediaPicker.ios.cs (1)
69 var vc = WindowStateManager.Default.GetCurrentUIViewController(true);
Permissions\Permissions.ios.tvos.macos.cs (1)
43 WindowStateManager.Default.GetCurrentUIViewController());
Platform\Platform.shared.cs (4)
116 /// Initializes the <see cref="WindowStateManager"/> for the given <see cref="UIKit.UIViewController"/>. 120 WindowStateManager.Default.Init(getCurrentUIViewController); 123 /// Gets the current view controller through the <see cref="WindowStateManager"/>. 128 WindowStateManager.Default.GetCurrentUIViewController(true);
Screenshot\Screenshot.ios.cs (1)
23 var currentWindow = WindowStateManager.Default.GetCurrentUIWindow();
Share\Share.ios.cs (2)
36 var vc = WindowStateManager.Default.GetCurrentUIViewController(true); 72 var vc = WindowStateManager.Default.GetCurrentUIViewController();
Sms\Sms.ios.cs (1)
23 var controller = WindowStateManager.Default.GetCurrentUIViewController(true);
WebAuthenticator\AppleSignInAuthenticator.ios.cs (1)
26 authManager = new AuthManager(WindowStateManager.Default.GetCurrentUIWindow(true));
WebAuthenticator\WebAuthenticator.ios.tvos.cs (2)
92 var ctx = new ContextProvider(WindowStateManager.Default.GetCurrentUIWindow()); 140 await WindowStateManager.Default.GetCurrentUIViewController().PresentViewControllerAsync(controller, true);