Package apple.uikit

Class UIWindow

    • Constructor Detail

      • UIWindow

        protected UIWindow​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • alloc

        public static UIWindow alloc()
      • allocWithZone

        public static UIWindow allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • appearance

        @NotNull
        public static @NotNull UIWindow appearance()
      • appearanceForTraitCollection

        @NotNull
        public static @NotNull UIWindow appearanceForTraitCollection​(@NotNull
                                                                     @NotNull UITraitCollection trait)
      • appearanceForTraitCollectionWhenContainedIn

        @NotNull
        @Deprecated
        public static @NotNull UIWindow appearanceForTraitCollectionWhenContainedIn​(@NotNull
                                                                                    @NotNull UITraitCollection trait,
                                                                                    @Nullable
                                                                                    @Nullable UIAppearanceContainer ContainerClass,
                                                                                    java.lang.Object... varargs)
        Deprecated.
      • appearanceForTraitCollectionWhenContainedInInstancesOfClasses

        @NotNull
        public static @NotNull UIWindow appearanceForTraitCollectionWhenContainedInInstancesOfClasses​(@NotNull
                                                                                                      @NotNull UITraitCollection trait,
                                                                                                      @NotNull
                                                                                                      @NotNull NSArray<?> containerTypes)
      • appearanceWhenContainedIn

        @NotNull
        @Deprecated
        public static @NotNull UIWindow appearanceWhenContainedIn​(@Nullable
                                                                  @Nullable UIAppearanceContainer ContainerClass,
                                                                  java.lang.Object... varargs)
        Deprecated.
      • appearanceWhenContainedInInstancesOfClasses

        @NotNull
        public static @NotNull UIWindow appearanceWhenContainedInInstancesOfClasses​(@NotNull
                                                                                    @NotNull NSArray<?> containerTypes)
      • areAnimationsEnabled

        public static boolean areAnimationsEnabled()
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • beginAnimationsContext

        @Deprecated
        public static void beginAnimationsContext​(@Nullable
                                                  @Nullable java.lang.String animationID,
                                                  @Nullable
                                                  @Nullable org.moe.natj.general.ptr.VoidPtr context)
        Deprecated.
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • clearTextInputContextIdentifier

        public static void clearTextInputContextIdentifier​(@NotNull
                                                           @NotNull java.lang.String identifier)
      • commitAnimations

        @Deprecated
        public static void commitAnimations()
        Deprecated.
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • inheritedAnimationDuration

        public static double inheritedAnimationDuration()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • layerClass

        @NotNull
        public static @NotNull org.moe.natj.objc.Class layerClass()
      • new_objc

        public static UIWindow new_objc()
      • requiresConstraintBasedLayout

        public static boolean requiresConstraintBasedLayout()
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setAnimationBeginsFromCurrentState

        @Deprecated
        public static void setAnimationBeginsFromCurrentState​(boolean fromCurrentState)
        Deprecated.
      • setAnimationCurve

        @Deprecated
        public static void setAnimationCurve​(long curve)
        Deprecated.
      • setAnimationDelay

        @Deprecated
        public static void setAnimationDelay​(double delay)
        Deprecated.
      • setAnimationDelegate

        @Deprecated
        public static void setAnimationDelegate​(@Nullable
                                                @Nullable java.lang.Object delegate)
        Deprecated.
      • setAnimationDidStopSelector

        @Deprecated
        public static void setAnimationDidStopSelector​(@Nullable
                                                       @Nullable org.moe.natj.objc.SEL selector)
        Deprecated.
      • setAnimationDuration_static

        @Deprecated
        public static void setAnimationDuration_static​(double duration)
        Deprecated.
      • setAnimationRepeatAutoreverses

        @Deprecated
        public static void setAnimationRepeatAutoreverses​(boolean repeatAutoreverses)
        Deprecated.
      • setAnimationRepeatCount_static

        @Deprecated
        public static void setAnimationRepeatCount_static​(float repeatCount)
        Deprecated.
      • setAnimationStartDate

        @Deprecated
        public static void setAnimationStartDate​(@NotNull
                                                 @NotNull NSDate startDate)
        Deprecated.
      • setAnimationTransitionForViewCache

        @Deprecated
        public static void setAnimationTransitionForViewCache​(long transition,
                                                              @NotNull
                                                              @NotNull UIView view,
                                                              boolean cache)
        Deprecated.
      • setAnimationWillStartSelector

        @Deprecated
        public static void setAnimationWillStartSelector​(@Nullable
                                                         @Nullable org.moe.natj.objc.SEL selector)
        Deprecated.
      • setAnimationsEnabled

        public static void setAnimationsEnabled​(boolean enabled)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • userInterfaceLayoutDirectionForSemanticContentAttribute

        public static long userInterfaceLayoutDirectionForSemanticContentAttribute​(long attribute)
      • userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection

        public static long userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection​(long semanticContentAttribute,
                                                                                                            long layoutDirection)
      • version_static

        public static long version_static()
      • _appearance

        @NotNull
        public @NotNull UIWindow _appearance()
        Description copied from interface: UIAppearance
        To customize the appearance of all instances of a class, send the relevant appearance modification messages to the appearance proxy for the class. For example, to modify the bar tint color for all UINavigationBar instances: [[UINavigationBar appearance] setBarTintColor:myColor]; Note for iOS7: On iOS7 the tintColor property has moved to UIView, and now has special inherited behavior described in UIView.h. This inherited behavior can conflict with the appearance proxy, and therefore tintColor is now disallowed with the appearance proxy.
        Specified by:
        _appearance in interface UIAppearance
        Overrides:
        _appearance in class UIView
      • _appearanceWhenContainedIn

        @NotNull
        @Deprecated
        public @NotNull UIWindow _appearanceWhenContainedIn​(@Nullable
                                                            @Nullable UIAppearanceContainer ContainerClass,
                                                            java.lang.Object... varargs)
        Deprecated.
        Description copied from interface: UIAppearance
        To customize the appearances for instances of a class contained within an instance of a container class, or instances in a hierarchy, use +appearanceWhenContainedInInstancesOfClasses: for the appropriate appearance proxy. For example: [[UINavigationBar appearanceWhenContainedInInstancesOfClasses:@[[UISplitViewController class]]] setBarTintColor:myColor]; [[UINavigationBar appearanceWhenContainedInInstancesOfClasses:@[[UITabBarController class], [UISplitViewController class]]] setBarTintColor:myTabbedNavBarColor]; In any given view hierarchy the outermost appearance proxy wins. Specificity (depth of the chain) is the tie-breaker. In other words, the containment statement is treated as a partial ordering. Given a concrete ordering (actual subview hierarchy), we select the partial ordering that is the first unique match when reading the actual hierarchy from the window down. API-Since: 5.0 Deprecated-Since: 9.0
        Specified by:
        _appearanceWhenContainedIn in interface UIAppearance
        Overrides:
        _appearanceWhenContainedIn in class UIView
      • becomeKeyWindow

        public void becomeKeyWindow()
        Override point for subclasses. Do not call directly. Informs the window it has become the key window. In apps built against the iOS 15 or tvOS 15 SDK (or later), this method will be called when the window becomes its scene's key window. For apps built against earlier SDKs, this method will be called when the window becomes the application's key window.
      • convertPointFromWindow

        public CGPoint convertPointFromWindow​(CGPoint point,
                                              @Nullable
                                              @Nullable UIWindow window)
        pass in nil to mean screen
      • convertPointToWindow

        public CGPoint convertPointToWindow​(CGPoint point,
                                            @Nullable
                                            @Nullable UIWindow window)
        can be used to convert to another window
      • convertRectFromWindow

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

        public CGRect convertRectToWindow​(CGRect rect,
                                          @Nullable
                                          @Nullable UIWindow window)
      • isKeyWindow

        public boolean isKeyWindow()
        In apps built against the iOS 15 or tvOS 15 SDK (or later), this property returns YES if the window is its scene's key window. For apps built against earlier SDKs, this property returns YES if the window is the application's key window.
      • makeKeyAndVisible

        public void makeKeyAndVisible()
        Convenience. Most apps call this to show a window and also make it key. To make the window visible without becoming key, just use UIView's hidden property.
      • makeKeyWindow

        public void makeKeyWindow()
        Make the window key without changing visibility.
      • resignKeyWindow

        public void resignKeyWindow()
        Override point for subclasses. Do not call directly. Informs the window it has resigned key window status. In apps built against the iOS 15 or tvOS 15 SDK (or later), this method will be called when the window resigns key in its scene. For apps built against earlier SDKs, this method will be called when the window resigns key in the application.
      • rootViewController

        @Nullable
        public @Nullable UIViewController rootViewController()
        default is nil API-Since: 4.0
      • screen

        @NotNull
        public @NotNull UIScreen screen()
        default is [UIScreen mainScreen]. changing the screen may be an expensive operation and should not be done in performance-sensitive code API-Since: 3.2
      • sendEvent

        public void sendEvent​(@NotNull
                              @NotNull UIEvent event)
        called by UIApplication to dispatch events to views inside the window
      • setRootViewController

        public void setRootViewController​(@Nullable
                                          @Nullable UIViewController value)
        default is nil API-Since: 4.0
      • setScreen

        @Deprecated
        public void setScreen​(@NotNull
                              @NotNull UIScreen screen)
        Deprecated.
        API-Since: 3.2 Deprecated-Since: 13.0
      • setWindowLevel

        public void setWindowLevel​(double value)
        default = 0.0
      • windowLevel

        public double windowLevel()
        default = 0.0
      • canResizeToFitContent

        public boolean canResizeToFitContent()
        Indicates whether content should drive the size of arbitrarily resizable windows (which are currently present only on macOS).
      • initWithWindowScene

        public UIWindow initWithWindowScene​(@NotNull
                                            @NotNull UIWindowScene windowScene)
        instantiate a UIWindow already associated with a given UIWindowScene instance, with matching frame & interface orientations. API-Since: 13.0
      • setCanResizeToFitContent

        public void setCanResizeToFitContent​(boolean value)
        Indicates whether content should drive the size of arbitrarily resizable windows (which are currently present only on macOS).
      • setWindowScene_unsafe

        public void setWindowScene_unsafe​(@Nullable
                                          @Nullable UIWindowScene value)
        If nil, window will not appear on any screen. changing the UIWindowScene may be an expensive operation and should not be done in performance-sensitive code API-Since: 13.0
      • setWindowScene

        public void setWindowScene​(@Nullable
                                   @Nullable UIWindowScene value)
        If nil, window will not appear on any screen. changing the UIWindowScene may be an expensive operation and should not be done in performance-sensitive code API-Since: 13.0
      • windowScene

        @Nullable
        public @Nullable UIWindowScene windowScene()
        If nil, window will not appear on any screen. changing the UIWindowScene may be an expensive operation and should not be done in performance-sensitive code API-Since: 13.0
      • canBecomeKeyWindow

        public boolean canBecomeKeyWindow()
        Default is YES. Return NO to indicate the window cannot become the key window. API-Since: 15.0
      • safeAreaAspectFitLayoutGuide

        @NotNull
        public @NotNull UILayoutGuide safeAreaAspectFitLayoutGuide()
        This layout guide is designed specifically for full-screen media content, and attaching constraints from deep in the window's view hierarchy will raise an exception. This guide provides a layout area for placing media content of a given aspect ratio (width over height) such that the content will be completely visible within the window. Compared to the standard `safeAreaLayoutGuide` on a view, this guide takes into account the aspect ratio of the content, allowing it the maximum size within the window's true safe area, including the actual shape of the screen when that is the only factor contributing to the safe area. The rect defined by this guide will be centered within the window. This layout guide should only be used for fixed aspect ratio content that is intended to fill the window (such as image or video content) and is not a replacement for the standard `safeAreaLayoutGuide` on each UIView which should be used for most content layout. The `safeAreaAspectFitLayoutGuide` should only be used with views that are direct subviews of, or very close descendants of, the guide's window. Creating constraints from this layout guide to views deeper in the view hierarchy or across views owned by child view controllers can significantly degrade performance and possibly raise an exception. Additionally, the safe area insets added by child view controllers will not be reflected in these cases. For anything other than full-screen/window media content, the standard `safeAreaLayoutGuide` on UIView should be used. API-Since: 16.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.