INSetTaskAttributeIntent
A request to modify the attributes of a task.
Declaration
class INSetTaskAttributeIntentOverview
Siri creates an INSetTaskAttributeIntent object when the user marks a task as complete or changes the triggers used to generate reminders for the task. The intent object can contain the task information and values for any changed attributes.
To handle this intent, the handler object in your Intents extension must adopt the INSetTaskAttributeIntentHandling protocol. Your handler should confirm the request and create an INSetTaskAttributeIntentResponse object with the updated task information.
Additional Intent Attributes
The following table lists additional attributes of this intent object:
Attribute | Description |
|---|---|
Supported by | Siri Intents |
Always requires unlocked device | No |
Example Phrases
Users can ask Siri to modify task attributes in a variety of ways. The table below provides a few sample phrases in different languages. You can use these phrases during testing to trigger your intents. This list isn’t exhaustive and Siri may recognize many other phrases.
Locale | Example 1 | Example 2 |
|---|---|---|
en | Mark dry cleaning as complete on | Check call dad off my to do list |
zh_CN | 标记干洗为结束(在 | 把给爸爸打电话从待办事项列表里面去掉 |
zh_HK | 喺 | 剔咗待辦事項列表入面嘅打電話俾爸爸 |
zh_TW | 標記乾洗為完成(在 | 從我的待辦事項列表中刪除打電話給爸爸 |
yue_CN | 喺 | 剔咗待办事项列表入面嘅打电话俾爸爸 |
ar | ضع علامة على تنظيف الملابس بأنه مكتمل | قم بإلغاء الاتصال على أبي من قائمة الأعمال |
da | marker rensning som færdiggjort i | marker ring til far som færdig i min at gøre liste |
de | Markiere Reinigung als erledigt auf | Hake Papa anrufen auf meiner Erinnerungsliste ab |
es | Marca tintorería como completado en | Tacha llamar a papá de mi lista de cosas por hacer |
fi | Merkitse auton pesu suoritetuksi apissa | Merkitse soita isälle suoritetuksi tehtävälistalla |
fr | Marque laver le linge comme terminé sur | Supprime appeler papa de ma liste de choses à faire |
he | תסמני ניקוי יבש כהושלם ב | תסמני את להתקשר לאבא ברשימת הדברים לעשות |
it | Segna pulizia a secco come completato su | Segna chiamare papà come fatto sulla mia lista da fare |
ja |
| Todoリストにある父に電話に完了のマークをつけて |
ko |
| 아빠에게 전화하기를 내 할 일 목록에서 체크하기 |
ms | Tandakan cucian kering selesai pada | Tandakan panggil ayah sebagai selesai pada senarai tugasan |
nb | Marker klesvask som utført i | Huk av ringe pappa på gjørelisten min |
nl | Markeer stomerij als voltooid in | Vink papa bellen af op mijn takenlijst |
pt | Marcar lavagem a seco como concluída no | Marcar ligar para o pai como concluído na minha lista de tarefas |
ru | Пометить химчистку как завершенную в | Отметь позвонить папе в моём списке дел |
sv | Markera tvätta som avklarad i | Bocka av ring pappa från min att göra-lista |
th | ทำเครื่องหมายว่าเสร็จแล้วที่ซักแห้งบนแอพ | ทำเครื่องหมายโทรหาพ่อว่าเสร็จแล้วในรายการสิ่งที่ต้องทำ |
tr |
| Ödevlerim listesindeki son anımsatıcıyı yapıldı işaretle |
In table above, <appName> represents the name of the app whose Intents extension handles the request.
Topics
Initializing the Intent Object
init(targetTask:taskTitle:status:priority:spatialEventTrigger:temporalEventTrigger:)init(targetTask:status:spatialEventTrigger:temporalEventTrigger:)