Skip to main content
Access via:io.intents.resolver

API for controlling the Intents Resolver UI app.

Properties (4)

Property Type Default Required Description
caller⚓︎ ResolverCaller x x

Details about the app instance that opened the Intents Resolver UI.

handlerFilter⚓︎ HandlerFilter x x

Criteria for filtering the available Intent handlers. Available only if the filterHandlers() method was used to open the Intents Resolver UI.

intent⚓︎ string | IntentRequest x x

Name of the raised Intent.

version⚓︎ string x

Version of the Intents Resolver API.

4 Methods

getTitle()⚓︎

() => string | undefined

Retrieves the title for the search operation. Available only if the filterHandlers() method was used to open the Intents Resolver UI and the title property of the HandlerFilter object was set.

onHandlerAdded()⚓︎

(callback: (handler: ResolverIntentHandler, intent: IntentInfo) => void) => UnsubscribeFunction

Notifies when a handler for the current Intent is added. Replays already existing handlers.

Parameters (1)

Name Type Required Description
callback⚓︎ (handler: ResolverIntentHandler, intent: IntentInfo) => void

Callback function for handling the event.

onHandlerRemoved()⚓︎

(callback: (removedHandler: ResolverIntentHandler, intent: IntentInfo) => void) => UnsubscribeFunction

Notifies when a handler for the current Intent is removed.

Parameters (1)

Name Type Required Description
callback⚓︎ (removedHandler: ResolverIntentHandler, intent: IntentInfo) => void

Callback function for handling the event.

sendResponse()⚓︎

(handler: ResolverIntentHandler, options?: SendResolverResponseOptions) => Promise<InvocationResult | undefined>

Sends the chosen Intent handler to the app which raised the Intent.

Parameters (2)

Name Type Required Description
handler⚓︎ ResolverIntentHandler x
options⚓︎ SendResolverResponseOptions x x