AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <CommunicationInvokeHandlerInterface.h>
Public Member Functions | |
virtual | ~CommunicationInvokeHandlerInterface ()=default |
virtual bool | registerFunction (const std::string &name, std::shared_ptr< FunctionInvokerInterface< ReturnType, ArgTypes... >> functionImplementation)=0 |
virtual alexaClientSDK::avsCommon::utils::error::SuccessResult< ReturnType > | invoke (const std::string &name, ArgTypes...)=0 |
virtual bool | deregister (const std::string &name, const std::shared_ptr< FunctionInvokerInterface< ReturnType, ArgTypes... >> &functionImplementation)=0 |
The CommunicationInvokeHandlerInterface is used to register, deregister, and invoke functions from another component with only a link to the CommunicationInvokeHandler. The implementation of this interface is not responsible for keeping FunctionInvokerInterface implementations alive.
|
virtualdefault |
Virtual destructor to assure proper cleanup of derived types.
|
pure virtual |
Deregister the function
name | The name of the function to deregister |
functionImplementation | The function that we are deregistering. Used for confirmation of ownership. |
|
pure virtual |
Invokes the registered function specified by the name. If the function isn't registered or the function has expired nothing will be invoked.
name | The name of the function |
Args | The args that will be passed to the function. |
|
pure virtual |
Register a new function that other components can trigger with the CommunicationInvokeHandlerInterface
name | The name of the function. |
functionImplementation | The class that implements functionToBeInvoked |
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0