iOS Guides | Samples

MonoTouch.UIKit.UIScreen Class

Information about the screen.

See Also: UIScreen

Syntax

[MonoTouch.Foundation.Register("UIScreen", true)]
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

The members of MonoTouch.UIKit.UIScreen are listed below.

See Also: NSObject

Public Constructors

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]
ApplicationFrameRectangleF. The RectangleF for the Frame for the app window. Read-only.
[read-only]
AvailableModesUIScreenMode[]. The dislay modes supported by this UIScreen. Read-only.
[read-only]
BoundsRectangleF. The bounding RectangleF of the screen, in logical pixels. Read-only.
BrightnessSingle. The brightness level of this UIScreen.
[read-only]
static
BrightnessDidChangeNotificationNSString. Notification constant for BrightnessDidChange
[read-only]
override
ClassHandleIntPtr. The handle for this class.
[read-only]
CoordinateSpaceIUICoordinateSpace. The specified coordinate space for the screen.
CurrentModeUIScreenMode. The active screen mode of this UIScreen.
[read-only]
static
DidConnectNotificationNSString. Notification constant for DidConnect
[read-only]
static
DidDisconnectNotificationNSString. Notification constant for DidDisconnect
[read-only]
FixedCoordinateSpaceIUICoordinateSpace. A fixed coordinate space for the screen. (read-only)
[read-only]
FocusedItemIUIFocusItem.
[read-only]
FocusedViewUIView. Gets the view that has the focus.
[read-only]
static
MainScreenUIScreen. The UIScreen representing the device's screen.
[read-only]
MirroredScreenUIScreen. The UIScreen that is being mirrored by an external display. Read-only.
[read-only]
static
ModeDidChangeNotificationNSString. Notification constant for ModeDidChange
[read-only]
NativeBoundsRectangleF. Bounding rectangle for the screen, measured in pixels.
[read-only]
NativeScaleSingle. Physical screen native scale factor.
OverscanCompensationUIScreenOverscanCompensation. The technique used to compensate for overscan on an external screen.
[read-only]
OverscanCompensationInsetsUIEdgeInsets. Edge insets needed to avoid clipping.
[read-only]
PreferredModeUIScreenMode. The preferred display mode for this UIScreen. Read-only.
[read-only]
ScaleSingle. The natural scale factor of this UIScreen. Read-only.
[read-only]
static
ScreensUIScreen[]. All the screens attached the device.
[read-only]
SupportsFocusBoolean. Gets a Boolean value that controls whether the screen supports focus input.
[read-only]
TraitCollectionUITraitCollection. Characteristics of the display, such as it's idiom, scale, and size class.
WantsSoftwareDimmingBoolean. Whether this UIScreen can be dimmed lower than hardware capacity by software emulation.

Public Methods

Capture() : UIImage
Captures a screenshot of the entire screen.
CreateDisplayLink(NSAction) : CADisplayLink
Registers a method to be invoked whenever the display screen needs to be updated.
CreateDisplayLink(NSObject, Selector) : CADisplayLink
Old-style registeration of a method to be invoked whenever the display screen needs to be updated.
SnapshotView(Boolean) : UIView
Creates a snapshot of the current screen's contents.
TraitCollectionDidChange(UITraitCollection)
Method invoked when the trait collection for the view controller changed.

Protected Methods

override
Dispose(Boolean)
Releases the resources used by the UIScreen object.