|
void | addObserver (std::shared_ptr< AlertObserverInterface > observer) |
|
void | removeObserver (std::shared_ptr< AlertObserverInterface > observer) |
|
void | removeAllAlerts () |
|
void | onLocalStop () |
|
void | clearData () override |
|
|
avsCommon::avs::DirectiveHandlerConfiguration | getConfiguration () const override |
|
void | handleDirectiveImmediately (std::shared_ptr< avsCommon::avs::AVSDirective > directive) override |
|
void | preHandleDirective (std::shared_ptr< DirectiveInfo > info) override |
|
void | handleDirective (std::shared_ptr< DirectiveInfo > info) override |
|
void | cancelDirective (std::shared_ptr< DirectiveInfo > info) override |
|
void | onDeregistered () override |
|
void | onConnectionStatusChanged (const Status status, const ChangedReason reason) override |
|
void | onFocusChanged (avsCommon::avs::FocusState focusState, avsCommon::avs::MixingBehavior behavior) override |
|
void | onAlertStateChange (const std::string &token, const std::string &alertType, AlertObserverInterface::State state, const std::string &reason) override |
|
|
void | onFocusChanged (const std::string &channelName, avsCommon::avs::FocusState newFocus) override |
|
|
std::unordered_set< std::shared_ptr< avsCommon::avs::CapabilityConfiguration > > | getCapabilityConfigurations () override |
|
|
void | onSpeakerSettingsChanged (const Source &source, const avsCommon::sdkInterfaces::ChannelVolumeInterface::Type &type, const avsCommon::sdkInterfaces::SpeakerInterface::SpeakerSettings &settings) override |
|
virtual | ~CapabilityAgent ()=default |
|
void | preHandleDirective (std::shared_ptr< AVSDirective > directive, std::unique_ptr< sdkInterfaces::DirectiveHandlerResultInterface > result) override final |
|
bool | handleDirective (const std::string &messageId) override final |
|
void | cancelDirective (const std::string &messageId) override final |
|
Public Member Functions inherited from alexaClientSDK::avsCommon::sdkInterfaces::DirectiveHandlerInterface |
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 |
|
virtual | ~ChannelObserverInterface ()=default |
|
virtual | ~StateProviderInterface ()=default |
|
virtual void | provideState (const avs::NamespaceAndName &stateProviderName, const ContextRequestToken stateRequestToken) |
|
virtual void | provideState (const avs::CapabilityTag &stateProviderName, const ContextRequestToken stateRequestToken) |
|
virtual bool | canStateBeRetrieved () |
|
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) |
|
virtual | ~ConnectionStatusObserverInterface ()=default |
|
virtual | ~CapabilityConfigurationInterface ()=default |
|
virtual | ~SpeakerManagerObserverInterface ()=default |
|
virtual | ~FocusManagerObserverInterface ()=default |
|
virtual | ~AlertObserverInterface ()=default |
|
| RequiresShutdown (const std::string &name) |
|
virtual | ~RequiresShutdown () |
| Destructor. More...
|
|
const std::string & | name () const |
|
void | shutdown () |
|
bool | isShutdown () const |
|
Public Member Functions inherited from alexaClientSDK::registrationManager::CustomerDataHandler |
| CustomerDataHandler (std::shared_ptr< CustomerDataManager > customerDataManager) |
|
virtual | ~CustomerDataHandler () |
|
|
enum | Status { Status::DISCONNECTED,
Status::PENDING,
Status::CONNECTED
} |
|
enum | ChangedReason {
ChangedReason::NONE,
ChangedReason::SUCCESS,
ChangedReason::UNRECOVERABLE_ERROR,
ChangedReason::ACL_CLIENT_REQUEST,
ChangedReason::ACL_DISABLED,
ChangedReason::DNS_TIMEDOUT,
ChangedReason::CONNECTION_TIMEDOUT,
ChangedReason::CONNECTION_THROTTLED,
ChangedReason::INVALID_AUTH,
ChangedReason::PING_TIMEDOUT,
ChangedReason::WRITE_TIMEDOUT,
ChangedReason::READ_TIMEDOUT,
ChangedReason::FAILURE_PROTOCOL_ERROR,
ChangedReason::INTERNAL_ERROR,
ChangedReason::SERVER_INTERNAL_ERROR,
ChangedReason::SERVER_SIDE_DISCONNECT,
ChangedReason::SERVER_ENDPOINT_CHANGED
} |
|
enum | Source { Source::DIRECTIVE,
Source::LOCAL_API
} |
| Indicates whether the source of the call is from an AVS Directive or through a Local API call. More...
|
|
enum | State {
State::READY,
State::STARTED,
State::STOPPED,
State::SNOOZED,
State::COMPLETED,
State::PAST_DUE,
State::FOCUS_ENTERED_FOREGROUND,
State::FOCUS_ENTERED_BACKGROUND,
State::ERROR,
State::DELETED,
State::SCHEDULED_FOR_LATER
} |
|
| CapabilityAgent (const std::string &nameSpace, std::shared_ptr< sdkInterfaces::ExceptionEncounteredSenderInterface > exceptionEncounteredSender) |
|
virtual std::shared_ptr< DirectiveInfo > | createDirectiveInfo (std::shared_ptr< AVSDirective > directive, std::unique_ptr< sdkInterfaces::DirectiveHandlerResultInterface > result) |
|
void | removeDirective (const std::string &messageId) |
|
void | sendExceptionEncounteredAndReportFailed (std::shared_ptr< DirectiveInfo > info, const std::string &message, avsCommon::avs::ExceptionErrorType type=avsCommon::avs::ExceptionErrorType::INTERNAL_ERROR) |
|
const std::pair< std::string, std::string > | buildJsonEventString (const std::string &eventName, const std::string &dialogRequestIdString="", const std::string &payload="{}", const std::string &context="") const |
|
const std::string | m_namespace |
| The namespace of the capability agent. More...
|
|
std::shared_ptr< sdkInterfaces::ExceptionEncounteredSenderInterface > | m_exceptionEncounteredSender |
| Object to use to send exceptionEncountered messages. More...
|
|
This class implements an Alerts capability agent.
Used to notify the observer of the Channel of focus changes. Once called, the client should make a user observable change only and return immediately. Any additional work that needs to be done should be done on a separate thread or after returning. "User observable change" here refers to events that the end user of the product can visibly see or hear. For example, Alexa speech or music playing would be examples of user observable changes. Other work, such as database storing, logging, or communicating via network should be done on a different thread. Not doing so could result in delays for other clients trying to access the Channel.
- Parameters
-
newFocus | The new Focus of the channel. |
behavior | The mixingBehavior for the ChannelObserver to take as per the interrupt model |
- Note
- when newFocus is FocusState::FOREGROUND, the MixingBehavior shall be guaranteed to be PRIMARY when newFocus is FocusState::NONE, the MixingBehavior shall be guaranteed to be MUST_STOP
Reimplemented from alexaClientSDK::avsCommon::avs::CapabilityAgent.