![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <EndpointAlexaLauncherHandler.h>
Public Types | |
using | LaunchHandlerCallback = std::function< void(void)> |
Alias for a callback function for launching target. More... | |
Static Public Member Functions | |
static std::shared_ptr< EndpointAlexaLauncherHandler > | create (const std::string &endpointName) |
Sample implementation of an AlexaLauncherInterface
.
using alexaClientSDK::sampleApplications::common::EndpointAlexaLauncherHandler::LaunchHandlerCallback = std::function<void(void)> |
Alias for a callback function for launching target.
|
override |
|
static |
Create a EndpointAlexaLauncherHandler object.
endpointName | The name of the endpoint. |
nullptr
. bool alexaClientSDK::sampleApplications::common::EndpointAlexaLauncherHandler::deregisterLaunchTargetCallback | ( | const std::string & | targetName | ) |
De-registers a callback for a given launch target.
targetName | Name of the target for this callback. |
|
overridevirtual |
Get the current launcher target on the device.
AlexaLauncherInterface
implementation has configured its instance's property as retrievable, this method should return the current launch target state. Unlike AlexaLauncherObserverInterface
observer methods, this returns the current target state at any given point when requested, without a change in target state.TargetState
Implements alexaClientSDK::acsdkAlexaLauncherInterfaces::AlexaLauncherInterface.
|
overridevirtual |
Launch target on the device.
targetState | The target to launch, this can be an app or a GUI shortcut. |
AlexaLauncherResponse
to indicate whether target was successfully launched or encountered an error while launching. AlexaLauncherResponse.responseType
should return SUCCESS if there are no errors while launching the target. Otherwise, it should return the corresponding error code along with a log message AlexaLauncherResponse.errorMessage
that would be logged in cloud for debugging purposes. Implements alexaClientSDK::acsdkAlexaLauncherInterfaces::AlexaLauncherInterface.
bool alexaClientSDK::sampleApplications::common::EndpointAlexaLauncherHandler::registerLaunchTargetCallback | ( | const std::string & | targetName, |
LaunchHandlerCallback | callback | ||
) |
Registers a callback for a given launch target.
targetName | Name of the target for this callback. |
callback | Method to call when this target is launched by user. |
|
override |
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0