---
title: NSExtensionHostDidBecomeActive
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/nsnotification/name-swift.struct/nsextensionhostdidbecomeactive
---

# NSExtensionHostDidBecomeActive

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

## Declaration

```swift
static let NSExtensionHostDidBecomeActive: NSNotification.Name
```

## Discussion

Discussion Extensions can use this notification to adjust their activity when they become active. The object parameter contains the NSExtensionContext object. This notification does not contain a userInfo dictionary.

## See Also

### Working with notifications

- [NSExtensionHostWillResignActive](foundation/nsnotification/name-swift.struct/nsextensionhostwillresignactive.md)
- [NSExtensionHostDidEnterBackground](foundation/nsnotification/name-swift.struct/nsextensionhostdidenterbackground.md)
- [NSExtensionHostWillEnterForeground](foundation/nsnotification/name-swift.struct/nsextensionhostwillenterforeground.md)
