UIDevice.Notifications UIDevice.Notifications Class

Definition

Notification posted by the UIDevice class.

public static class UIDevice.Notifications
type UIDevice.Notifications = class
Inheritance
UIDevice.NotificationsUIDevice.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.

Methods

ObserveBatteryLevelDidChange(EventHandler<NSNotificationEventArgs>) ObserveBatteryLevelDidChange(EventHandler<NSNotificationEventArgs>)

Strongly typed notification for the BatteryLevelDidChangeNotification constant.

ObserveBatteryLevelDidChange(NSObject, EventHandler<NSNotificationEventArgs>) ObserveBatteryLevelDidChange(NSObject, EventHandler<NSNotificationEventArgs>)

Strongly typed notification for the BatteryLevelDidChangeNotification constant.

ObserveBatteryStateDidChange(EventHandler<NSNotificationEventArgs>) ObserveBatteryStateDidChange(EventHandler<NSNotificationEventArgs>)

Strongly typed notification for the BatteryStateDidChangeNotification constant.

ObserveBatteryStateDidChange(NSObject, EventHandler<NSNotificationEventArgs>) ObserveBatteryStateDidChange(NSObject, EventHandler<NSNotificationEventArgs>)

Strongly typed notification for the BatteryStateDidChangeNotification constant.

ObserveOrientationDidChange(EventHandler<NSNotificationEventArgs>) ObserveOrientationDidChange(EventHandler<NSNotificationEventArgs>)

Strongly typed notification for the OrientationDidChangeNotification constant.

ObserveOrientationDidChange(NSObject, EventHandler<NSNotificationEventArgs>) ObserveOrientationDidChange(NSObject, EventHandler<NSNotificationEventArgs>)

Strongly typed notification for the OrientationDidChangeNotification constant.

ObserveProximityStateDidChange(EventHandler<NSNotificationEventArgs>) ObserveProximityStateDidChange(EventHandler<NSNotificationEventArgs>)

Strongly typed notification for the ProximityStateDidChangeNotification constant.

ObserveProximityStateDidChange(NSObject, EventHandler<NSNotificationEventArgs>) ObserveProximityStateDidChange(NSObject, EventHandler<NSNotificationEventArgs>)

Strongly typed notification for the ProximityStateDidChangeNotification constant.

Applies to