INGetVisualCodeIntent
A request for a visual code to use for exchanging payment and contact information.
Declaration
class INGetVisualCodeIntentOverview
Siri creates an INGetVisualCodeIntent object when the user asks for a visual code to use with a scanner. A visual code is a bar code or QR code that embeds information about a transaction. For example, an app might provide a visual code to facilitate payment for services. Apps can also use visual codes to communicate a user’s contact information.
To handle this intent, the handler object in your Intents extension must adopt the INGetVisualCodeIntentHandling protocol. Your handler should confirm the request and create an INGetVisualCodeIntentResponse object with an image containing the visual code. Siri handles the display of the provided visual code in order to scan it.
Additional Intent Attributes
The following table lists additional attributes of this intent object:
Attribute | Description |
|---|---|
Supported by | Siri Suggestions |
Always requires unlocked device | Yes |
When performing a search, Siri automatically asks the user to unlock a currently locked device. You don’t need to explicitly ask to unlock the device. In addition, Siri always prompts the user to confirm the request before asking your Intents extension to handle it.
Example Phrases
Users can ask Siri to display visual codes 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 | Show my personal QR code | Display my payment code |
zh_CN | 显示我的个人二维码 | 显示我的支付码 |
zh_HK | 顯示我嘅二維碼 | 顯示我嘅支付碼 |
zh_TW | 顯示我的通訊錄二維碼 | 顯示我的支付二維碼 |
yue_CN | 显示我嘅二维码 | 显示我嘅支付码 |
ar | أرني رمز QR الخاص بي | اعرض رمز الدفع الخاص بي |
da | vis min qr kode | vis min betalings kode |
de | Zeige meinen persönlichen QR-Code | Zeige meinen Zahlungscode |
es | Muestra mi código QR | Muestra mi código de pago |
fi | Näytä oma QR-koodini | Näytä maksukoodini |
fr | Montre-moi mon code QR personnel | Affiche mon code de paiement |
he | תראי את הקוד QR הפרטי שלי | תראי את הקוד תשלום שלי |
it | Mostrami il mio codice QR personale | Mostra il mio codice di pagamento |
ja | 自分のQRコードを表示 | 自分の支払いコードを表示 |
ko | 나의 개인 QR 코드 보여줘 | 나의 결제 코드 보여줘 |
ms | Tunjukkan kod QR peribadi saya | Paparkan kod bayaran saya |
nb | Vis min personlige QR-kode | Vis betalingskoden min |
nl | Toon mijn persoonlijke QR-code | Geef mijn betalingscode weer |
pt | Mostre meu código QR pessoal | Mostra meu código QR de pagamento |
ru | Покажи мой личный QR-код | Отобрази мой код оплаты |
sv | Visa min QR-kod | Visa min betalkod |
th | โชว์คิวอาร์โค้ดของฉัน | แสดงโค้ดการจ่ายเงินของฉัน |
tr | QR kodumu göster | Ödeme kodumu görüntüle |