Share via


UIDevice.Notifications Class

Definition

Notifications posted by the UIDevice class.

public static class UIDevice.Notifications
type UIDevice.Notifications = class
Inheritance
UIDevice.Notifications

Remarks

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

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

Methods

Name Description
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