AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Observes user input from the console and notifies the interaction manager of the user's intentions. More...
#include <UserInputManager.h>
Public Member Functions | |
SampleAppReturnCode | run () |
RegistrationObserverInterface Functions | |
void | onLogout () override |
Public Member Functions inherited from alexaClientSDK::avsCommon::sdkInterfaces::AuthObserverInterface | |
virtual | ~AuthObserverInterface ()=default |
virtual void | onAuthStateChange (State newState, Error error)=0 |
Public Member Functions inherited from alexaClientSDK::avsCommon::sdkInterfaces::CapabilitiesDelegateObserverInterface | |
virtual | ~CapabilitiesDelegateObserverInterface ()=default |
Public Member Functions inherited from alexaClientSDK::registrationManager::RegistrationObserverInterface | |
virtual | ~RegistrationObserverInterface ()=default |
Static Public Member Functions | |
static std::unique_ptr< UserInputManager > | create (std::shared_ptr< sampleApplications::common::InteractionManager > interactionManager, std::shared_ptr< GuiRenderer > guiRenderer, std::shared_ptr< ConsoleReader > consoleReader, std::shared_ptr< avsCommon::sdkInterfaces::LocaleAssetsManagerInterface > localeAssetsManager, const avsCommon::sdkInterfaces::endpoints::EndpointIdentifier &defaultEndpointId) |
Observes user input from the console and notifies the interaction manager of the user's intentions.
|
static |
Create a UserInputManager.
interactionManager | An instance of the InteractionManager used to manage user input. |
guiRenderer | An instance of GuiRenderer to be used to fetch playback states. |
consoleReader | The ConsoleReader to read inputs from console. |
localeAssetsManager | The LocaleAssetsManagerInterface that provides the supported locales. |
defaultEndpointId | The EndpointIdentifier of the default endpoint. |
UserInputManager
, or nullptr
if the operation failed.
|
overridevirtual |
Notification that the current customer has logged out.
Implements alexaClientSDK::registrationManager::RegistrationObserverInterface.
SampleAppReturnCode alexaClientSDK::sampleApp::UserInputManager::run | ( | ) |
Processes user input until a quit command or a device reset is triggered.
SampleAppReturnCode
. AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0