MonoTouch.UIKit.UIScreen Class
Information about the screen.
See Also: UIScreen
Syntax
[MonoTouch.Foundation.Register("UIScreen", true)]
public class UIScreen : NSObject, IUITraitEnvironment, IDisposable
public class UIScreen : NSObject, IUITraitEnvironment, IDisposable
Remarks
This class contains the bounding rectangle of the device's screen and, if the display is being mirrored to an external display, information about that screen.
The UIScreen.MainScreen singleton represent the device's physical screen. All of the currently-attached screens are available in the UIScreen.Screens static array: the UIScreen.MainScreen is always at index 0.
Related content
Requirements
Namespace: MonoTouch.UIKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0
The members of MonoTouch.UIKit.UIScreen are listed below.
See Also: NSObject
Public Constructors
UIScreen() | Default constructor that initializes a new instance of this class with no parameters. | |
A constructor that initializes the object from the data stored in the unarchiver object. | ||
Constructor to call on derived classes to skip initialization and merely allocate the object. | ||
A constructor used when creating managed representations of unmanaged objects; Called by the runtime. |
Public Properties
[read-only] | ApplicationFrame | RectangleF. The RectangleF for the Frame for the app window. Read-only. |
[read-only] | AvailableModes | UIScreenMode[]. The dislay modes supported by this UIScreen. Read-only. |
[read-only] | Bounds | RectangleF. The bounding RectangleF of the screen, in logical pixels. Read-only. |
Brightness | Single. The brightness level of this UIScreen. | |
[read-only] static | BrightnessDidChangeNotification | NSString. Notification constant for BrightnessDidChange |
[read-only] override | ClassHandle | IntPtr. The handle for this class. |
[read-only] | CoordinateSpace | IUICoordinateSpace. The specified coordinate space for the screen. |
CurrentMode | UIScreenMode. The active screen mode of this UIScreen. | |
[read-only] static | DidConnectNotification | NSString. Notification constant for DidConnect |
[read-only] static | DidDisconnectNotification | NSString. Notification constant for DidDisconnect |
[read-only] | FixedCoordinateSpace | IUICoordinateSpace. A fixed coordinate space for the screen. (read-only) |
[read-only] | FocusedItem | IUIFocusItem. |
[read-only] | FocusedView | UIView. Gets the view that has the focus. |
[read-only] static | MainScreen | UIScreen. The UIScreen representing the device's screen. |
[read-only] | MirroredScreen | UIScreen. The UIScreen that is being mirrored by an external display. Read-only. |
[read-only] static | ModeDidChangeNotification | NSString. Notification constant for ModeDidChange |
[read-only] | NativeBounds | RectangleF. Bounding rectangle for the screen, measured in pixels. |
[read-only] | NativeScale | Single. Physical screen native scale factor. |
OverscanCompensation | UIScreenOverscanCompensation. The technique used to compensate for overscan on an external screen. | |
[read-only] | OverscanCompensationInsets | UIEdgeInsets. Edge insets needed to avoid clipping. |
[read-only] | PreferredMode | UIScreenMode. The preferred display mode for this UIScreen. Read-only. |
[read-only] | Scale | Single. The natural scale factor of this UIScreen. Read-only. |
[read-only] static | Screens | UIScreen[]. All the screens attached the device. |
[read-only] | SupportsFocus | Boolean. Gets a Boolean value that controls whether the screen supports focus input. |
[read-only] | TraitCollection | UITraitCollection. Characteristics of the display, such as it's idiom, scale, and size class. |
WantsSoftwareDimming | Boolean. Whether this UIScreen can be dimmed lower than hardware capacity by software emulation. |
Public Methods
Capture()Captures a screenshot of the entire screen. | ||
CreateDisplayLink(NSAction)Registers a method to be invoked whenever the display screen needs to be updated. | ||
CreateDisplayLink(NSObject, Selector)Old-style registeration of a method to be invoked whenever the display screen needs to be updated. | ||
SnapshotView(Boolean)Creates a snapshot of the current screen's contents. | ||
TraitCollectionDidChange(UITraitCollection)Method invoked when the trait collection for the view controller changed. |