AppleIntents.Intent behaviour (apple_intents v0.1.0)

Copy Markdown View Source

Behaviour and macro for App Intents fulfillment handlers.

Summary

Types

handler_result()

@type handler_result() :: {:ok, map()} | {:error, term()}

Callbacks

delegated_task()

(optional)
@callback delegated_task() :: String.t() | module() | nil

handle(map, t)

(optional)
@callback handle(map(), AppleIntents.Context.t()) :: handler_result()

intent_id()

@callback intent_id() :: String.t()

require_approval?()

(optional)
@callback require_approval?() :: boolean()