Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AvailableSurfaces

Hierarchy

  • AvailableSurfaces

Properties

Methods

Properties

capabilities

list

list: Surface[]

Methods

has

  • 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?')
      }
    })

    Parameters

    Returns boolean

Generated using TypeDoc