Checks if available surfaces has an attribute like a capability
example
app.intent('Default Welcome Intent', conv => {
if (conv.available.surfaces.has('actions.capability.SCREEN_OUTPUT')) {
conv.ask('You have a device that can view images! How are you?')
} else {
conv.ask('You do not have a device that can view images! How are you?')
}
})
example
app.intent('Default Welcome Intent', conv => {
if (conv.available.surfaces.has('actions.capability.SCREEN_OUTPUT')) {
conv.ask('You have a device that can view images! How are you?')
} else {
conv.ask('You do not have a device that can view images! How are you?')
}
})
Checks if available surfaces has an attribute like a capability
app.intent('Default Welcome Intent', conv => { if (conv.available.surfaces.has('actions.capability.SCREEN_OUTPUT')) { conv.ask('You have a device that can view images! How are you?') } else { conv.ask('You do not have a device that can view images! How are you?') } })