#include <PlaybackRouter.h>
◆ ~PlaybackRouter()
virtual alexaClientSDK::capabilityAgents::playbackController::PlaybackRouter::~PlaybackRouter |
( |
| ) |
|
|
virtualdefault |
◆ buttonPressed()
This method can be called by the client when a Button is pressed on a physical button or on the GUI. A ButtonCommandIssued event message will be sent to the observer. NOTE: Instances may attempt to handle button locally first.
- Parameters
-
button | The PlaybackButton type being pressed |
Implements alexaClientSDK::avsCommon::sdkInterfaces::PlaybackRouterInterface.
◆ create()
Create an instance of @ PlaybackRouter.
- Parameters
-
defaultHandler | The default playback handler. |
- Deprecated:
- Use createPlaybackRouterInterface.
- Returns
- A
std::shared_ptr
to the new @ PlaybackRouter instance.
◆ createPlaybackRouterInterface()
Create an instance of @ PlaybackRouterInterface.
- Parameters
-
defaultHandler | The default playback handler. |
shutdownNotifier | The ShutdownNotifierInterface to notify this instance when to shut down. |
- Returns
- A
std::shared_ptr
to the new @ PlaybackRouterInterface instance.
◆ localOperation()
◆ localSeekTo()
virtual bool alexaClientSDK::capabilityAgents::playbackController::PlaybackRouter::localSeekTo |
( |
std::chrono::milliseconds |
location, |
|
|
bool |
fromStart |
|
) |
| |
|
overridevirtual |
Request the handler to perform a local seek operation.
- Parameters
-
location | Position to seek to |
fromStart | true to seek to absolute location, false to seek reletive to current location. |
- Returns
- true if successful, false if the operation cannot be performed locally.
Reimplemented from alexaClientSDK::avsCommon::sdkInterfaces::PlaybackRouterInterface.
◆ setHandler()
◆ switchToDefaultHandler()
virtual void alexaClientSDK::capabilityAgents::playbackController::PlaybackRouter::switchToDefaultHandler |
( |
| ) |
|
|
overridevirtual |
◆ togglePressed()
virtual void alexaClientSDK::capabilityAgents::playbackController::PlaybackRouter::togglePressed |
( |
avsCommon::avs::PlaybackToggle |
toggle, |
|
|
bool |
action |
|
) |
| |
|
overridevirtual |
This method can be called by the client when a Toggle is pressed on a physical button or on the GUI. A ToggleCommandIssued event message will be sent to the observer.
- Parameters
-
toggle | The PlaybackToggle type being pressed |
action | The boolean action for the toggle state |
Implements alexaClientSDK::avsCommon::sdkInterfaces::PlaybackRouterInterface.
◆ useDefaultHandlerWith()
The documentation for this class was generated from the following file:
- /workplace/avs-device-sdk/CapabilityAgents/PlaybackController/include/PlaybackController/PlaybackRouter.h
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0