Global Variable

NSExtensionHostWillEnterForegroundNotification

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

Declaration

NSString *const NSExtensionHostWillEnterForegroundNotification;

Discussion

Extensions can use this notification to restart tasks that it stopped when they moved to the background. 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.

NSExtensionHostWillResignActiveNotification

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

NSExtensionHostDidEnterBackgroundNotification

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