Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Surface

Hierarchy

  • Surface

Properties

Methods

Properties

capabilities

capabilities: Capabilities

Methods

has

  • Checks if surface has an attribute like a capability

    example
    
    app.intent('Default Welcome Intent', conv => {
      if (conv.surface.has('actions.capability.AUDIO_OUTPUT')) {
        conv.ask('You can hear me! How are you?')
      } else {
        conv.ask('You can read this! How are you?')
      }
    })
    example
    
    app.intent('Default Welcome Intent', conv => {
      if (conv.surface.has('actions.capability.AUDIO_OUTPUT')) {
        conv.ask('You can hear me! How are you?')
      } else {
        conv.ask('You can read this! How are you?')
      }
    })

    Parameters

    Returns boolean

Generated using TypeDoc