Editar

Compartilhar via


UIDevice.Notifications Class

Definition

Notification posted by the UIDevice class.

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

Methods

ObserveBatteryLevelDidChange(EventHandler<NSNotificationEventArgs>)

Strongly typed notification for the BatteryLevelDidChangeNotification constant.

ObserveBatteryLevelDidChange(NSObject, EventHandler<NSNotificationEventArgs>)

Strongly typed notification for the BatteryLevelDidChangeNotification constant.

ObserveBatteryStateDidChange(EventHandler<NSNotificationEventArgs>)

Strongly typed notification for the BatteryStateDidChangeNotification constant.

ObserveBatteryStateDidChange(NSObject, EventHandler<NSNotificationEventArgs>)

Strongly typed notification for the BatteryStateDidChangeNotification constant.

ObserveOrientationDidChange(EventHandler<NSNotificationEventArgs>)

Strongly typed notification for the OrientationDidChangeNotification constant.

ObserveOrientationDidChange(NSObject, EventHandler<NSNotificationEventArgs>)

Strongly typed notification for the OrientationDidChangeNotification constant.

ObserveProximityStateDidChange(EventHandler<NSNotificationEventArgs>)

Strongly typed notification for the ProximityStateDidChangeNotification constant.

ObserveProximityStateDidChange(NSObject, EventHandler<NSNotificationEventArgs>)

Strongly typed notification for the ProximityStateDidChangeNotification constant.

Applies to