iOS Guides | Samples

MonoTouch.UIKit.UIDevice.Notifications Class

Notification posted by the UIDevice class.

See Also: UIDevice+Notifications

Syntax

public static class UIDevice.Notifications

Remarks

This is a static class which contains various helper methods that allow developers to observe events posted in the iOS notification hub (NSNotificationCenter).

The methods defined in this class post events invoke the provided method or lambda with a NSNotificationEventArgs parameter which contains strongly typed properties for the notification arguments.

Requirements

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

The members of MonoTouch.UIKit.UIDevice.Notifications are listed below.

See Also: Object

Public Methods

static
ObserveBatteryLevelDidChange(EventHandler<MonoTouch.Foundation.NSNotificationEventArgs>) : NSObject
Registers a method to be notified when the UIDeviceBatteryLevelDidChangeNotification notification is posted.
static
ObserveBatteryStateDidChange(EventHandler<MonoTouch.Foundation.NSNotificationEventArgs>) : NSObject
Registers a method to be notified when the UIDeviceBatteryStateDidChangeNotification notification is posted.
static
ObserveOrientationDidChange(EventHandler<MonoTouch.Foundation.NSNotificationEventArgs>) : NSObject
Registers a method to be notified when the UIDeviceOrientationDidChangeNotification notification is posted.
static
ObserveProximityStateDidChange(EventHandler<MonoTouch.Foundation.NSNotificationEventArgs>) : NSObject
Registers a method to be notified when the UIDeviceProximityStateDidChangeNotification notification is posted.