AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Types | Public Member Functions | Static Public Member Functions | List of all members
alexaClientSDK::avsCommon::sdkInterfaces::DialogUXStateObserverInterface Class Referenceabstract

A dialog specific UX state observer. More...

#include <DialogUXStateObserverInterface.h>

Inheritance diagram for alexaClientSDK::avsCommon::sdkInterfaces::DialogUXStateObserverInterface:
Inheritance graph
[legend]

Public Types

enum  DialogUXState {
  DialogUXState::IDLE, DialogUXState::LISTENING, DialogUXState::EXPECTING, DialogUXState::THINKING,
  DialogUXState::SPEAKING, DialogUXState::FINISHED
}
 The different dialog specific AVS UX states. More...
 

Public Member Functions

virtual ~DialogUXStateObserverInterface ()=default
 
virtual void onDialogUXStateChanged (DialogUXState newState)=0
 

Static Public Member Functions

static std::string stateToString (DialogUXState state)
 

Detailed Description

A dialog specific UX state observer.

Member Enumeration Documentation

◆ DialogUXState

The different dialog specific AVS UX states.

Enumerator
IDLE 

Alexa is idle and ready for an interaction.

LISTENING 

Alexa is currently listening.

EXPECTING 

Alexa is currently expecting a response from the customer.

THINKING 

A customer request has been completed and no more input is accepted. In this state, Alexa is waiting for a response from AVS.

SPEAKING 

Alexa is responding to a request with speech.

FINISHED 

Alexa has finished processing a SPEAK directive. In this state there are no notifications triggered. If the SPEAK directive is part of a speech burst UX moves back to the SPEAKING state. If it was the last SPEAK directive after timeout the UX state moves to the IDLE state.

Constructor & Destructor Documentation

◆ ~DialogUXStateObserverInterface()

virtual alexaClientSDK::avsCommon::sdkInterfaces::DialogUXStateObserverInterface::~DialogUXStateObserverInterface ( )
virtualdefault

Destructor.

Member Function Documentation

◆ onDialogUXStateChanged()

virtual void alexaClientSDK::avsCommon::sdkInterfaces::DialogUXStateObserverInterface::onDialogUXStateChanged ( DialogUXState  newState)
pure virtual

◆ stateToString()

std::string alexaClientSDK::avsCommon::sdkInterfaces::DialogUXStateObserverInterface::stateToString ( DialogUXState  state)
inlinestatic

This function converts the provided DialogUXState to a string.

Parameters
stateThe DialogUXState to convert to a string.
Returns
The string conversion of state.

The documentation for this class was generated from the following file:

AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0