---
title: init()
framework: foundation
role: symbol
role_heading: Initializer
path: foundation/nsuseractivity/init()
---

# init()

Creates a user activity object using the first activity type declared in the app’s information property list file.

## Declaration

```swift
convenience init()
```

## Return Value

Return Value An NSUserActivity object.

## Discussion

Discussion This method retrieves the first string of the NSUserActivityTypes key declared in the app’s Info.plist file.
