AlexaClientSDK  1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
ExternalMediaPlayerInterface.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 ACSDKEXTERNALMEDIAPLAYERINTERFACES_EXTERNALMEDIAPLAYERINTERFACE_H_
17 #define ACSDKEXTERNALMEDIAPLAYERINTERFACES_EXTERNALMEDIAPLAYERINTERFACE_H_
18 
26 
30 
31 namespace alexaClientSDK {
32 namespace acsdkExternalMediaPlayerInterfaces {
33 
40 public:
44  virtual ~ExternalMediaPlayerInterface() = default;
45 
55  virtual void setPlayerInFocus(const std::string& playerInFocus) = 0;
56 
63  virtual void updateDiscoveredPlayers(
64  const std::vector<DiscoveredPlayerInfo>& addedPlayers,
65  const std::unordered_set<std::string>& removedLocalPlayerIds) = 0;
66 
73  virtual void addAdapterHandler(
74  std::shared_ptr<acsdkExternalMediaPlayerInterfaces::ExternalMediaAdapterHandlerInterface> adapterHandler) = 0;
75 
82  virtual void removeAdapterHandler(
83  std::shared_ptr<acsdkExternalMediaPlayerInterfaces::ExternalMediaAdapterHandlerInterface> adapterHandler) = 0;
84 
90  virtual void addObserver(
91  const std::shared_ptr<acsdkExternalMediaPlayerInterfaces::ExternalMediaPlayerObserverInterface> observer) = 0;
92 
98  virtual void removeObserver(
99  const std::shared_ptr<acsdkExternalMediaPlayerInterfaces::ExternalMediaPlayerObserverInterface> observer) = 0;
100 };
101 
102 } // namespace acsdkExternalMediaPlayerInterfaces
103 } // namespace alexaClientSDK
104 
105 #endif // ACSDKEXTERNALMEDIAPLAYERINTERFACES_EXTERNALMEDIAPLAYERINTERFACE_H_
virtual void removeAdapterHandler(std::shared_ptr< acsdkExternalMediaPlayerInterfaces::ExternalMediaAdapterHandlerInterface > adapterHandler)=0
virtual void updateDiscoveredPlayers(const std::vector< DiscoveredPlayerInfo > &addedPlayers, const std::unordered_set< std::string > &removedLocalPlayerIds)=0
virtual void addAdapterHandler(std::shared_ptr< acsdkExternalMediaPlayerInterfaces::ExternalMediaAdapterHandlerInterface > adapterHandler)=0
virtual void removeObserver(const std::shared_ptr< acsdkExternalMediaPlayerInterfaces::ExternalMediaPlayerObserverInterface > observer)=0
virtual void addObserver(const std::shared_ptr< acsdkExternalMediaPlayerInterfaces::ExternalMediaPlayerObserverInterface > observer)=0
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36

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