AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <TimingAdapterFactory.h>
Public Member Functions | |
TimingAdapterFactory (std::shared_ptr< DelayInterface > delayInterface=nullptr) | |
virtual | ~TimingAdapterFactory ()=default |
virtual std::shared_ptr< CaptionTimingAdapterInterface > | getTimingAdapter (std::shared_ptr< CaptionPresenterInterface > presenter) const |
Generator class to produce instances of CaptionTimingAdapter
on demand.
alexaClientSDK::captions::TimingAdapterFactory::TimingAdapterFactory | ( | std::shared_ptr< DelayInterface > | delayInterface = nullptr | ) |
Constructor.
delayInterface | The timing interface that is used to delay calls to the presenter. Defaults to a call to the std::this_thread::sleep_for function. Override this value if custom timing is desired. |
|
virtualdefault |
Destructor.
|
virtual |
Factory function that returns ready-to-use timing adapters.
presenter | The presenter instance to be used when producing timing adapters. |
CaptionTimingAdapter
as a std::shared_ptr
. Reimplemented in alexaClientSDK::captions::test::TestTimingAdapterFactory.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0