Class

INAddMediaIntent

A request to add a media item.

Declaration

@interface INAddMediaIntent : INIntent

Overview

Siri creates an INAddMediaIntent object when the user asks to add a media item. The intents object contains the media to add.

To handle this intent, the handler object in your Intents extension must adopt the INAddMediaIntentHandling protocol. Your handler should confirm the request and create an INAddMediaIntentResponse object that contains the media to add.

Additional Intent Attributes

Table 1 lists additional attributes of this intent object.

Table 1

Add media intent attributes

Attribute

Description

Supported by

Siri Intents (audio only)

Always requires unlocked device

No

Example Phrases

Users can ask Siri to add media 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 adding media

Locale

Example 1

Example 2

en

Add this to my library.

Put <songName> on my <appName> road trip playlist.

zh_CN

把这个加入我的资料库

把告白气球加到我的<appName>公路旅行播放列表

zh_HK

加佢入我嘅資料庫

加櫻花樹下入我個<appName>嘅公路旅行播放列表

zh_TW

把這個加入到我的資料庫

把告白氣球加到我的<appName>公路旅行播放列表

yue_CN

加佢入我嘅资料库

加樱花树下入我个<appName>嘅公路旅行播放列表

ar

أضف هذه إلى مكتبتي

أضف الأماني إلى قائمة السفر عندي في <appName>

da

Tilføj dette til mit bibliotek

Tilføj <songName> på min <appName> biltur spilleliste

de

Füge das zu meiner Bibliothek hinzu

Füge <songName> zu meiner <appName> Ausflug playlist hinzu

es

Agrega esto a mi librería

Agrega <songName> a mi lista de viaje en <appName>

fi

Lisää tämä kirjastooni

Lisää kappale <songName> soittolistalle road trip <appName>

fr

Ajoute le dans ma bibliothèque

Mets Ceinture Noire dans ma playlist <appName> voyages

he

תוסיפי את זה לספריה שלי

it

Aggiungilo alla mia libreria

Aggiungi <songName> sulla mia playlist viaggio in macchina di <appName>

ja

それをライブラリに追加して

<appName>のロードトリッププレイリストに<songName>を追加して

ko

이거 내 보관함에 추가해

<songName>을 <appName> 자동차 여행 플레이리스트에 넣어

ms

Tambahkan ini ke koleksi saya

Tambahkan <songName> kepada senarai main road trip di <appName>

nb

Legg til denne i musikkbiblioteket mitt

Legg til <songName> i min <appName> spilleliste biltur

nl

Voeg dit toe aan mijn bibliotheek

Zet <songName> op mijn <appName> road trip afspeellijst

pt

Adicionar isso na minha biblioteca.

Coloca <songName> na minha playlist de Viagem

ru

Добавь это в мою библиотеку

Добавь песню Зацепила в мой плейст для дороги в приложении Яндекс Музыка

sv

Lägg till denna i mitt bibliotek

Lägg till <songName> i min <appName> road trip spellista

th

เพิ่มอันนี้ในคลังของฉัน

เพิ่มเพลง <songName> บน <appName> ในเพลย์ลิสต์การเดินทาง

tr

Bunu arşivime ekle

<songName>'i <appName> yol şarkıları listeme ekle

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

Topics

Creating an Add Media Intent

- initWithMediaItems:mediaSearch:mediaDestination:

Creates an intent that describes the media items to add and where to add them.

Getting the Media

mediaItems

The media content to add.

mediaSearch

The location to search for the media item to add.

mediaDestination

The location for the media to add.

INMediaDestination

An object that describes the destination for a media item.

Relationships

Inherits From

See Also

Add Media

INAddMediaIntentHandling

The handler interface that adds media.

INAddMediaIntentResponse

Your app’s response to an add media intent.