Initializer

init()

Initializes and returns the object using the first activity type declared in the app’s information property list file.

Declaration

convenience init()

Return Value

An NSUserActivity object.

Discussion

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

See Also

Creating a User Activity Object

init(activityType: String)

Initializes and returns the object using the specified type.