![]() |
AlexaClientSDK
1.19.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Namespaces | |
test | |
Classes | |
struct | NotificationIndicator |
class | NotificationRenderer |
class | NotificationRendererInterface |
class | NotificationRendererObserverInterface |
class | NotificationsCapabilityAgent |
class | NotificationsStorageInterface |
class | SQLiteNotificationsStorage |
Functions | |
int | indicatorStateToInt (IndicatorState state) |
const IndicatorState | intToIndicatorState (int stateNum) |
std::ostream & | operator<< (std::ostream &stream, IndicatorState state) |
std::string | stateToString (NotificationsCapabilityAgentState state) |
std::ostream & | operator<< (std::ostream &stream, const NotificationsCapabilityAgentState &state) |
static const std::string | TAG ("NotificationRenderer") |
String to identify log entries originating from this file. More... | |
std::ostream & | operator<< (std::ostream &stream, const NotificationRenderer::State state) |
static const std::string | TAG ("NotificationsCapabilityAgent") |
String to identify log entries originating from this file. More... | |
static std::shared_ptr< avsCommon::avs::CapabilityConfiguration > | getNotificationsCapabilityConfiguration () |
static void | submitMetric (const std::shared_ptr< MetricRecorderInterface > &metricRecorder, const std::string &eventName) |
static const std::string | TAG ("SQLiteNotificationsStorage") |
String to identify log entries originating from this file. More... | |
static bool | popNotificationIndicatorLocked (SQLiteDatabase *database) |
Variables | |
static const std::string | CHANNEL_NAME = "Earcon" |
String to identify the name of the Virtual Audio Channel "Earcon". More... | |
static const std::string | NAMESPACE = "NotificationRenderer" |
String to identify the namespace this CapabilityAgent uses to acquire focus. More... | |
static const std::string | NOTIFICATIONS_CAPABILITY_INTERFACE_TYPE = "AlexaInterface" |
static const std::string | NOTIFICATIONS_CAPABILITY_INTERFACE_NAME = "Notifications" |
Notifications interface name. More... | |
static const std::string | NOTIFICATIONS_CAPABILITY_INTERFACE_VERSION = "1.0" |
Notifications interface version. More... | |
static const std::string | NAMESPACE = "Notifications" |
The namespace for this capability agent. More... | |
static const std::string | NOTIFICATION_METRIC_SOURCE_PREFIX = "NOTIFICATION-" |
Metric Activity Name Prefix for NOTIFICATION metric source. More... | |
static const NamespaceAndName | INDICATOR_STATE_CONTEXT_KEY {NAMESPACE, "IndicatorState"} |
The NotificationsCapabilityAgent context state signature. More... | |
static const NamespaceAndName | SET_INDICATOR {NAMESPACE, "SetIndicator"} |
The SetIndicator directive signature. More... | |
static const NamespaceAndName | CLEAR_INDICATOR {NAMESPACE, "ClearIndicator"} |
The SetIndicator directive signature. More... | |
static const std::string | PERSIST_VISUAL_INDICATOR_KEY = "persistVisualIndicator" |
Keys for directive payload values. More... | |
static const std::string | PLAY_AUDIO_INDICATOR_KEY = "playAudioIndicator" |
static const std::string | ASSET_KEY = "asset" |
static const std::string | ASSET_ID_KEY = "assetId" |
static const std::string | ASSET_URL_KEY = "url" |
static const char | IS_ENABLED_KEY [] = "isEnabled" |
The key used to provide the "isEnabled" property in the state payload. More... | |
static const char | IS_VISUAL_INDICATOR_PERSISTED_KEY [] = "isVisualIndicatorPersisted" |
The key used to provide the "isVisualIndicatorPersisted" property in the state payload. More... | |
static const std::chrono::milliseconds | SHUTDOWN_TIMEOUT {500} |
static const std::string | NOTIFICATIONS_CONFIGURATION_ROOT_KEY = "notifications" |
The key in our config file to find the root of settings. More... | |
static const std::string | NOTIFICATIONS_DB_FILE_PATH_KEY = "databaseFilePath" |
The key in our config file to find the database file path. More... | |
static const std::string | NOTIFICATION_INDICATOR_TABLE_NAME = "notificationIndicators" |
static const std::string | DATABASE_COLUMN_PERSIST_VISUAL_INDICATOR_NAME = "persistVisualIndicator" |
static const std::string | DATABASE_COLUMN_PLAY_AUDIO_INDICATOR_NAME = "playAudioIndicator" |
static const std::string | DATABASE_COLUMN_ASSET_ID_NAME = "assetId" |
static const std::string | DATABASE_COLUMN_ASSET_URL_NAME = "assetUrl" |
static const std::string | CREATE_NOTIFICATION_INDICATOR_TABLE_SQL_STRING |
static const std::string | INDICATOR_STATE_NAME = "indicatorState" |
The name of the table and the field that will hold the state of the indicator. More... | |
static const std::string | CREATE_INDICATOR_STATE_TABLE_SQL_STRING |
static const NotificationsStorageInterface::IndicatorState | DEFAULT_INDICATOR_STATE |
|
static |
Creates the Notifications capability configuration.
|
inline |
Convert an IndicatorState to an int.
state | The IndicatorState to convert. |
|
inline |
Convert an int into an IndicatorState
.
stateNum | The int to convert. |
std::ostream& alexaClientSDK::capabilityAgents::notifications::operator<< | ( | std::ostream & | stream, |
const NotificationRenderer::State | state | ||
) |
Emit a NotificationRenderer::State value to a stream.
stream | The stream to emit the value to. |
state | The state to emit. |
|
inline |
|
inline |
|
static |
A utility function to pop the next notificationIndicator from the database.
database | Pounter to the database. |
|
inline |
|
static |
Submits a metric count of 1 by name
metricRecorder | The MetricRecorderInterface which records Metric events |
eventName | The name of the metric event |
|
static |
String to identify log entries originating from this file.
|
static |
String to identify log entries originating from this file.
|
static |
String to identify log entries originating from this file.
|
static |
|
static |
|
static |
|
static |
String to identify the name of the Virtual Audio Channel "Earcon".
|
static |
The SetIndicator
directive signature.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
The NotificationsCapabilityAgent
context state signature.
|
static |
The name of the table and the field that will hold the state of the indicator.
|
static |
The key used to provide the "isEnabled" property in the state payload.
|
static |
The key used to provide the "isVisualIndicatorPersisted" property in the state payload.
|
static |
String to identify the namespace this CapabilityAgent uses to acquire focus.
|
static |
The namespace for this capability agent.
|
static |
|
static |
Metric Activity Name Prefix for NOTIFICATION metric source.
|
static |
Notifications interface name.
|
static |
Notifications capability constants Notifications interface type
|
static |
Notifications interface version.
|
static |
The key in our config file to find the root of settings.
|
static |
The key in our config file to find the database file path.
|
static |
Keys for directive payload values.
|
static |
|
static |
The SetIndicator
directive signature.
|
static |
AlexaClientSDK 1.19.0 - Copyright 2016-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0