![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <DownloadMonitor.h>
Public Member Functions | |
DownloadMonitor (APLClient::Telemetry::DownloadMetricsEmitterPtr metricsEmitter) | |
~DownloadMonitor () override=default | |
void | onDownloadStarted () override |
void | onDownloadComplete () override |
void | onDownloadFailed () override |
void | onCacheHit () override |
void | onBytesRead (uint64_t numberOfBytes) override |
![]() | |
Observer ()=default | |
virtual | ~Observer ()=default |
Emits APL telemetry in response to download manager events.
|
explicit |
|
overridedefault |
|
overridevirtual |
Called during the download of a resource. Observers should expect multiple calls to this method for a single download.
numberOfBytes | The number of bytes that have been downloaded. |
Reimplemented from alexaClientSDK::sampleApplications::ipcServerSampleApp::CachingDownloadManager::Observer.
|
overridevirtual |
Called when a resource was found in the cache and downloading is not attempted.
Reimplemented from alexaClientSDK::sampleApplications::ipcServerSampleApp::CachingDownloadManager::Observer.
|
overridevirtual |
Called when a resource was not found in the cache and has successfully been downloaded.
Reimplemented from alexaClientSDK::sampleApplications::ipcServerSampleApp::CachingDownloadManager::Observer.
|
overridevirtual |
Called when a resource was not found in the cache and the attempt to download it has failed.
Reimplemented from alexaClientSDK::sampleApplications::ipcServerSampleApp::CachingDownloadManager::Observer.
|
overridevirtual |
Called at the start of a download, when a resource is not found in the cache.
Reimplemented from alexaClientSDK::sampleApplications::ipcServerSampleApp::CachingDownloadManager::Observer.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0