Share via


NSProcessInfo.Notifications Class

Definition

Notifications posted by the NSProcessInfo class.

public static class NSProcessInfo.Notifications
type NSProcessInfo.Notifications = class
Inheritance
NSProcessInfo.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
ObservePerformanceProfileDidChange(EventHandler<NSNotificationEventArgs>)

Strongly typed notification for the PerformanceProfileDidChangeNotification constant.

ObservePerformanceProfileDidChange(NSObject, EventHandler<NSNotificationEventArgs>)

Strongly typed notification for the PerformanceProfileDidChangeNotification constant.

ObservePowerStateDidChange(EventHandler<NSNotificationEventArgs>)

Strongly typed notification for the PowerStateDidChangeNotification constant.

ObservePowerStateDidChange(NSObject, EventHandler<NSNotificationEventArgs>)

Strongly typed notification for the PowerStateDidChangeNotification constant.

ObserveThermalStateDidChange(EventHandler<NSNotificationEventArgs>)

Strongly typed notification for the ThermalStateDidChangeNotification constant.

ObserveThermalStateDidChange(NSObject, EventHandler<NSNotificationEventArgs>)

Strongly typed notification for the ThermalStateDidChangeNotification constant.

Applies to