Provides data for the method_name_completed event.
- Inheritance
- xtd::event_args → xtd::speech::synthesis::prompt_event_args
- Header
#include <xtd/speech/synthesis/prompt_event_args>
- Namespace
- xtd::speech::synthesis
- Library
- xtd.core
|
static const event_args | empty |
| Provides a value to use with events that do not have event data. More...
|
|
static bool | equals (const object &object_a, const object &object_b) noexcept |
| Determines whether the specified object instances are considered equal. More...
|
|
static bool | reference_equals (const object &object_a, const object &object_b) noexcept |
| Determines whether the specified object instances are the same instance. More...
|
|
◆ cancelled()
bool xtd::speech::synthesis::prompt_event_args::cancelled |
( |
| ) |
const |
|
inlinenoexcept |
Gets a value indicating whether an asynchronous operation has been canceled.
- Returns
- true if the background operation has been canceled; otherwise false. The default is false.
◆ error()
std::optional<std::reference_wrapper<const xtd::system_exception> > xtd::speech::synthesis::prompt_event_args::error |
( |
| ) |
const |
|
inlinenoexcept |
Gets a value indicating which error occurred during an asynchronous operation.
- Returns
- An xtd::system_exception instance, if an error occurred during an asynchronous operation; otherwise std::nullopt.
◆ prompt()
Gets the prompt associated with the event.
- Returns
- The Prompt object associated with the event.
◆ user_state()
std::any xtd::speech::synthesis::prompt_event_args::user_state |
( |
| ) |
const |
|
inlinenoexcept |
Gets the unique identifier for the asynchronous task.
- Returns
- An object reference that uniquely identifies the asynchronous task.
The documentation for this class was generated from the following file: