iOS Guides | Samples

MonoTouch.UIKit.UIWindow Class

Windows are the main container for views in a CocoaTouch application.

See Also: UIWindow

Syntax

[MonoTouch.Foundation.Register("UIWindow", true)]
public class UIWindow : UIView

Related content

Requirements

Namespace: MonoTouch.UIKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0

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

See Also: UIView

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.
Initializes the UIWindow with the specified frame.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Fields

const
LevelAlertSingle (100). Returned by UIWindow.WindowLevel if this UIWindow is an alert window.
const
LevelNormalSingle (0). Returned by UIWindow.WindowLevel if this UIWindow is a normal window.
const
LevelStatusBarSingle (1000). Returned by UIWindow.WindowLevel if this UIWindow is status bar.

Public Properties

[read-only]
static
AppearanceUIWindow+UIWindowAppearance. Strongly-typed property that returns the UIAppearance class for this class.
[read-only]
override
ClassHandleIntPtr. The handle for this class.
[read-only]
static
DidBecomeHiddenNotificationNSString. Notification constant for DidBecomeHidden
[read-only]
static
DidBecomeKeyNotificationNSString. Notification constant for DidBecomeKey
[read-only]
static
DidBecomeVisibleNotificationNSString. Notification constant for DidBecomeVisible
[read-only]
static
DidResignKeyNotificationNSString. Notification constant for DidResignKey
[read-only]
IsKeyWindowBoolean. Whether this UIWindow is the key window for the app.
[read-only]
static
KeyboardDidChangeFrameNotificationNSString. Notification constant for KeyboardDidChangeFrame
[read-only]
static
KeyboardWillChangeFrameNotificationNSString. Notification constant for KeyboardWillChangeFrame
RootViewControllerUIViewController. The top-level UIViewController for this UIWindow.
ScreenUIScreen. The UIScreen on which this UIWindow is being displayed.
WindowLevelSingle. The layer group (i.e., Alert, Status Bar, or Normal) to which this UIWindow belongs.

Public Methods

static
AppearanceWhenContainedIn(params Type[]) : UIWindow+UIWindowAppearance
Returns a strongly typed UIAppearance for instances of this class when the view is hosted in the specified hierarchy.
BecomeKeyWindow()
Application developers should not call this method, which is called by the system when the UIWindow become the key window.
ConvertPointFromWindow(PointF, UIWindow) : PointF
Converts a PointF from the coordinate system of a given window into this UIWindow's coordinate system.
ConvertPointToWindow(PointF, UIWindow) : PointF
Converts a PointF from the coordinate system of this UIWindow into the coordinate system of another UIWindow.
ConvertRectFromWindow(RectangleF, UIWindow) : RectangleF
Converts a RectangleF from the coordinate system of another window into the coordinate system of this UIWindow.
ConvertRectToWindow(RectangleF, UIWindow) : RectangleF
Converts a RectangleF from the coordinate system of this UIWindow into the coordinate system of another UIWindow.
static
GetAppearance(UITraitCollection) : UIWindow+UIWindowAppearance
Returns an appearance proxy for the specified traits.
static
GetAppearance(UITraitCollection, params Type[]) : UIWindow+UIWindowAppearance
Returns an appearance proxy for the specified traits when found in the containers containment hierarchy.
static
GetAppearance<T>() : UIWindow+UIWindowAppearance
Obtains the appearance proxy UIWindowAppearance for the subclass of UIWindow.
static
GetAppearance<T>(UITraitCollection) : UIWindow+UIWindowAppearance
Obtains the appearance proxy UIWindowAppearance for the subclass of UIWindow.
static
GetAppearance<T>(UITraitCollection, params Type[]) : UIWindow+UIWindowAppearance
Obtains the appearance proxy UIWindowAppearance for the subclass of UIWindow that has the specified trait collection when the view is hosted in the specified hierarchy.
MakeKeyAndVisible()
Makes this UIWindow the key window for the application and makes it visible. (Often the last method called from UIApplicationDelegate.FinishedLaunching.)
MakeKeyWindow()
Makes this UIWindow the key window.
ResignKeyWindow()
App developers must not call this method, which is called by the system when the UIWindow resigns its status as key window.
SendEvent(UIEvent)
Sends the specified event, sent by the UIApplication object, to this UIWindow's views.