AlexaClientSDK  1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
RenderPlayerInfoCardsProviderRegistrar.h
Go to the documentation of this file.
1 /*
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License").
5  * You may not use this file except in compliance with the License.
6  * A copy of the License is located at
7  *
8  * http://aws.amazon.com/apache2.0/
9  *
10  * or in the "license" file accompanying this file. This file is distributed
11  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12  * express or implied. See the License for the specific language governing
13  * permissions and limitations under the License.
14  */
15 
16 #ifndef ALEXA_CLIENT_SDK_CAPABILITYAGENTS_TEMPLATERUNTIME_INCLUDE_TEMPLATERUNTIME_RENDERPLAYERINFOCARDSPROVIDERREGISTRAR_H_
17 #define ALEXA_CLIENT_SDK_CAPABILITYAGENTS_TEMPLATERUNTIME_INCLUDE_TEMPLATERUNTIME_RENDERPLAYERINFOCARDSPROVIDERREGISTRAR_H_
18 
19 #include <mutex>
20 
23 
24 namespace alexaClientSDK {
25 namespace capabilityAgents {
26 namespace templateRuntime {
27 
33 public:
39  static std::shared_ptr<avsCommon::sdkInterfaces::RenderPlayerInfoCardsProviderRegistrarInterface>
41 
44  bool registerProvider(
45  const std::shared_ptr<avsCommon::sdkInterfaces::RenderPlayerInfoCardsProviderInterface>& provider) override;
46 
47  std::unordered_set<std::shared_ptr<avsCommon::sdkInterfaces::RenderPlayerInfoCardsProviderInterface>> getProviders()
48  override;
50 
51 private:
56 
58  std::mutex m_mutex;
59 
61  std::unordered_set<std::shared_ptr<avsCommon::sdkInterfaces::RenderPlayerInfoCardsProviderInterface>> m_providers;
62 };
63 
64 } // namespace templateRuntime
65 } // namespace capabilityAgents
66 } // namespace alexaClientSDK
67 
68 #endif // ALEXA_CLIENT_SDK_CAPABILITYAGENTS_TEMPLATERUNTIME_INCLUDE_TEMPLATERUNTIME_RENDERPLAYERINFOCARDSPROVIDERREGISTRAR_H_
alexaClientSDK::capabilityAgents::templateRuntime::RenderPlayerInfoCardsProviderRegistrar::getProviders
std::unordered_set< std::shared_ptr< avsCommon::sdkInterfaces::RenderPlayerInfoCardsProviderInterface > > getProviders() override
Definition: RenderPlayerInfoCardsProviderRegistrar.cpp:60
alexaClientSDK::capabilityAgents::templateRuntime::RenderPlayerInfoCardsProviderRegistrar
Definition: RenderPlayerInfoCardsProviderRegistrar.h:31
RenderPlayerInfoCardsProviderInterface.h
alexaClientSDK::avsCommon::sdkInterfaces::RenderPlayerInfoCardsProviderRegistrarInterface
Definition: RenderPlayerInfoCardsProviderRegistrarInterface.h:31
RenderPlayerInfoCardsProviderRegistrarInterface.h
alexaClientSDK
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
alexaClientSDK::capabilityAgents::templateRuntime::RenderPlayerInfoCardsProviderRegistrar::registerProvider
bool registerProvider(const std::shared_ptr< avsCommon::sdkInterfaces::RenderPlayerInfoCardsProviderInterface > &provider) override
Definition: RenderPlayerInfoCardsProviderRegistrar.cpp:43
alexaClientSDK::capabilityAgents::templateRuntime::RenderPlayerInfoCardsProviderRegistrar::createRenderPlayerInfoCardsProviderRegistrarInterface
static std::shared_ptr< avsCommon::sdkInterfaces::RenderPlayerInfoCardsProviderRegistrarInterface > createRenderPlayerInfoCardsProviderRegistrarInterface()
Definition: RenderPlayerInfoCardsProviderRegistrar.cpp:38

AlexaClientSDK 1.26.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0