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 java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

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

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

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

        public static 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

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • mainScreen

        public static UIScreen mainScreen()
        the device's internal screen
      • new_objc

        public static java.lang.Object 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

        public static NSArray<? extends UIScreen> screens()
        all screens currently attached to the device
      • 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.
      • availableModes

        public NSArray<? extends UIScreenMode> availableModes()
        The list of modes that this screen supports
      • 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.
      • currentMode

        public UIScreenMode currentMode()
        Current mode of this screen
      • displayLinkWithTargetSelector

        public CADisplayLink displayLinkWithTargetSelector​(java.lang.Object target,
                                                           org.moe.natj.objc.SEL sel)
      • focusedItem

        public UIFocusItem focusedItem()
        Returns the focused item for this screen's focus system. Use UIFocusSystem's focusedItem property instead – this property will be deprecated in a future release.
      • focusedView

        public UIView focusedView()
        If focusedItem is not a view, this returns that item's containing view. Otherwise they are equal. Use UIFocusSystem's focusedItem property instead – this property will be deprecated in a future release.
      • mirroredScreen

        public 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
      • nativeBounds

        public CGRect nativeBounds()
        Native bounds of the physical screen in pixels
      • nativeScale

        public double nativeScale()
        Native scale factor of the physical screen
      • overscanCompensation

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

        public UIEdgeInsets overscanCompensationInsets()
        The amount that should be inset to avoid clipping
      • preferredMode

        public UIScreenMode preferredMode()
        Preferred mode of this screen. Choosing this mode will likely produce the best results
      • scale

        public double scale()
      • setBrightness

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

        public void setCurrentMode​(UIScreenMode value)
        Current mode of this screen
      • setOverscanCompensation

        public void setOverscanCompensation​(long value)
        Default is UIScreenOverscanCompensationScale. Determines how the screen behaves if the connected display is overscanning
      • 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 neccessary. Having enabled may entail performance cost.
      • snapshotViewAfterScreenUpdates

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

        public boolean supportsFocus()
      • 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 neccessary. Having enabled may entail performance cost.
      • isCaptured

        public boolean isCaptured()
        True if this screen is being captured (e.g. recorded, AirPlayed, mirrored, etc.)
      • maximumFramesPerSecond

        public long maximumFramesPerSecond()
        The maximumFramesPerSecond this screen is capable of
      • 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.