Class UIWindow

All Implemented Interfaces:
CALayerDelegate, NSCoding, NSObjectProtocol, UIAccessibilityIdentification, UIActivityItemsConfigurationProviding, UIAppearanceContainer, UICoordinateSpace, UIDynamicItem, UIFocusEnvironment, UIFocusItem, UIFocusItemContainer, UILargeContentViewerItem, UIPasteConfigurationSupporting, UIResponderStandardEditActions, UITraitEnvironment, UIUserActivityRestoring, ObjCProtocol
Direct Known Subclasses:
CPWindow

public class UIWindow
extends UIView
  • Constructor Details

    • UIWindow

      public UIWindow()
    • UIWindow

      protected UIWindow​(NSObject.Handle h, long handle)
    • UIWindow

      protected UIWindow​(NSObject.SkipInit skipInit)
    • UIWindow

      public UIWindow​(UIWindowScene windowScene)
      Since:
      Available in iOS 13.0 and later.
    • UIWindow

      public UIWindow​(CGRect frame)
    • UIWindow

      public UIWindow​(NSCoder coder)
  • Method Details

    • getWindowScene

      public UIWindowScene getWindowScene()
      Since:
      Available in iOS 13.0 and later.
    • setWindowScene

      public void setWindowScene​(UIWindowScene v)
      Since:
      Available in iOS 13.0 and later.
    • canResizeToFitContent

      public boolean canResizeToFitContent()
    • setCanResizeToFitContent

      public void setCanResizeToFitContent​(boolean v)
    • getScreen

      public UIScreen getScreen()
    • setScreen

      public void setScreen​(UIScreen v)
    • getWindowLevel

      public double getWindowLevel()
    • setWindowLevel

      public void setWindowLevel​(double v)
    • isKeyWindow

      public boolean isKeyWindow()
    • canBecomeKeyWindow

      public boolean canBecomeKeyWindow()
      Since:
      Available in iOS 15.0 and later.
    • getRootViewController

      public UIViewController getRootViewController()
    • setRootViewController

      public void setRootViewController​(UIViewController v)
    • getLayerClass

      public static Class<? extends CALayer> getLayerClass()
    • DidBecomeVisibleNotification

      public static NSString DidBecomeVisibleNotification()
    • DidBecomeHiddenNotification

      public static NSString DidBecomeHiddenNotification()
    • DidBecomeKeyNotification

      public static NSString DidBecomeKeyNotification()
    • DidResignKeyNotification

      public static NSString DidResignKeyNotification()
    • KeyboardWillShowNotification

      public static NSString KeyboardWillShowNotification()
    • KeyboardDidShowNotification

      public static NSString KeyboardDidShowNotification()
    • KeyboardWillHideNotification

      public static NSString KeyboardWillHideNotification()
    • KeyboardDidHideNotification

      public static NSString KeyboardDidHideNotification()
    • KeyboardWillChangeFrameNotification

      public static NSString KeyboardWillChangeFrameNotification()
    • KeyboardDidChangeFrameNotification

      public static NSString KeyboardDidChangeFrameNotification()
    • init

      protected long init​(UIWindowScene windowScene)
      Since:
      Available in iOS 13.0 and later.
    • becomeKeyWindow

      public void becomeKeyWindow()
    • resignKeyWindow

      public void resignKeyWindow()
    • makeKeyWindow

      public void makeKeyWindow()
    • makeKeyAndVisible

      public void makeKeyAndVisible()
    • sendEvent

      public void sendEvent​(UIEvent event)
    • convertPointToWindow

      public CGPoint convertPointToWindow​(CGPoint point, UIWindow window)
    • convertPointFromWindow

      public CGPoint convertPointFromWindow​(CGPoint point, UIWindow window)
    • convertRectToWindow

      public CGRect convertRectToWindow​(CGRect rect, UIWindow window)
    • convertRectFromWindow

      public CGRect convertRectFromWindow​(CGRect rect, UIWindow window)
    • getUserInterfaceLayoutDirection

      public static UIUserInterfaceLayoutDirection getUserInterfaceLayoutDirection​(UISemanticContentAttribute attribute)
      Since:
      Available in iOS 9.0 and later.
    • getUserInterfaceLayoutDirection

      public static UIUserInterfaceLayoutDirection getUserInterfaceLayoutDirection​(UISemanticContentAttribute semanticContentAttribute, UIUserInterfaceLayoutDirection layoutDirection)
      Since:
      Available in iOS 10.0 and later.