Type Method

deleteSavedUserActivitiesWithPersistentIdentifiers:completionHandler:

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

Declaration

+ (void)deleteSavedUserActivitiesWithPersistentIdentifiers:(NSArray<NSUserActivityPersistentIdentifier> *)persistentIdentifiers completionHandler:(void (^)(void))handler;

Parameters

persistentIdentifiers

The list of persistent identifiers that the system uses to determine which user activities to delete.

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 user activities with a persistent identifier matching any identifier in the persistentIdentifiers array.

See Also

Deleting Saved User Activities

+ deleteAllSavedUserActivitiesWithCompletionHandler:

Deletes all user activities created by your app.

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