Share via


NSWorkspace.Notifications Class

Definition

Notifications posted by the NSWorkspace class.

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

Strongly typed notification for the ActiveSpaceDidChangeNotification constant.

ObserveActiveSpaceDidChange(NSObject, EventHandler<NSNotificationEventArgs>)

Strongly typed notification for the ActiveSpaceDidChangeNotification constant.

ObserveDidActivateApplication(EventHandler<NSWorkspaceApplicationEventArgs>)

Strongly typed notification for the DidActivateApplicationNotification constant.

ObserveDidActivateApplication(NSObject, EventHandler<NSWorkspaceApplicationEventArgs>)

Strongly typed notification for the DidActivateApplicationNotification constant.

ObserveDidChangeFileLabels(EventHandler<NSNotificationEventArgs>)

Strongly typed notification for the DidChangeFileLabelsNotification constant.

ObserveDidChangeFileLabels(NSObject, EventHandler<NSNotificationEventArgs>)

Strongly typed notification for the DidChangeFileLabelsNotification constant.

ObserveDidDeactivateApplication(EventHandler<NSWorkspaceApplicationEventArgs>)

Strongly typed notification for the DidDeactivateApplicationNotification constant.

ObserveDidDeactivateApplication(NSObject, EventHandler<NSWorkspaceApplicationEventArgs>)

Strongly typed notification for the DidDeactivateApplicationNotification constant.

ObserveDidHideApplication(EventHandler<NSWorkspaceApplicationEventArgs>)

Strongly typed notification for the DidHideApplicationNotification constant.

ObserveDidHideApplication(NSObject, EventHandler<NSWorkspaceApplicationEventArgs>)

Strongly typed notification for the DidHideApplicationNotification constant.

ObserveDidLaunchApplication(EventHandler<NSWorkspaceApplicationEventArgs>)

Strongly typed notification for the DidLaunchApplicationNotification constant.

ObserveDidLaunchApplication(NSObject, EventHandler<NSWorkspaceApplicationEventArgs>)

Strongly typed notification for the DidLaunchApplicationNotification constant.

ObserveDidMount(EventHandler<NSWorkspaceMountEventArgs>)

Strongly typed notification for the DidMountNotification constant.

ObserveDidMount(NSObject, EventHandler<NSWorkspaceMountEventArgs>)

Strongly typed notification for the DidMountNotification constant.

ObserveDidPerformFileOperation(EventHandler<NSWorkspaceFileOperationEventArgs>)

Strongly typed notification for the DidPerformFileOperationNotification constant.

ObserveDidPerformFileOperation(NSObject, EventHandler<NSWorkspaceFileOperationEventArgs>)

Strongly typed notification for the DidPerformFileOperationNotification constant.

ObserveDidRenameVolume(EventHandler<NSWorkspaceRenamedEventArgs>)

Strongly typed notification for the DidRenameVolumeNotification constant.

ObserveDidRenameVolume(NSObject, EventHandler<NSWorkspaceRenamedEventArgs>)

Strongly typed notification for the DidRenameVolumeNotification constant.

ObserveDidTerminateApplication(EventHandler<NSWorkspaceApplicationEventArgs>)

Strongly typed notification for the DidTerminateApplicationNotification constant.

ObserveDidTerminateApplication(NSObject, EventHandler<NSWorkspaceApplicationEventArgs>)

Strongly typed notification for the DidTerminateApplicationNotification constant.

ObserveDidUnhideApplication(EventHandler<NSWorkspaceApplicationEventArgs>)

Strongly typed notification for the DidUnhideApplicationNotification constant.

ObserveDidUnhideApplication(NSObject, EventHandler<NSWorkspaceApplicationEventArgs>)

Strongly typed notification for the DidUnhideApplicationNotification constant.

ObserveDidUnmount(EventHandler<NSWorkspaceMountEventArgs>)

Strongly typed notification for the DidUnmountNotification constant.

ObserveDidUnmount(NSObject, EventHandler<NSWorkspaceMountEventArgs>)

Strongly typed notification for the DidUnmountNotification constant.

ObserveDidWake(EventHandler<NSNotificationEventArgs>)

Strongly typed notification for the DidWakeNotification constant.

ObserveDidWake(NSObject, EventHandler<NSNotificationEventArgs>)

Strongly typed notification for the DidWakeNotification constant.

ObserveDisplayOptionsDidChange(EventHandler<NSNotificationEventArgs>)

Strongly typed notification for the DisplayOptionsDidChangeNotification constant.

ObserveDisplayOptionsDidChange(NSObject, EventHandler<NSNotificationEventArgs>)

Strongly typed notification for the DisplayOptionsDidChangeNotification constant.

ObserveScreensDidSleep(EventHandler<NSNotificationEventArgs>)

Strongly typed notification for the ScreensDidSleepNotification constant.

ObserveScreensDidSleep(NSObject, EventHandler<NSNotificationEventArgs>)

Strongly typed notification for the ScreensDidSleepNotification constant.

ObserveScreensDidWake(EventHandler<NSNotificationEventArgs>)

Strongly typed notification for the ScreensDidWakeNotification constant.

ObserveScreensDidWake(NSObject, EventHandler<NSNotificationEventArgs>)

Strongly typed notification for the ScreensDidWakeNotification constant.

ObserveSessionDidBecomeActive(EventHandler<NSNotificationEventArgs>)

Strongly typed notification for the SessionDidBecomeActiveNotification constant.

ObserveSessionDidBecomeActive(NSObject, EventHandler<NSNotificationEventArgs>)

Strongly typed notification for the SessionDidBecomeActiveNotification constant.

ObserveSessionDidResignActive(EventHandler<NSNotificationEventArgs>)

Strongly typed notification for the SessionDidResignActiveNotification constant.

ObserveSessionDidResignActive(NSObject, EventHandler<NSNotificationEventArgs>)

Strongly typed notification for the SessionDidResignActiveNotification constant.

ObserveWillLaunchApplication(EventHandler<NSWorkspaceApplicationEventArgs>)

Strongly typed notification for the WillLaunchApplication constant.

ObserveWillLaunchApplication(NSObject, EventHandler<NSWorkspaceApplicationEventArgs>)

Strongly typed notification for the WillLaunchApplication constant.

ObserveWillPowerOff(EventHandler<NSNotificationEventArgs>)

Strongly typed notification for the WillPowerOffNotification constant.

ObserveWillPowerOff(NSObject, EventHandler<NSNotificationEventArgs>)

Strongly typed notification for the WillPowerOffNotification constant.

ObserveWillSleep(EventHandler<NSNotificationEventArgs>)

Strongly typed notification for the WillSleepNotification constant.

ObserveWillSleep(NSObject, EventHandler<NSNotificationEventArgs>)

Strongly typed notification for the WillSleepNotification constant.

ObserveWillUnmount(EventHandler<NSWorkspaceMountEventArgs>)

Strongly typed notification for the WillUnmountNotification constant.

ObserveWillUnmount(NSObject, EventHandler<NSWorkspaceMountEventArgs>)

Strongly typed notification for the WillUnmountNotification constant.

Applies to