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

#include <KeyWordDetectorStateObserverInterface.h>

Inheritance diagram for alexaClientSDK::avsCommon::sdkInterfaces::KeyWordDetectorStateObserverInterface:
Inheritance graph

Public Types

enum  KeyWordDetectorState { KeyWordDetectorState::ACTIVE, KeyWordDetectorState::STREAM_CLOSED, KeyWordDetectorState::ERROR }

Public Member Functions

virtual ~KeyWordDetectorStateObserverInterface ()=default
virtual void onStateChanged (KeyWordDetectorState keyWordDetectorState)=0

Detailed Description

A KeyWordDetectorStateObserverInterface is an interface class that clients can extend to be notified of the state of the KeyWordDetector.

Member Enumeration Documentation

◆ KeyWordDetectorState

An enum class used to specify the states that the KeyWordDetector can be in.


Represents a healthy functioning KeyWordDetector.


Represents when the stream that a KeyWordDetector is reading from has been closed.


Represents an unknown error.

Constructor & Destructor Documentation

◆ ~KeyWordDetectorStateObserverInterface()

virtual alexaClientSDK::avsCommon::sdkInterfaces::KeyWordDetectorStateObserverInterface::~KeyWordDetectorStateObserverInterface ( )


Member Function Documentation

◆ onStateChanged()

virtual void alexaClientSDK::avsCommon::sdkInterfaces::KeyWordDetectorStateObserverInterface::onStateChanged ( KeyWordDetectorState  keyWordDetectorState)
pure virtual

Used to notify the observer of the KeyWordDetector of state changes and errors when reading from its stream in case the user needs to initialize a new stream.

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

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