Package org.robovm.apple.uikit
Class UIScreen
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.uikit.UIScreen
-
- All Implemented Interfaces:
NSObjectProtocol
,UITraitEnvironment
,org.robovm.objc.ObjCProtocol
public class UIScreen extends NSObject implements UITraitEnvironment
- Since:
- Available in iOS 2.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UIScreen.Notifications
static class
UIScreen.UIScreenPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description UIScreen()
protected
UIScreen(NSObject.Handle h, long handle)
protected
UIScreen(NSObject.SkipInit skipInit)
-
Method Summary
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValues
-
-
-
-
Constructor Detail
-
UIScreen
public UIScreen()
-
UIScreen
protected UIScreen(NSObject.Handle h, long handle)
-
UIScreen
protected UIScreen(NSObject.SkipInit skipInit)
-
-
Method Detail
-
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.
-
getOverscanCompensation
public UIScreenOverscanCompensation getOverscanCompensation()
- Since:
- Available in iOS 5.0 and later.
-
setOverscanCompensation
public void setOverscanCompensation(UIScreenOverscanCompensation v)
- Since:
- Available in iOS 5.0 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.
-
getTraitCollection
public UITraitCollection getTraitCollection()
- Specified by:
getTraitCollection
in interfaceUITraitEnvironment
- Since:
- Available in iOS 8.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.
-
traitCollectionDidChange
public void traitCollectionDidChange(UITraitCollection previousTraitCollection)
- Specified by:
traitCollectionDidChange
in interfaceUITraitEnvironment
- Since:
- Available in iOS 8.0 and later.
-
-