INSetMessageAttributeIntent
A request to modify the attributes of a message.
Declaration
class INSetMessageAttributeIntentOverview
Siri creates an INSetMessageAttributeIntent object when the user asks to modify the attributes of one or more messages. Attributes represent information about the message such as whether the user read or flagged the message. This intent object includes the messages to modify and which attributes to change.
To handle this intent, the handler object in your Intents extension must adopt the INSetMessageAttributeIntentHandling protocol. Your handler should confirm the request and create an INSetMessageAttributeIntentResponse object with the results of modifying the messages.
Additional Intent Attributes
The following table lists additional attributes of this intent object:
Attribute | Description |
|---|---|
Supported by | Siri Intents |
Always requires unlocked device | No |
Apps can optionally ask the user to unlock the device before handling this intent. To require unlocking of the device, include the name of this class in the IntentsRestrictedWhileLocked key of your Intents extension’s Info.plist file.
Example Phrases
Users can ask Siri to set the attributes of a message 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 is not exhaustive and Siri may recognize many other phrases.
Locale | Example 1 | Example 2 |
|---|---|---|
en | Read my messages from Bob using | |
zh_CN | 读一下来自李宏辉的 | 读一下 |
zh_HK | 用 | 讀出 |
zh_TW | 朗讀我 | 在 |
yue_CN | 用 | 朗读 |
ar | إقرأ رسائل | قراءة آخر رسالة |
da | læs mine nye | læs mine nye |
de | Die | Lies meine |
es | Leer los mensajes de Sandra usando | Léeme los mensajes que me mandó Pedro por |
fi | Lue mun | Lue Julialta tulleet |
fr | Lis mes messages de Jean sur | Lis mes messages écrits par Henri sur |
he | תקרא את ההודעות מדויד באמצעות | באמצעות |
it | Leggi i miei messaggi da Rosanna su | Leggi i miei messaggi su |
ja |
| 太郞からの |
ko | 내 새로운 | 나의 |
ms | Baca mesej | Baca teks dari Dini dalam |
nb | Les mine nye | Les meldingen i |
nl | Lees mijn nieuwe | Lees mijn nieuwe |
pt | Leia minha mensagem do João no | Leia a última mensagem recebida no |
ru | Прочти мои новые | Прочитай новые сообщения в |
sv | Läs mina nya | Läs upp nya meddelanden på |
th | อ่านข้อความจาก | อ่านข้อความของสมชายที่ส่งมาจาก |
tr |
|
|
In the preceding examples, <appName> represents the name of the app whose Intents extension modifies the message attributes.