Protocol

INSearchForMessagesIntentHandling

An interface that handles requests to search the current user’s messages.

Declaration

protocol INSearchForMessagesIntentHandling

Overview

Use the methods of the INSearchForMessagesIntentHandling protocol to resolve, confirm, and handle requests to search the current user’s messages. Adopt this protocol in an object of your Intents extension capable of searching your app’s messages.

Siri delivers an INSearchForMessagesIntent object to your handler when the user asks to search their messages. The provided intent object contains the search parameters to use when matching messages. Use the methods of this protocol to resolve the search parameters, to perform the search, and to return the results.

Topics

Resolving the Intent Parameters

func resolveRecipients(for: INSearchForMessagesIntent, with: ([INPersonResolutionResult]) -> Void)

Resolves the user’s input when they search for messages sent to specific people.

func resolveSenders(for: INSearchForMessagesIntent, with: ([INPersonResolutionResult]) -> Void)

Resolves the user’s input when they search for messages sent by specific people.

func resolveAttributes(for: INSearchForMessagesIntent, with: (INMessageAttributeOptionsResolutionResult) -> Void)

Resolves the user’s input when they search for messages with specific attributes.

func resolveDateTimeRange(for: INSearchForMessagesIntent, with: (INDateComponentsRangeResolutionResult) -> Void)

Resolves the user’s input when they search for messages sent in a specific time period.

func resolveSpeakableGroupNames(for: INSearchForMessagesIntent, with: ([INSpeakableStringResolutionResult]) -> Void)

Resolves the user’s input when they search for messages sent to a specific group of people.

func resolveGroupNames(for: INSearchForMessagesIntent, with: ([INStringResolutionResult]) -> Void)

Resolves the user’s input when they search for messages sent to a specific group of people.

Deprecated

Handling the Intent

Relationships

Inherits From

See Also

Search for Messages

class INSearchForMessagesIntent

A request to list the messages matching the specified criteria.

class INSearchForMessagesIntentResponse

Your app’s response to a search for messages intent.