![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Namespaces | |
| attachment | |
| capabilitySemantics | |
| constants | |
| directiveRoutingRule | |
| initialization | |
| resources | |
| speakerConstants | |
| test | |
Classes | |
| class | AbstractAVSConnectionManager |
| class | AVSContext |
| class | AVSDirective |
| struct | AVSDiscoveryEndpointAttributes |
| class | AVSMessage |
| struct | AVSMessageEndpoint |
| class | AVSMessageHeader |
| class | BlockingPolicy |
| class | CapabilityAgent |
| struct | CapabilityConfiguration |
| class | CapabilityResources |
| struct | CapabilityState |
| struct | CapabilityTag |
| struct | ComponentConfiguration |
| class | DialogUXStateAggregator |
| class | EditableMessageRequest |
| class | ExceptionEncounteredSender |
| class | HandlerAndPolicy |
| class | MessageRequest |
| class | NamespaceAndName |
| struct | PlayRequestor |
| class | WaitableMessageRequest |
Typedefs | |
| using | AudioInputStream = utils::sds::SharedDataStream< utils::sds::InProcessSDSTraits > |
| The type used store and stream binary data. More... | |
| using | CapabilityChangeNotifier = notifier::Notifier< avsCommon::sdkInterfaces::CapabilityConfigurationChangeObserverInterface > |
| using | CapabilityChangeNotifierInterface = notifierInterfaces::NotifierInterface< sdkInterfaces::CapabilityConfigurationChangeObserverInterface > |
| using | DirectiveHandlerConfiguration = std::unordered_map< directiveRoutingRule::DirectiveRoutingRule, BlockingPolicy > |
Functions | |
| std::ostream & | operator<< (std::ostream &stream, AlexaResponseType responseType) |
| std::string | avsDirectiveParseStatusToString (AVSDirective::ParseStatus status) |
| std::ostream & | operator<< (std::ostream &stream, const AVSDirective::ParseStatus &status) |
| std::ostream & | operator<< (std::ostream &stream, const BlockingPolicy &policy) |
| bool | operator== (const BlockingPolicy &lhs, const BlockingPolicy &rhs) |
| bool | operator!= (const BlockingPolicy &lhs, const BlockingPolicy &rhs) |
| bool | operator== (const CapabilityConfiguration::Properties &lhs, const CapabilityConfiguration::Properties &rhs) |
| bool | operator!= (const CapabilityConfiguration::Properties &lhs, const CapabilityConfiguration::Properties &rhs) |
| bool | operator== (const CapabilityConfiguration &lhs, const CapabilityConfiguration &rhs) |
| bool | operator!= (const CapabilityConfiguration &lhs, const CapabilityConfiguration &rhs) |
| bool | operator== (const std::shared_ptr< CapabilityConfiguration > &lhs, const std::shared_ptr< CapabilityConfiguration > &rhs) |
| bool | operator!= (const std::shared_ptr< CapabilityConfiguration > &lhs, const std::shared_ptr< CapabilityConfiguration > &rhs) |
| std::ostream & | operator<< (std::ostream &stream, const CapabilityTag &identifier) |
| bool | operator== (const ComponentConfiguration &lhs, const ComponentConfiguration &rhs) |
| bool | operator!= (const ComponentConfiguration &lhs, const ComponentConfiguration &rhs) |
| bool | operator== (const std::shared_ptr< ComponentConfiguration > &lhs, const std::shared_ptr< ComponentConfiguration > &rhs) |
| bool | operator!= (const std::shared_ptr< ComponentConfiguration > &lhs, const std::shared_ptr< ComponentConfiguration > &rhs) |
| std::string | contentTypeToString (ContentType contentType) |
| std::ostream & | operator<< (std::ostream &stream, const ContentType &contentType) |
| const std::pair< std::string, std::string > | buildJsonEventString (const std::string &nameSpace, const std::string &eventName, const std::string &dialogRequestIdValue="", const std::string &jsonPayloadValue="{}", const std::string &jsonContext="") |
| std::string | buildJsonEventString (const AVSMessageHeader &eventHeader, const utils::Optional< AVSMessageEndpoint > &endpoint, const std::string &jsonPayloadValue, const std::string &jsonContext) |
| std::string | buildJsonEventString (const AVSMessageHeader &eventHeader, const utils::Optional< AVSMessageEndpoint > &endpoint=utils::Optional< AVSMessageEndpoint >(), const std::string &jsonPayloadValue="{}", const utils::Optional< AVSContext > &context=utils::Optional< AVSContext >()) |
| std::ostream & | operator<< (std::ostream &stream, ExceptionErrorType type) |
| std::string | focusStateToString (FocusState state) |
| std::ostream & | operator<< (std::ostream &stream, const FocusState &state) |
| bool | operator== (const HandlerAndPolicy &lhs, const HandlerAndPolicy &rhs) |
| bool | operator!= (const HandlerAndPolicy &lhs, const HandlerAndPolicy &rhs) |
| int | indicatorStateToInt (IndicatorState state) |
| IndicatorState | intToIndicatorState (int stateNum) |
| std::ostream & | operator<< (std::ostream &stream, IndicatorState state) |
| std::string | mixingBehaviorToString (MixingBehavior behavior) |
| MixingBehavior | getMixingBehavior (const std::string &input) |
| std::ostream & | operator<< (std::ostream &stream, const MixingBehavior &behavior) |
| std::string | PlaybackButtonToString (PlaybackButton button) |
| std::string | PlaybackToggleToString (PlaybackToggle toggle) |
| std::ostream & | operator<< (std::ostream &stream, const PlaybackButton &button) |
| std::ostream & | operator<< (std::ostream &stream, const PlaybackToggle &toggle) |
| std::string | playBehaviorToString (PlayBehavior playBehavior) |
| bool | stringToPlayBehavior (const std::string &text, PlayBehavior *playBehavior) |
| std::ostream & | operator<< (std::ostream &stream, const PlayBehavior &playBehavior) |
| bool | convertToValue (const rapidjson::Value &documentNode, PlayBehavior *playBehavior) |
| std::string | playerActivityToString (PlayerActivity playerActivity) |
| std::ostream & | operator<< (std::ostream &stream, const PlayerActivity &playerActivity) |
| std::istream & | operator>> (std::istream &is, PlayerActivity &value) |
| bool | operator== (const PlayRequestor &playRequestorA, const PlayRequestor &playRequestorB) |
| std::string | requesterToString (Requester requester) |
| std::ostream & | operator<< (std::ostream &stream, Requester requester) |
Variables | |
| static const auto | CAPABILITY_INTERFACE_TYPE_KEY = "type" |
Key for interface type in the CapabilityConfiguration map. More... | |
| static const auto | CAPABILITY_INTERFACE_NAME_KEY = "interface" |
Key for interface name in the CapabilityConfiguration map. More... | |
| static const auto | CAPABILITY_INTERFACE_VERSION_KEY = "version" |
Key for interface version in the CapabilityConfiguration map. More... | |
| static const auto | CAPABILITY_INTERFACE_CONFIGURATIONS_KEY = "configurations" |
Key for interface configurations in the CapabilityConfiguration map. More... | |
| using alexaClientSDK::avsCommon::avs::AudioInputStream = typedef utils::sds::SharedDataStream<utils::sds::InProcessSDSTraits> |
The type used store and stream binary data.
| using alexaClientSDK::avsCommon::avs::CapabilityChangeNotifier = typedef notifier::Notifier<avsCommon::sdkInterfaces::CapabilityConfigurationChangeObserverInterface> |
Implementation of CapabilityChangeNotifierInterface
| using alexaClientSDK::avsCommon::avs::CapabilityChangeNotifierInterface = typedef notifierInterfaces::NotifierInterface<sdkInterfaces::CapabilityConfigurationChangeObserverInterface> |
Interface for registering to observe capability change.
| using alexaClientSDK::avsCommon::avs::DirectiveHandlerConfiguration = typedef std::unordered_map<directiveRoutingRule::DirectiveRoutingRule, BlockingPolicy> |
Map of blocking policies per DirectiveRoutingRule. This is used by a DirectiveHandlerInterface to declare which directives it can handle.
An enum class indicating possible response from the endpoint on a controller API call. Response are derived from
|
strong |
| Enumerator | |
|---|---|
| MIXABLE | Indicates that the corresponding Activity is mixable with other channels Such Activities may duck upon receiving FocusState::BACKGROUND focus |
| NONMIXABLE | Indicates that the corresponding Activity is not mixable with other channels Such Activities must pause upon receiving FocusState::BACKGROUND focus |
| UNDEFINED | Indicates that the corresponding ContentType was undefined/unitialized. |
| NUM_CONTENT_TYPE | Indicates the Number of |
|
strong |
An enum class used to specify the levels of focus that a Channel can have.
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
Used to determine how a client must handle queueing and playback of a stream.
|
strong |
Identifies the player state.
|
strong |
An enum class used to specify the refresh policy for the state information provided by a stateProviderInterface. The stateProviderInterface must specify the refresh policy when it updates its state via setState.
Note: When a stateProviderInterface provides an empty state, the behavior is as follows:
StateRefreshPolicy ALWAYS and NEVER, the empty state is included in the context.StateRefreshPolicy SOMETIMES, the empty state is NOT included in the context.
|
inline |
This function converts the provided ParseStatus to a string.
| status | The ParseStatus to convert to a string. |
ParseStatus. | const std::pair<std::string, std::string> alexaClientSDK::avsCommon::avs::buildJsonEventString | ( | const std::string & | nameSpace, |
| const std::string & | eventName, | ||
| const std::string & | dialogRequestIdValue = "", |
||
| const std::string & | jsonPayloadValue = "{}", |
||
| const std::string & | jsonContext = "" |
||
| ) |
Builds a JSON event string which includes the header, the payload and an optional context. The header includes the namespace, name, message Id and an optional dialogRequestId. The message Id required for the header is a random string that is generated and added to the header.
| nameSpace | The namespace of the event to be include in the header. |
| eventName | The name of the event to be include in the header. |
| dialogRequestIdString | Optional value associated with the "dialogRequestId" key. |
| payload | Optional payload value associated with the "payload" key. |
| context | Optional context to be sent with the event message. |
| std::string alexaClientSDK::avsCommon::avs::buildJsonEventString | ( | const AVSMessageHeader & | eventHeader, |
| const utils::Optional< AVSMessageEndpoint > & | endpoint, | ||
| const std::string & | jsonPayloadValue, | ||
| const std::string & | jsonContext | ||
| ) |
Builds a JSON event string which includes the header, optional endpoint (if the endpoint is the source of the event), the payload, and jsonContext.
| eventHeader | The event's AVSMessageHeader. |
| endpoint | The optional endpoint which was the source of this event. |
| jsonPayloadValue | The payload value associated with the "payload" key. The value must be a stringified json. |
| jsonContext | The context value associated with the "context" key. The value must be a stringified json. |
| std::string alexaClientSDK::avsCommon::avs::buildJsonEventString | ( | const AVSMessageHeader & | eventHeader, |
| const utils::Optional< AVSMessageEndpoint > & | endpoint = utils::Optional< AVSMessageEndpoint >(), |
||
| const std::string & | jsonPayloadValue = "{}", |
||
| const utils::Optional< AVSContext > & | context = utils::Optional< AVSContext >() |
||
| ) |
Builds a JSON event string which includes the header, the payload and an optional context. The header includes the namespace, name, message Id and an optional dialogRequestId. The message Id required for the header is a random string that is generated and added to the header.
| eventHeader | The event's AVSMessageHeader. |
| endpoint | The optional endpoint which was the source of this event. |
| jsonPayloadValue | The payload value associated with the "payload" key. The value must be a stringified json. |
| context | Optional AVSContext to be sent with the event message. |
|
inline |
This function converts the provided ContentType to a string.
| contentType | The ContentType to convert to a string. |
contentType.
|
inline |
Convert a PlayBehavior to a rapidjson::Value.
| documentNode | The rapidjson::Value to write to. |
| playBehavior | The PlayBehavior to convert. |
true if conversion is successful, else false.
|
inline |
This function converts the provided FocusState to a string.
| state | The FocusState to convert to a string. |
state.
|
inline |
This function reverse maps the provided string to corresponding MixingBehavior Implementation as specified by mixingBehaviorToString
| input | string to convert to corresponding MixingBehavior |
MixingBehavior that corresponds to the input string. In case of error the API returns MixingBehavior::UNDEFINED
|
inline |
Convert an IndicatorState to an int.
| state | The IndicatorState to convert. |
|
inline |
Convert an int into an IndicatorState.
| stateNum | The int to convert. |
|
inline |
This function converts the provided MixingBehavior to a string.
| behavior | The MixingBehavior to convert to a string. |
behavior. | bool alexaClientSDK::avsCommon::avs::operator!= | ( | const ComponentConfiguration & | lhs, |
| const ComponentConfiguration & | rhs | ||
| ) |
Operator != for ComponentConfiguration
| lhs | The left hand side of the != operation. |
| rhs | The right hand side of the != operation. |
rhs are not equivalent. | bool alexaClientSDK::avsCommon::avs::operator!= | ( | const HandlerAndPolicy & | lhs, |
| const HandlerAndPolicy & | rhs | ||
| ) |
!= operator.
| lhs | The HandlerAndPolicy instance on the left hand side of the == operation. |
| rhs | The HandlerAndPolicy instance on the right hand side of the != operation. |
lhs instance is NOT equal to the rhs instance. | bool alexaClientSDK::avsCommon::avs::operator!= | ( | const std::shared_ptr< ComponentConfiguration > & | lhs, |
| const std::shared_ptr< ComponentConfiguration > & | rhs | ||
| ) |
Operator != for shared_ptr of ComponentConfiguration
| lhs | The left hand side of the != operation. |
| rhs | The right hand side of the != operation. |
rhs are not equivalent. | bool alexaClientSDK::avsCommon::avs::operator!= | ( | const CapabilityConfiguration::Properties & | lhs, |
| const CapabilityConfiguration::Properties & | rhs | ||
| ) |
Operator != for CapabilityConfiguration::Properties
| lhs | The left hand side of the == operation. |
| rhs | The right hand side of the == operation. |
rhs are not equivalent. | bool alexaClientSDK::avsCommon::avs::operator!= | ( | const BlockingPolicy & | lhs, |
| const BlockingPolicy & | rhs | ||
| ) |
Not Equal-to operator comparing two BlockingPolicys *
| lhs | The left side argument. |
| rhs | The right side argument. |
lhs and rhs are not equal | bool alexaClientSDK::avsCommon::avs::operator!= | ( | const CapabilityConfiguration & | lhs, |
| const CapabilityConfiguration & | rhs | ||
| ) |
Operator != for CapabilityConfiguration
| lhs | The left hand side of the != operation. |
| rhs | The right hand side of the != operation. |
rhs are not equivalent. | bool alexaClientSDK::avsCommon::avs::operator!= | ( | const std::shared_ptr< CapabilityConfiguration > & | lhs, |
| const std::shared_ptr< CapabilityConfiguration > & | rhs | ||
| ) |
Operator != for std::shared_ptr<CapabilityConfiguration>
| lhs | The left hand side of the != operation. |
| rhs | The right hand side of the != operation. |
rhs are not equivalent.
|
inline |
|
inline |
Write a Requester value to an ostream as a string.
| stream | The stream to write the value to. |
| requester | The Requester value to write to the ostream as a string. |
ostream that was passed in and written to.
|
inline |
|
inline |
Write a FocusState value to an ostream as a string.
| stream | The stream to write the value to. |
| state | The FocusState value to write to the ostream as a string. |
ostream that was passed in and written to.
|
inline |
Write a ContentType value to an ostream as a string.
| stream | The stream to write the value to. |
| contenType | The ContentType value to write to the ostream as a string. |
ostream that was passed in and written to.
|
inline |
Write a PlayerActivity value to an ostream.
| stream | The stream to write the value to. |
| playerActivity | The PlayerActivity value to write to the ostream as a string. |
ostream that was passed in and written to.
|
inline |
Write a CapabilityMessageIdentifier value to an ostream as a string.
| stream | The stream to write the value to. |
| identifier | The CapabilityMessageIdentifier value to be written. |
ostream that was passed in and written to.
|
inline |
Write a PlayBehavior value to an ostream.
| stream | The stream to write the value to. |
| playBehavior | The PlayBehavior value to write to the ostream as a string. |
ostream that was passed in and written to.
|
inline |
Insertion operator.
| stream | The std::ostream we are inserting into. |
| responseType | The AlexaResponseType whose name to insert into the stream. |
|
inline |
Write a MixingBehavior value to an ostream as a string.
| stream | The stream to write the value to. |
| behavior | The MixingBehavior value to write to the ostream as a string. |
ostream that was passed in and written to.
|
inline |
Write a BlockingPolicy value to an ostream as a string.
| stream | The stream to write the value to. |
| policy | The policy value to write to the ostream as a string. |
ostream that was passed in and written to.
|
inline |
Write a Button value to an ostream as a string.
| stream | The stream to write the value to. |
| button | The Button value to write to the ostream as a string. |
ostream that was passed in and written to.
|
inline |
Write a Toggle value to an ostream as a string.
| stream | The stream to write the value to. |
| toggle | The Toggle value to write to the ostream as a string. |
ostream that was passed in and written to.
|
inline |
Write a ParseStatus value to an ostream as a string.
| stream | The stream to write the value to. |
| status | The ParseStatus value to write to the ostream as a string. |
ostream that was passed in and written to.
|
inline |
| bool alexaClientSDK::avsCommon::avs::operator== | ( | const ComponentConfiguration & | lhs, |
| const ComponentConfiguration & | rhs | ||
| ) |
Operator == for ComponentConfiguration
| lhs | The left hand side of the == operation. |
| rhs | The right hand side of the == operation. |
rhs are equivalent. | bool alexaClientSDK::avsCommon::avs::operator== | ( | const HandlerAndPolicy & | lhs, |
| const HandlerAndPolicy & | rhs | ||
| ) |
== operator.
| lhs | The HandlerAndPolicy instance on the left hand side of the == operation. |
| rhs | The HandlerAndPolicy instance on the right hand side of the == operation. |
lhs instance is equal to the rhs instance. | bool alexaClientSDK::avsCommon::avs::operator== | ( | const std::shared_ptr< ComponentConfiguration > & | lhs, |
| const std::shared_ptr< ComponentConfiguration > & | rhs | ||
| ) |
Operator == for shared_ptr of ComponentConfiguration
| lhs | The left hand side of the == operation. |
| rhs | The right hand side of the == operation. |
rhs are equivalent. | bool alexaClientSDK::avsCommon::avs::operator== | ( | const BlockingPolicy & | lhs, |
| const BlockingPolicy & | rhs | ||
| ) |
Equal-to operator comparing two BlockingPolicys
| lhs | The left side argument. |
| rhs | The right side argument. |
lhs and rhs are equal | bool alexaClientSDK::avsCommon::avs::operator== | ( | const CapabilityConfiguration::Properties & | lhs, |
| const CapabilityConfiguration::Properties & | rhs | ||
| ) |
Operator == for CapabilityConfiguration::Properties
| lhs | The left hand side of the == operation. |
| rhs | The right hand side of the == operation. |
rhs are equivalent. | bool alexaClientSDK::avsCommon::avs::operator== | ( | const CapabilityConfiguration & | lhs, |
| const CapabilityConfiguration & | rhs | ||
| ) |
Operator == for CapabilityConfiguration
| lhs | The left hand side of the == operation. |
| rhs | The right hand side of the == operation. |
rhs are equivalent. | bool alexaClientSDK::avsCommon::avs::operator== | ( | const std::shared_ptr< CapabilityConfiguration > & | lhs, |
| const std::shared_ptr< CapabilityConfiguration > & | rhs | ||
| ) |
Operator == for std::shared_ptr<CapabilityConfiguration>
| lhs | The left hand side of the == operation. |
| rhs | The right hand side of the == operation. |
rhs are equivalent.
|
inline |
Converts an input string stream value to PlayerActivity.
| is | The string stream to retrieve the value from. | |
| [out] | value | The value to write to. |
|
inline |
Convert a PlaybackButton to std::string.
| button | The PlaybackButton to convert. |
button.
|
inline |
Convert a PlaybackToggle to std::string.
| toggle | The PlaybackToggle to convert. |
toggle.
|
inline |
Convert a PlayBehavior to an AVS-compliant std::string.
| playBehavior | The PlayBehavior to convert. |
playBehavior.
|
inline |
|
inline |
Converts an Requester enum to a string.
| requester | The Requester enum. |
|
inline |
Convert an AVS-compliant string to a PlayBehavior.
| text | The string to convert. | |
| [out] | playBehavior | The converted PlayBehavior. |
true if the string converted succesfully, else false.
|
static |
Key for interface configurations in the CapabilityConfiguration map.
|
static |
Key for interface name in the CapabilityConfiguration map.
|
static |
Key for interface type in the CapabilityConfiguration map.
|
static |
Key for interface version in the CapabilityConfiguration map.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0