AlexaClientSDK
1.22.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <CapabilitiesObserverInterface.h>
Public Types | |
enum | State { State::UNINITIALIZED, State::SUCCESS, State::FATAL_ERROR, State::RETRIABLE_ERROR } |
The enum State describes the state of the CapabilitiesDelegate. More... | |
enum | Error { Error::UNINITIALIZED, Error::SUCCESS, Error::UNKNOWN_ERROR, Error::CANCELED, Error::FORBIDDEN, Error::SERVER_INTERNAL_ERROR, Error::BAD_REQUEST } |
The enum Error encodes possible errors which may occur when changing state. More... | |
Public Member Functions | |
virtual | ~CapabilitiesObserverInterface ()=default |
virtual void | onCapabilitiesStateChange (State newState, Error newError, const std::vector< std::string > &addedOrUpdatedEndpointIds, const std::vector< std::string > &deletedEndpointIds)=0 |
This interface is used to observe changes to the state of the CapabilitiesDelegate.
The enum Error encodes possible errors which may occur when changing state.
The enum State describes the state of the CapabilitiesDelegate.
|
virtualdefault |
Virtual destructor to assure proper cleanup of derived types.
|
pure virtual |
Notification that an CapabilitiesDelegate state has changed.
newState | The new state of the CapabilitiesDelegate. |
newError | The error associated to the state change. |
addedOrUpdatedEndpointIds | The endpoint identifiers of endpoints sent in the addOrUpdateReport. |
deletedEndpointIds | The endpoint identifiers of endpoints sent in the deleteReport. |
AlexaClientSDK 1.22.0 - Copyright 2016-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0