![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <AVSGatewayManager.h>
A class to manage the AVS Gateway the device is currently connected to.
It also provides a method to execute the gateway verification sequence by creating the PostConnectVerifyGatewaySender
. Before establishing connection with AVS, clients must send the VerifyGateway event. If the response to this event is a 204 the client is connected to the right endpoint. If the response is 200, the client must connect to the new endpoint sent in the SetGateway directive.
Note that the AVS gateway verification sequence should be performed only on fresh devices or after a factory reset.
alexaClientSDK::avsGatewayManager::AVSGatewayManager::~AVSGatewayManager | ( | ) |
Destructor.
|
override |
|
overridevirtual |
Reset any internal state that may be associated with a particular user.
Implements alexaClientSDK::registrationManager::CustomerDataHandlerInterface.
|
static |
Creates an instance of the AVSGatewayManager
.
avsGatewayManagerStorage | The AVSGatewayManagerInterface to store avs gateway information. |
customerDataManager | The CustomerDataManager object that will track the CustomerDataHandler. |
configurationRoot | The ConfigurationNode to get AVS gateway information from the config file. |
authDelegate | The AuthDelegateInterface to add AuthObservers to take action once Auth state changes |
metricRecorder | Optional MetricRecorderInterface object for sending metrics. |
AVSGatewayManager
.
|
static |
Creates an instance of the AVSGatewayManagerInterface
.
avsGatewayManagerStorage | The AVSGatewayManagerInterface to store avs gateway information. |
authDelegate | The AuthDelegateInterface to add AuthObservers to take action once Auth state changes |
customerDataManager | The CustomerDataManager object that will track the CustomerDataHandler. |
configurationRoot | The ConfigurationNode to get AVS gateway information from the config file. |
providerRegistrar | Object with which to register the new instance as a post connect operation provider. |
metricRecorder | Optional MetricRecorderInterface object for sending metrics. |
AVSGatewayManager
.
|
overridevirtual |
Creates a post connect operation instance.
PostConnectOperationInterface
. Implements alexaClientSDK::avsCommon::sdkInterfaces::PostConnectOperationProviderInterface.
|
overridevirtual |
Gets the AVS Gateway URL.
Implements alexaClientSDK::avsCommon::sdkInterfaces::AVSGatewayManagerInterface.
void alexaClientSDK::avsGatewayManager::AVSGatewayManager::onGatewayVerified | ( | const std::shared_ptr< avsCommon::sdkInterfaces::PostConnectOperationInterface > & | verifyGatewaySender | ) |
Callback method that will be called from PostConnectVerifyGatewaySender
to signal successful verification of AVS gateway
verifyGatewaySender | The pointer to the PostConnectVerifyGatewaySender . |
|
override |
|
override |
|
overridevirtual |
Sets the AVS Gateway URL.
avsGatewayURL | The string representing the AVS Gateway URL. |
Implements alexaClientSDK::avsCommon::sdkInterfaces::AVSGatewayManagerInterface.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0