|
int | getAlertVolume () |
|
|
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 AlertInfo &alertInfo) 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 |
|
|
void | onSystemClockSynchronized () override |
|
|
void | clearData () override |
|
|
void | addObserver (std::shared_ptr< acsdkAlertsInterfaces::AlertObserverInterface > observer) override |
|
void | removeObserver (std::shared_ptr< acsdkAlertsInterfaces::AlertObserverInterface > observer) override |
|
void | removeAllAlerts () override |
|
void | onLocalStop () 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 | 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 bool | hasReportableStateProperties () |
|
virtual bool | shouldQueryState () |
|
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 void | onConnectionStatusChanged (const Status status, const std::vector< EngineConnectionStatus > &engineStatuses) |
|
virtual | ~CapabilityConfigurationInterface ()=default |
|
virtual | ~SpeakerManagerObserverInterface ()=default |
|
virtual | ~FocusManagerObserverInterface ()=default |
|
virtual | ~AlertObserverInterface ()=default |
|
virtual void | addObserver (std::shared_ptr< acsdkAlertsInterfaces::AlertObserverInterface > observer)=0 |
|
virtual void | removeObserver (std::shared_ptr< acsdkAlertsInterfaces::AlertObserverInterface > observer)=0 |
|
virtual | ~AlertsCapabilityAgentInterface ()=default |
|
virtual | ~SystemClockMonitorObserverInterface ()=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 (const std::shared_ptr< registrationManager::CustomerDataManagerInterface > &dataManager) |
|
virtual | ~CustomerDataHandler () |
|
Public Member Functions inherited from alexaClientSDK::registrationManager::CustomerDataHandlerInterface |
virtual | ~CustomerDataHandlerInterface ()=default |
|
|
static std::shared_ptr< AlertsCapabilityAgentInterface > | createAlertsCapabilityAgent (const std::shared_ptr< acsdkAlerts::renderer::Renderer > &alertRenderer, const std::shared_ptr< acsdkShutdownManagerInterfaces::ShutdownNotifierInterface > &shutdownNotifier, const std::shared_ptr< avsCommon::sdkInterfaces::AVSConnectionManagerInterface > &connectionManager, const std::shared_ptr< avsCommon::sdkInterfaces::ContextManagerInterface > &contextManager, const std::shared_ptr< avsCommon::sdkInterfaces::ExceptionEncounteredSenderInterface > &exceptionEncounteredSender, const acsdkManufactory::Annotated< avsCommon::sdkInterfaces::AudioFocusAnnotation, avsCommon::sdkInterfaces::FocusManagerInterface > &audioFocusManager, const std::shared_ptr< avsCommon::sdkInterfaces::MessageSenderInterface > &messageSender, const std::shared_ptr< avsCommon::sdkInterfaces::SpeakerManagerInterface > &speakerManager, const std::shared_ptr< avsCommon::sdkInterfaces::audio::AudioFactoryInterface > &audioFactory, const acsdkManufactory::Annotated< avsCommon::sdkInterfaces::endpoints::DefaultEndpointAnnotation, avsCommon::sdkInterfaces::endpoints::EndpointCapabilitiesRegistrarInterface > &endpointCapabilitiesRegistrar, const std::shared_ptr< avsCommon::utils::metrics::MetricRecorderInterface > &metricRecorder, const std::shared_ptr< acsdkSystemClockMonitorInterfaces::SystemClockNotifierInterface > &systemClockMonitor, const std::shared_ptr< certifiedSender::CertifiedSender > &certifiedSender, const std::shared_ptr< registrationManager::CustomerDataManagerInterface > &dataManager, const std::shared_ptr< settings::DeviceSettingsManager > &settingsManager, const std::shared_ptr< storage::AlertStorageInterface > &alertStorage, bool startAlertSchedulingOnInitialization=true) |
|
static std::shared_ptr< AlertsCapabilityAgent > | create (std::shared_ptr< avsCommon::sdkInterfaces::MessageSenderInterface > messageSender, std::shared_ptr< avsCommon::sdkInterfaces::AVSConnectionManagerInterface > connectionManager, std::shared_ptr< certifiedSender::CertifiedSender > certifiedMessageSender, std::shared_ptr< avsCommon::sdkInterfaces::FocusManagerInterface > focusManager, std::shared_ptr< avsCommon::sdkInterfaces::SpeakerManagerInterface > speakerManager, std::shared_ptr< avsCommon::sdkInterfaces::ContextManagerInterface > contextManager, std::shared_ptr< avsCommon::sdkInterfaces::ExceptionEncounteredSenderInterface > exceptionEncounteredSender, std::shared_ptr< storage::AlertStorageInterface > alertStorage, std::shared_ptr< avsCommon::sdkInterfaces::audio::AlertsAudioFactoryInterface > alertsAudioFactory, std::shared_ptr< renderer::RendererInterface > alertRenderer, std::shared_ptr< registrationManager::CustomerDataManagerInterface > dataManager, std::shared_ptr< settings::AlarmVolumeRampSetting > alarmVolumeRampSetting, std::shared_ptr< settings::DeviceSettingsManager > settingsManager, std::shared_ptr< avsCommon::utils::metrics::MetricRecorderInterface > metricRecorder=nullptr, bool startAlertSchedulingOnInitialization=true, std::shared_ptr< acsdkSystemClockMonitorInterfaces::SystemClockNotifierInterface > systemClockMonitor=nullptr) |
|
static settings::SettingEventMetadata | getAlarmVolumeRampMetadata () |
|
template<class T > |
static bool | withinBounds (T value, T minVal, T maxVal) |
|
static std::string | stateToString (State state) |
|
static std::string | typeToString (Type type) |
|
static std::string | originalTimeToString (const OriginalTime &originalTime) |
|
|
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,
Source::EXTERNAL_CLIENT
} |
| 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
} |
|
enum | Type { Type::ALARM,
Type::TIMER,
Type::REMINDER
} |
|
static const int | ORIGINAL_TIME_FIELD_MIN = 0 |
| The minimum value for the field in OriginalTime . More...
|
|
static const int | ORIGINAL_TIME_HOUR_MAX = 23 |
| The maximum value for the hour field in OriginalTime . More...
|
|
static const int | ORIGINAL_TIME_MINUTE_MAX = 59 |
| The maximum value for the minute field in OriginalTime . More...
|
|
static const int | ORIGINAL_TIME_SECOND_MAX = 59 |
| The maximum value for the second field in OriginalTime . More...
|
|
static const int | ORIGINAL_TIME_MILLISECOND_MAX = 999 |
| The maximum value for the millisecond field in OriginalTime . More...
|
|
| 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.