![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Minimal DirectiveHandlerInterface implementation so we can generate instance pointers. More...
Public Member Functions | |
void | handleDirectiveImmediately (std::shared_ptr< AVSDirective >) override |
void | preHandleDirective (std::shared_ptr< AVSDirective >, std::unique_ptr< sdkInterfaces::DirectiveHandlerResultInterface >) override |
bool | handleDirective (const std::string &) override |
void | cancelDirective (const std::string &) override |
void | onDeregistered () override |
avs::DirectiveHandlerConfiguration | getConfiguration () const override |
![]() | |
virtual | ~DirectiveHandlerInterface ()=default |
virtual void | handleDirectiveImmediately (std::shared_ptr< avsCommon::avs::AVSDirective > directive)=0 |
virtual void | preHandleDirective (std::shared_ptr< avsCommon::avs::AVSDirective > directive, std::unique_ptr< DirectiveHandlerResultInterface > result)=0 |
Minimal DirectiveHandlerInterface implementation so we can generate instance pointers.
|
inlineoverridevirtual |
Cancel an ongoing preHandleDirective()
or handleDirective()
operation for the specified AVSDirective
. Once this has been called the DirectiveHandler
should not expect to receive further calls regarding this directive.
AVSDirectives
.messageId | The message ID of a directive previously passed to preHandleDirective(). |
Implements alexaClientSDK::avsCommon::sdkInterfaces::DirectiveHandlerInterface.
|
inlineoverridevirtual |
Returns the configuration of the directive handler.
The configuration consists of multiple directive routing rules and their respective blocking policy. The directives will be matched from the most specific rule (with all fields defined) to the least specific rule (which only matches the directive endpointId).
avs::DirectiveHandlerConfiguration
of the handler. Implements alexaClientSDK::avsCommon::sdkInterfaces::DirectiveHandlerInterface.
|
inlineoverridevirtual |
Handle the action specified by the directive identified by messageId
. The handling of subsequent directives with the same DialogRequestId
may be blocked until the DirectiveHandler
calls the setSucceeded()
method of the DirectiveHandlingResult
instance passed in to the preHandleDirective()
call for the directive specified by messageId
. If handling of this directive fails such that subsequent directives with the same DialogRequestId
should be cancelled, this DirectiveHandler
should instead call setFailed() to indicate a failure.
ExceptionEncountered
message should be sent to AVS. AVSDirectives
.messageId | The message ID of a directive previously passed to preHandleDirective() . |
false
when messageId
is not recognized, else true
. Any errors related to handling of a valid messageId should be reported using DirectiveHandlerResultInterface::setFailed()
. Implements alexaClientSDK::avsCommon::sdkInterfaces::DirectiveHandlerInterface.
|
inlineoverride |
|
inlineoverridevirtual |
Notification that this handler has been de-registered and will not receive any more calls.
Implements alexaClientSDK::avsCommon::sdkInterfaces::DirectiveHandlerInterface.
|
inlineoverride |
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0