public class UIScreen extends NSObject implements UITraitEnvironment
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
UIScreen(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
static UIScreen |
alloc() |
static UIScreen |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
CGRect |
applicationFrame()
Deprecated.
|
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
NSArray<? extends UIScreenMode> |
availableModes()
The list of modes that this screen supports
|
CGRect |
bounds()
Bounds of entire screen in points
|
double |
brightness()
0 ..
|
double |
calibratedLatency()
The latency of the display hardware associated with this screen.
|
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
UICoordinateSpace |
coordinateSpace() |
UIScreenMode |
currentMode()
Current mode of this screen
|
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
CADisplayLink |
displayLinkWithTargetSelector(java.lang.Object target,
org.moe.natj.objc.SEL sel) |
UICoordinateSpace |
fixedCoordinateSpace() |
UIFocusItem |
focusedItem() |
UIView |
focusedView() |
static long |
hash_static() |
UIScreen |
init() |
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
boolean |
isCaptured()
True if this screen is being captured (e.g.
|
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
static UIScreen |
mainScreen()
the device's internal screen
|
long |
maximumFramesPerSecond()
The maximumFramesPerSecond this screen is capable of
|
UIScreen |
mirroredScreen()
The screen being mirrored by the receiver.
|
CGRect |
nativeBounds()
Native bounds of the physical screen in pixels
|
double |
nativeScale()
Native scale factor of the physical screen
|
static UIScreen |
new_objc() |
long |
overscanCompensation()
Default is UIScreenOverscanCompensationScale.
|
UIEdgeInsets |
overscanCompensationInsets()
The amount that should be inset to avoid clipping
|
UIScreenMode |
preferredMode()
Preferred mode of this screen.
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
double |
scale() |
static NSArray<? extends UIScreen> |
screens()
all screens currently attached to the device
|
void |
setBrightness(double value)
0 ..
|
void |
setCurrentMode(UIScreenMode value)
Current mode of this screen
|
void |
setOverscanCompensation(long value)
Default is UIScreenOverscanCompensationScale.
|
static void |
setVersion_static(long aVersion) |
void |
setWantsSoftwareDimming(boolean value)
Default is NO.
|
UIView |
snapshotViewAfterScreenUpdates(boolean afterUpdates)
Please see snapshotViewAfterScreenUpdates: in UIView.h for some important details on the behavior of this method when called from layoutSubviews.
|
static org.moe.natj.objc.Class |
superclass_static() |
boolean |
supportsFocus() |
UITraitCollection |
traitCollection() |
void |
traitCollectionDidChange(UITraitCollection previousTraitCollection)
To be overridden as needed to provide custom behavior when the environment's traits change.
|
static long |
version_static() |
boolean |
wantsSoftwareDimming()
Default is NO.
|
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public static UIScreen alloc()
public static UIScreen allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static long hash_static()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static UIScreen mainScreen()
public static UIScreen new_objc()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static NSArray<? extends UIScreen> screens()
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static long version_static()
@Deprecated public CGRect applicationFrame()
public NSArray<? extends UIScreenMode> availableModes()
public CGRect bounds()
public double brightness()
public UICoordinateSpace coordinateSpace()
public UIScreenMode currentMode()
public CADisplayLink displayLinkWithTargetSelector(java.lang.Object target, org.moe.natj.objc.SEL sel)
public UICoordinateSpace fixedCoordinateSpace()
public UIFocusItem focusedItem()
public UIView focusedView()
public UIScreen mirroredScreen()
public CGRect nativeBounds()
public double nativeScale()
public long overscanCompensation()
public UIEdgeInsets overscanCompensationInsets()
public UIScreenMode preferredMode()
public double scale()
public void setBrightness(double value)
public void setCurrentMode(UIScreenMode value)
public void setOverscanCompensation(long value)
public void setWantsSoftwareDimming(boolean value)
public UIView snapshotViewAfterScreenUpdates(boolean afterUpdates)
public boolean supportsFocus()
public UITraitCollection traitCollection()
traitCollection in interface UITraitEnvironmentpublic void traitCollectionDidChange(UITraitCollection previousTraitCollection)
UITraitEnvironmenttraitCollectionDidChange in interface UITraitEnvironmentpublic boolean wantsSoftwareDimming()
public boolean isCaptured()
public long maximumFramesPerSecond()
public double calibratedLatency()