Your app’s response to a request to search for account information.


class INSearchForAccountsIntentResponse : INIntentResponse


Use an INSearchForAccountsIntentResponse object to return the account information found during a search operation. After performing a search using the criteria specified in an INSearchForAccountsIntent object, create an instance of this class and fill it with the results of that search. Siri communicates the information from your response to the user at appropriate times.

You create an INSearchForAccountsIntentResponse object in the confirm(intent:completion:) and handle(intent:completion:) methods of your handler object. For more information about implementing your handler object, see INSearchForAccountsIntentHandling.


Initializing the Response Object

init(code: INSearchForAccountsIntentResponseCode, userActivity: NSUserActivity?)

Initializes the response object with the specified code and user activity object.

Getting the Response Code

var code: INSearchForAccountsIntentResponseCode

The code indicating whether you successfully handled the intent.

enum INSearchForAccountsIntentResponseCode

Constants indicating the state of the response.

Providing the Search Results

var accounts: [INPaymentAccount]?

The accounts found during the search.


Inherits From

Conforms To

See Also

Search for Accounts

protocol INSearchForAccountsIntentHandling

The handler interface for searching for account information.

class INSearchForAccountsIntent

A request for information about the user’s accounts in your app.