---
title: UIUserNotificationActivationMode
framework: uikit
role: symbol
role_heading: Enumeration
path: uikit/uiusernotificationactivationmode
---

# UIUserNotificationActivationMode

Constants indicating whether the app should activate to the foreground or background.

## Declaration

```swift
enum UIUserNotificationActivationMode
```

## Topics

### Constants

- [UIUserNotificationActivationMode.foreground](uikit/uiusernotificationactivationmode/foreground.md)
- [UIUserNotificationActivationMode.background](uikit/uiusernotificationactivationmode/background.md)

### Initializers

- [init(rawValue:)](uikit/uiusernotificationactivationmode/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Constants

- [UIUserNotificationActionBehavior](uikit/uiusernotificationactionbehavior.md)
- [Action Parameter Key](uikit/action-parameter-key.md)
- [Behavior Key](uikit/behavior-key.md)
