Share via


NSExtensionContext.Notifications Class

Definition

Notifications posted by the NSExtensionContext class.

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

Strongly typed notification for the HostDidBecomeActiveNotification constant.

ObserveHostDidBecomeActive(NSObject, EventHandler<NSNotificationEventArgs>)

Strongly typed notification for the HostDidBecomeActiveNotification constant.

ObserveHostDidEnterBackground(EventHandler<NSNotificationEventArgs>)

Strongly typed notification for the HostDidEnterBackgroundNotification constant.

ObserveHostDidEnterBackground(NSObject, EventHandler<NSNotificationEventArgs>)

Strongly typed notification for the HostDidEnterBackgroundNotification constant.

ObserveHostWillEnterForeground(EventHandler<NSNotificationEventArgs>)

Strongly typed notification for the HostWillEnterForegroundNotification constant.

ObserveHostWillEnterForeground(NSObject, EventHandler<NSNotificationEventArgs>)

Strongly typed notification for the HostWillEnterForegroundNotification constant.

ObserveHostWillResignActive(EventHandler<NSNotificationEventArgs>)

Strongly typed notification for the HostWillResignActiveNotification constant.

ObserveHostWillResignActive(NSObject, EventHandler<NSNotificationEventArgs>)

Strongly typed notification for the HostWillResignActiveNotification constant.

Applies to