Instance Method

donateInteractionWithCompletion:

Donates this interaction object to the system.

Declaration

- (void)donateInteractionWithCompletion:(void (^)(NSError *error))completion;

Parameters

completion

A block to execute with the results. Provide a block if you want to know whether the interaction was donated successfully. 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 from your app when you want to donate a SiriKit interaction to the system to help improve search results. If you provide a block in the completion parameter, the system executes your block asynchronously with the results.

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