Global Variable

NSExtensionHostWillResignActiveNotification

Posted when the extension’s host app moves from the active to the inactive state.

Declaration

NSString *const NSExtensionHostWillResignActiveNotification;

Discussion

Extensions can use this notification to adjust their activity when they become inactive. For example, you might use this notification to save any unsaved data to prevent it from being lost. The object parameter contains the NSExtensionContext object. This notification does not contain a userInfo dictionary.

See Also

Notifications

NSExtensionHostDidBecomeActiveNotification

Posted when the extension’s host app moves from the inactive to the active state.

NSExtensionHostDidEnterBackgroundNotification

Posted when the extension’s host app begins running in the background.

NSExtensionHostWillEnterForegroundNotification

Posted when the extension’s host app begins running in the foreground.