Class

INSearchForAccountsIntentResponse

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

Declaration

class INSearchForAccountsIntentResponse : INIntentResponse

Overview

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.

Topics

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.

Relationships

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.

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