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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software