---
title: activationType
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsusernotification/activationtype-swift.property
---

# activationType

Specifies what caused a user notification to occur.

## Declaration

```swift
var activationType: NSUserNotification.ActivationType { get }
```

## Discussion

Discussion This property specifies why the user notification was sent to to the NSUserNotificationCenterDelegate method userNotificationCenter(_:didActivate:). The supported values are described in NSUserNotification.ActivationType.

## See Also

### User Notification Activation Method

- [additionalActivationAction](foundation/nsusernotification/additionalactivationaction.md)
- [additionalActions](foundation/nsusernotification/additionalactions.md)
