![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <ConsoleReader.h>
Public Member Functions | |
| ConsoleReader () | |
| Constructor. More... | |
| ~ConsoleReader () | |
| Destructor. More... | |
| bool | read (const std::chrono::milliseconds timeout, char *data) |
ConsoleReader provides an alternative to std::cin where the users can specify the timeout for an input from the console.
| alexaClientSDK::sampleApp::ConsoleReader::ConsoleReader | ( | ) |
Constructor.
| alexaClientSDK::sampleApp::ConsoleReader::~ConsoleReader | ( | ) |
Destructor.
| bool alexaClientSDK::sampleApp::ConsoleReader::read | ( | const std::chrono::milliseconds | timeout, |
| char * | data | ||
| ) |
Reads an input from the console. This is a blocking call until an input is read or until the timeout has occurred.
| timeout | Timeout to wait for the input. | |
| [out] | data | A pointer to a single character. It will be set to the value of the last character which was read from the console. |
true if a character is read from the console. false if timeout has occurred. AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0