Package apple.uikit

Class UIScreen

    • Constructor Detail

      • UIScreen

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • alloc

        public static UIScreen alloc()
      • allocWithZone

        public static UIScreen allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • 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()
      • 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()
      • 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)
      • mainScreen

        @NotNull
        @Deprecated
        public static @NotNull UIScreen mainScreen()
        Deprecated.
        the device's internal screen API-Since: 2.0 Deprecated-Since: 100000.0 Deprecated-Message: Use a UIScreen instance found through context instead: i.e, view.window.windowScene.screen
      • new_objc

        public static UIScreen new_objc()
      • resolveClassMethod

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

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

        @NotNull
        @Deprecated
        public static @NotNull NSArray<? extends UIScreen> screens()
        Deprecated.
        all screens currently attached to the device API-Since: 3.2 Deprecated-Since: 16.0 Deprecated-Message: Use UIApplication.shared.openSessions to find open sessions with scenes from other screens
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

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

        public static long version_static()
      • applicationFrame

        @Deprecated
        public CGRect applicationFrame()
        Deprecated.
        API-Since: 2.0 Deprecated-Since: 9.0
      • availableModes

        @NotNull
        public @NotNull NSArray<? extends UIScreenMode> availableModes()
        The list of modes that this screen supports API-Since: 3.2
      • bounds

        public CGRect bounds()
        Bounds of entire screen in points
      • brightness

        public double brightness()
        0 .. 1.0, where 1.0 is maximum brightness. Only supported by main screen. API-Since: 5.0
      • coordinateSpace

        @NotNull
        public @NotNull UICoordinateSpace coordinateSpace()
        API-Since: 8.0
      • currentMode

        @Nullable
        public @Nullable UIScreenMode currentMode()
        Current mode of this screen API-Since: 3.2
      • displayLinkWithTargetSelector

        @Nullable
        public @Nullable CADisplayLink displayLinkWithTargetSelector​(@NotNull
                                                                     @NotNull java.lang.Object target,
                                                                     @NotNull
                                                                     @NotNull org.moe.natj.objc.SEL sel)
        API-Since: 4.0
      • fixedCoordinateSpace

        @NotNull
        public @NotNull UICoordinateSpace fixedCoordinateSpace()
        API-Since: 8.0
      • focusedItem

        @Nullable
        @Deprecated
        public @Nullable UIFocusItem focusedItem()
        Deprecated.
        API-Since: 10.0 Deprecated-Since: 15.0 Deprecated-Message: Use -[UIWindowScene focusSystem].focusedItem instead
      • focusedView

        @Nullable
        @Deprecated
        public @Nullable UIView focusedView()
        Deprecated.
        API-Since: 9.0 Deprecated-Since: 15.0 Deprecated-Message: Use -[UIWindowScene focusSystem].focusedItem instead
      • mirroredScreen

        @Nullable
        public @Nullable UIScreen mirroredScreen()
        The screen being mirrored by the receiver. nil if mirroring is disabled or unsupported. Moving a UIWindow to this screen will disable mirroring API-Since: 4.3
      • nativeBounds

        public CGRect nativeBounds()
        Native bounds of the physical screen in pixels API-Since: 8.0
      • nativeScale

        public double nativeScale()
        Native scale factor of the physical screen API-Since: 8.0
      • overscanCompensation

        public long overscanCompensation()
        Default is UIScreenOverscanCompensationScale. Determines how the screen behaves if the connected display is overscanning API-Since: 5.0
      • overscanCompensationInsets

        public UIEdgeInsets overscanCompensationInsets()
        The amount that should be inset to avoid clipping API-Since: 9.0
      • preferredMode

        @Nullable
        public @Nullable UIScreenMode preferredMode()
        Preferred mode of this screen. Choosing this mode will likely produce the best results API-Since: 4.3
      • scale

        public double scale()
        API-Since: 4.0
      • setBrightness

        public void setBrightness​(double value)
        0 .. 1.0, where 1.0 is maximum brightness. Only supported by main screen. API-Since: 5.0
      • setCurrentMode

        public void setCurrentMode​(@Nullable
                                   @Nullable UIScreenMode value)
        Current mode of this screen API-Since: 3.2
      • setOverscanCompensation

        public void setOverscanCompensation​(long value)
        Default is UIScreenOverscanCompensationScale. Determines how the screen behaves if the connected display is overscanning API-Since: 5.0
      • setWantsSoftwareDimming

        public void setWantsSoftwareDimming​(boolean value)
        Default is NO. If YES, brightness levels lower than that of which the hardware is capable are emulated in software, if necessary. Having enabled may entail performance cost. API-Since: 5.0
      • snapshotViewAfterScreenUpdates

        @NotNull
        public @NotNull UIView snapshotViewAfterScreenUpdates​(boolean afterUpdates)
        Please see snapshotViewAfterScreenUpdates: in UIView.h for some important details on the behavior of this method when called from layoutSubviews. API-Since: 7.0
      • supportsFocus

        @Deprecated
        public boolean supportsFocus()
        Deprecated.
        API-Since: 9.0 Deprecated-Since: 15.0 Deprecated-Message: Use -[UIWindowScene focusSystem] != nil instead
      • traitCollectionDidChange

        @Deprecated
        public void traitCollectionDidChange​(@Nullable
                                             @Nullable UITraitCollection previousTraitCollection)
        Deprecated.
        Description copied from interface: UITraitEnvironment
        To be overridden as needed to provide custom behavior when the environment's traits change. API-Since: 8.0 Deprecated-Since: 17.0 Deprecated-Message: Use the trait change registration APIs declared in the UITraitChangeObservable protocol
        Specified by:
        traitCollectionDidChange in interface UITraitEnvironment
      • wantsSoftwareDimming

        public boolean wantsSoftwareDimming()
        Default is NO. If YES, brightness levels lower than that of which the hardware is capable are emulated in software, if necessary. Having enabled may entail performance cost. API-Since: 5.0
      • isCaptured

        @Deprecated
        public boolean isCaptured()
        Deprecated.
        True if this screen is being captured (e.g. recorded, AirPlayed, mirrored, etc.) API-Since: 11.0 Deprecated-Since: 100000.0 Deprecated-Message: Use the sceneCaptureState in UITraitCollection instead.
      • maximumFramesPerSecond

        public long maximumFramesPerSecond()
        The maximumFramesPerSecond this screen is capable of API-Since: 10.3
      • calibratedLatency

        public double calibratedLatency()
        The latency of the display hardware associated with this screen. Can be used along with CoreAudio devices' kAudioDeviceLatencyProperty to achieve A/V sync when writing custom video playback software. Will be `0` if display latency has not been calibrated by the user. API-Since: 13.0
      • currentEDRHeadroom

        public double currentEDRHeadroom()
        Headroom is the ratio of the luminance of the brightest white the display can currently produce to the luminance of SDR white, in the display's native color space. The screen’s current headroom can change depending on the display configuration and whether it is currently displaying any EDR content. If any onscreen layer has `wantsExtendedDynamicRangeContent == YES` set, all rendered content is limited to the screen's currentEDRHeadroom value. API-Since: 16.0
      • potentialEDRHeadroom

        public double potentialEDRHeadroom()
        Returns the maximum potential EDR headroom the screen is capable of displaying when EDR is enabled, regardless of whether EDR is currently enabled. The potential EDR headroom may change depending on the display configuration. For example, this may change when referenceDisplayModeStatus changes. API-Since: 16.0
      • referenceDisplayModeStatus

        public long referenceDisplayModeStatus()
        API-Since: 16.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.