text listener interface
More...
#include <text_interface.hh>
text listener interface
- See also
- ITextHandler
◆ onState()
virtual void NuguCapability::ITextListener::onState |
( |
TextState |
state, |
|
|
const std::string & |
dialog_id |
|
) |
| |
|
pure virtual |
◆ onComplete()
virtual void NuguCapability::ITextListener::onComplete |
( |
const std::string & |
dialog_id | ) |
|
|
pure virtual |
When server processing for text input requests is completed.
- Parameters
-
[in] | dialog_id | dialog request id |
◆ onError()
virtual void NuguCapability::ITextListener::onError |
( |
TextError |
error, |
|
|
const std::string & |
dialog_id |
|
) |
| |
|
pure virtual |
An error occurred during requesting text input.
- Parameters
-
[in] | error | text error |
[in] | dialog_id | dialog request id |
◆ handleTextCommand()
virtual bool NuguCapability::ITextListener::handleTextCommand |
( |
const std::string & |
text, |
|
|
const std::string & |
token |
|
) |
| |
|
pure virtual |
Handle text command and return whether consumed.
- Parameters
-
[in] | text | text command |
[in] | token | received token |
- Returns
- whether text command is consumed or not. If it return true, the event about failure of sending text input is sent to server.
The documentation for this class was generated from the following file: