Type Method

deleteAllSavedUserActivities(completionHandler:)

Deletes all user activities created by your app.

Declaration

class func deleteAllSavedUserActivities(completionHandler handler: @escaping () -> Void)

Parameters

handler

The block that the system invokes after deleting the user activities. Wait for the system to call this block to ensure that the system deletes the activities (or marks them for deletion).

Discussion

Deletes all user activities stored by Core Spotlight or donated as Siri shortcuts.

See Also

Deleting Saved User Activities

class func deleteSavedUserActivities(withPersistentIdentifiers: [NSUserActivityPersistentIdentifier], completionHandler: () -> Void)

Deletes user activities created by your app that have the specified persistent identifiers.