Class

INDeleteTasksIntent

A request to delete one or more tasks.

Declaration

@interface INDeleteTasksIntent : INIntent

Overview

Siri creates an INDeleteTasksIntent object when the user marks one or more tasks for deletion. The intent object can contain the task information.

To handle this intent, the handler object in your Intents extension must adopt the INDeleteTasksIntentHandling protocol. Your handler should confirm the request and create an INDeleteTasksIntentResponse object with the updated task information.

Additional Intent Attributes

Table 1 lists additional attributes of this intent object.

Table 1

Delete tasks intent attributes

Attribute

Description

Supported by

Siri Intents

Always requires unlocked device

No

Example Phrases

Users can ask Siri to delete tasks in a variety of ways. Table 2 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.

Table 2

Siri phrases that trigger the deletion of tasks

Locale

Example 1

Example 2

en

Remove my buy milk reminder

Delete all my reminders

zh_CN

删除买牛奶的提醒事项

删除全部提醒事项

zh_HK

刪除買牛奶嘅提醒事項

刪除全部提醒事項

zh_TW

刪除買牛奶的提醒事項

刪除所有提醒事項

yue_CN

删除买牛奶嘅提醒事项

删除全部提醒事项

ar

مسح تذكير شراء الحليب

مسح جميع التذكيرات

da

Fjern min køb mælk påmindelse

Slet alle mine påmindelser

de

Entferne meine Milch kaufen Erinnerung

Lösche alle meine Erinnerungen

es

Elimina mi recordatorio comprar leche

Elimina todos mis recordatorios

fi

Poista muistutus osta maitoa

Poista kaikki muistutukset

fr

Efface mon rappel pour acheter du lait

Supprime tous mes rappels

he

תמחק את התזכורת לקנות חלב

תמחקי את כל התזכורות שלי

it

Rimuovi il promemoria comprare il latte

Elimina tutti i miei promemoria

ja

牛乳を買うというリマインダーを削除して

リマインダーを全部削除して

ko

우유 사기 미리 알림 지워

모든 미리 알림 삭제해

ms

Padamkan peringatan beli susu saya

Padamkan semua peringatan saya

nb

Fjern min kjøpe melk påminnelse

Slett alle påminnelsene mine

nl

Verwijder melk kopen herinnering

Wis al mijn herinneringen

pt

Remova o lembrete comprar leite

Remover todos os meus lembretes

ru

Удали моё напоминание купить молоко

Удали все мои напоминания

sv

Ta bort min köp mjölk påminnelse

Radera alla mina påminnelser

th

ลบเตือนความจำซื้อนม

ลบเตือนความจำทั้งหมด

tr

Süt al anımsatıcımı kaldır

Tüm hatırlatmalarımı sil

In Table 2, <appName> represents the name of the app whose Intents extension handles the request.

Topics

Initializing the Intent Object

- initWithTaskList:tasks:all:

Initializes the intent object with information about the task list and the tasks to delete from it.

Getting the Task Information

taskList

The task list form which to delete tasks.

tasks

The task list form which to delete tasks.

all

A Boolean value that indicates whether to delete all the tasks from a task list.

Relationships

Inherits From

See Also

Delete a Task

INDeleteTasksIntentHandling

An interface that handles requests to delete tasks from a task list.

INDeleteTasksIntentResponse

Your response to a request to delete tasks.