Class UIScreen

    • Method Detail

      • getScreens

        public static NSArray<UIScreen> getScreens()
        Since:
        Available in iOS 3.2 and later.
      • getMainScreen

        public static UIScreen getMainScreen()
      • getBounds

        public CGRect getBounds()
      • getScale

        public double getScale()
        Since:
        Available in iOS 4.0 and later.
      • getAvailableModes

        public NSArray<UIScreenMode> getAvailableModes()
        Since:
        Available in iOS 3.2 and later.
      • getPreferredMode

        public UIScreenMode getPreferredMode()
        Since:
        Available in iOS 4.3 and later.
      • getCurrentMode

        public UIScreenMode getCurrentMode()
        Since:
        Available in iOS 3.2 and later.
      • setCurrentMode

        public void setCurrentMode​(UIScreenMode v)
        Since:
        Available in iOS 3.2 and later.
      • getOverscanCompensationInsets

        public UIEdgeInsets getOverscanCompensationInsets()
        Since:
        Available in iOS 9.0 and later.
      • getMirroredScreen

        public UIScreen getMirroredScreen()
        Since:
        Available in iOS 4.3 and later.
      • isCaptured

        public boolean isCaptured()
        Since:
        Available in iOS 11.0 and later.
      • getBrightness

        public double getBrightness()
        Since:
        Available in iOS 5.0 and later.
      • setBrightness

        public void setBrightness​(double v)
        Since:
        Available in iOS 5.0 and later.
      • wantsSoftwareDimming

        public boolean wantsSoftwareDimming()
        Since:
        Available in iOS 5.0 and later.
      • setWantsSoftwareDimming

        public void setWantsSoftwareDimming​(boolean v)
        Since:
        Available in iOS 5.0 and later.
      • getCoordinateSpace

        public UICoordinateSpace getCoordinateSpace()
        Since:
        Available in iOS 8.0 and later.
      • getFixedCoordinateSpace

        public UICoordinateSpace getFixedCoordinateSpace()
        Since:
        Available in iOS 8.0 and later.
      • getNativeBounds

        public CGRect getNativeBounds()
        Since:
        Available in iOS 8.0 and later.
      • getNativeScale

        public double getNativeScale()
        Since:
        Available in iOS 8.0 and later.
      • getMaximumFramesPerSecond

        public long getMaximumFramesPerSecond()
        Since:
        Available in iOS 10.3 and later.
      • getFocusedItem

        public UIFocusItem getFocusedItem()
        Since:
        Available in iOS 10.0 and later.
      • getFocusedView

        public UIView getFocusedView()
        Since:
        Available in iOS 9.0 and later.
      • supportsFocus

        public boolean supportsFocus()
        Since:
        Available in iOS 9.0 and later.
      • getApplicationFrame

        @Deprecated
        public CGRect getApplicationFrame()
        Deprecated.
        Deprecated in iOS 9.0. Use -[UIScreen bounds]
        Since:
        Available in iOS 2.0 and later.
      • DidConnectNotification

        public static NSString DidConnectNotification()
        Since:
        Available in iOS 3.2 and later.
      • DidDisconnectNotification

        public static NSString DidDisconnectNotification()
        Since:
        Available in iOS 3.2 and later.
      • ModeDidChangeNotification

        public static NSString ModeDidChangeNotification()
        Since:
        Available in iOS 3.2 and later.
      • BrightnessDidChangeNotification

        public static NSString BrightnessDidChangeNotification()
        Since:
        Available in iOS 5.0 and later.
      • CapturedDidChangeNotification

        public static NSString CapturedDidChangeNotification()
        Since:
        Available in iOS 11.0 and later.
      • getDisplayLink

        public CADisplayLink getDisplayLink​(NSObject target,
                                            org.robovm.objc.Selector sel)
        Since:
        Available in iOS 4.0 and later.
      • snapshotView

        public UIView snapshotView​(boolean afterUpdates)
        Since:
        Available in iOS 7.0 and later.