INAddTasksIntent
A request to add tasks to an existing task list.
Declaration
class INAddTasksIntentOverview
Siri creates an instance of INAddTasksIntent when the user asks to add one or more tasks to a task list. Alternatively, if the user asks to create a note, and your app or Intents extension doesn’t support INCreateNoteIntent, SiriKit uses this intent instead. The intent contains the tasks to add and the target task list, and can also include location or time triggers that you assign to each of the new tasks. To process the request, your handler must adopt the INAddTasksIntentHandling protocol.
INAddTasksIntent is available to both Siri Intents and Siri Suggestions and doesn’t require an unlocked device before processing.
Example Phrases
Users can ask Siri to add tasks to a task list in a variety of ways. Although not exhaustive, the following table provides a few sample phrases, in different languages, that you can use when testing your intents.
Locale | Example 1 | Example 2 |
|---|---|---|
| Add persimmons to my shopping list | Remind me to buy dog food |
| 在我的购物列表里添加柿子 | 提醒我买狗食 |
| 喺我嘅購物清單入面加入柿餅 | 提醒我買狗糧 |
| 新增柿子到我的購物清單 | 提醒我要買狗食 |
| 喺我嘅购物清单入面加入柿饼 | 提醒我买狗粮 |
| أضف الخوخ إلى قائمة التسوق | ذكرني بشراء طعام للكلب |
| tilføj sharonfrugt til min indkøbsliste | mind mig om at købe hundemad |
| Füge Äpfel zu meiner Einkaufsliste hinzu | Erinnere mich daran Hundefutter kaufen |
| Añade melocotones a la lista de la compra | Recuérdame comprar comida de perro |
| Lisää ostoslistaan banaaneja | Muistuta että ostan koiranruokaa |
| Ajoute kiwi à ma liste de courses | Rappelle-moi d’acheter de la nourriture pour chien |
| תוסיפי אפרסמונים לרשימת קניות שלי | תזכירי לי לקנות אוכל לכלבים |
| Aggiungi prezzemolo alla mia lista della spesa | Ricordami di comprare cibo per cani |
| 買い物リストに柿を追加して | ドッグフードを買うのをリマインドして |
| 내 쇼핑 리스트에 단감 추가해줘 | 강아지 사료 사라고 미리 알려줘 |
| Tambah oren ke senarai beli-belah saya | Ingatkan saya untuk beli makanan anjing |
| Legg til bananer i handlelista | Minn meg på å kjøpe hundemat |
| Voeg sinaasappelen toe aan mijn boodschappenlijst | Herinner me eraan hondenvoer te kopen |
| Adiciona tomate à minha lista de compras | Me lembre de comprar comida de cachorro |
| Добавить хурму в список покупок | Напомни мне купить корм для собак |
| Lägg till clementiner i min inköpslista | Påminn mig att köpa hundmat |
| เพิ่มขนมปังไปที่ลิสต์รายการซื้อของ | เตือนฉันให้ซื้ออาหารแมวด้วย |
| Alışveriş listeme salatalık ekle | Köpek maması almamı anımsat |
Topics
Initializing the Intent Object
init(targetTaskList:taskTitles:spatialEventTrigger:temporalEventTrigger:priority:)init(targetTaskList:taskTitles:spatialEventTrigger:temporalEventTrigger:)