AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <ContextRequesterInterface.h>
Public Member Functions | |
virtual | ~ContextRequesterInterface ()=default |
virtual void | onContextAvailable (const std::string &jsonContext) |
virtual void | onContextAvailable (const endpoints::EndpointIdentifier &endpointId, const avs::AVSContext &endpointContext, ContextRequestToken requestToken) |
virtual void | onContextFailure (const ContextRequestError error) |
virtual void | onContextFailure (const ContextRequestError error, ContextRequestToken token) |
This specifies the interface to a contextRequester.
|
virtualdefault |
Destructor.
|
inlinevirtual |
This is called by the ContextManager once the context is ready and available.
ContextRequester
should perform minimum processing and return quickly. Otherwise it will block the processing of updating the of other ContextProviders
.jsonContext | Context information.Context provided is of the format {"context"[{...}, {...}]} |
Reimplemented in alexaClientSDK::capabilityAgents::aip::AudioInputProcessor, alexaClientSDK::acsdkBluetooth::Bluetooth, alexaClientSDK::acsdkExternalMediaPlayer::ExternalMediaPlayer, alexaClientSDK::capabilityAgents::speechSynthesizer::SpeechSynthesizer, alexaClientSDK::aplCapabilityCommon::BaseAPLCapabilityAgent, alexaClientSDK::capabilityAgents::playbackController::PlaybackController, alexaClientSDK::diagnostics::DevicePropertyAggregator, and alexaClientSDK::synchronizeStateSender::PostConnectSynchronizeStateSender.
|
inlinevirtual |
This is called by the ContextManager once the context is ready and available.
ContextRequester
should perform minimum processing and return quickly. Otherwise it will block the processing of updating the of other ContextProviders
.endpointId | The ID used to identify the endpoint to which this context belong. |
endpointContext | The state of all capabilities related to the given endpoint. |
requestToken | Token used to identify a specific context request. |
Reimplemented in alexaClientSDK::capabilityAgents::alexa::AlexaInterfaceMessageSender.
|
inlinevirtual |
The contextManager calls this if it is unable to process a getContext
request successfully.
ContextRequester
should perform minimum processing and return quickly. Otherwise it will block the processing of updating the of other ContextProviders
.error | The reason why the getContext request failed. |
Reimplemented in alexaClientSDK::capabilityAgents::aip::AudioInputProcessor, alexaClientSDK::acsdkBluetooth::Bluetooth, alexaClientSDK::acsdkExternalMediaPlayer::ExternalMediaPlayer, alexaClientSDK::capabilityAgents::speechSynthesizer::SpeechSynthesizer, alexaClientSDK::aplCapabilityCommon::BaseAPLCapabilityAgent, alexaClientSDK::capabilityAgents::playbackController::PlaybackController, alexaClientSDK::diagnostics::DevicePropertyAggregator, and alexaClientSDK::synchronizeStateSender::PostConnectSynchronizeStateSender.
|
inlinevirtual |
The contextManager calls this if it is unable to process a getContext
request successfully.
ContextRequester
should perform minimum processing and return quickly. Otherwise it will block the processing of updating the of other ContextProviders
. error | The reason why the getContext request failed. |
requestToken | Token used to identify a specific context request. |
Reimplemented in alexaClientSDK::capabilityAgents::alexa::AlexaInterfaceMessageSender.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0