#include <CachingDownloadManager.h>
◆ CachingDownloadManager()
Constructor.
- Parameters
-
httpContentFetcherFactory | Pointer to a http content fetcher factory for making download requests |
cachePeriodInSeconds | Number of seconds to reuse cache for downloaded packages |
maxCacheSize | Maximum cache size for caching downloaded packages |
miscStorage | Wrapper to read and write to misc stor=age database |
◆ retrieveContent()
std::string alexaClientSDK::sampleApplications::ipcServerSampleApp::CachingDownloadManager::retrieveContent |
( |
const std::string & |
source, |
|
|
std::shared_ptr< Observer > |
observer = nullptr |
|
) |
| |
Method that should be called when requesting content
- Parameters
-
source | URL |
observer | An observer to notify of the download, or nullptr to disable notifications. |
- Returns
- content - either from cache or from source
The documentation for this class was generated from the following file:
- /workplace/avs-device-sdk/SampleApplications/IPCServerSampleApplication/LibIPCServerSampleApp/include/IPCServerSampleApp/CachingDownloadManager.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