Type Method

deleteAllInteractionsWithCompletion:

Deletes all interactions that you donated previously.

Declaration

+ (void)deleteAllInteractionsWithCompletion:(void (^)(NSError *error))completion;

Parameters

completion

A block to execute with the results. Provide a block if you want to know whether the deletion action was successful. The block has no return value and takes the following parameter.

error

An error object indicating a problem occurred. On success, this parameter is nil. If there was an error, this parameter contains an error object describing what happened.

Discussion

Call this method to delete all of your app’s previously donated SiriKit interactions. Typically, you delete interactions when they are no longer relevant. If you provide a block in the completion parameter, the system executes your block asynchronously with the results.

See Also

Deleting Interactions from the System

+ deleteInteractionsWithIdentifiers:completion:

Deletes the specified interactions that were donated by the calling app.

+ deleteInteractionsWithGroupIdentifier:completion:

Deletes the interactions with the specified group identifier.