AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Member Functions | List of all members
alexaClientSDK::sampleApplications::ipcServerSampleApp::DownloadMonitor Class Reference

#include <DownloadMonitor.h>

Inheritance diagram for alexaClientSDK::sampleApplications::ipcServerSampleApp::DownloadMonitor:
Inheritance graph
[legend]
Collaboration diagram for alexaClientSDK::sampleApplications::ipcServerSampleApp::DownloadMonitor:
Collaboration graph
[legend]

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
 
- Public Member Functions inherited from alexaClientSDK::sampleApplications::ipcServerSampleApp::CachingDownloadManager::Observer
 Observer ()=default
 
virtual ~Observer ()=default
 

Detailed Description

Emits APL telemetry in response to download manager events.

Constructor & Destructor Documentation

◆ DownloadMonitor()

alexaClientSDK::sampleApplications::ipcServerSampleApp::DownloadMonitor::DownloadMonitor ( APLClient::Telemetry::DownloadMetricsEmitterPtr  metricsEmitter)
explicit

◆ ~DownloadMonitor()

alexaClientSDK::sampleApplications::ipcServerSampleApp::DownloadMonitor::~DownloadMonitor ( )
overridedefault

Member Function Documentation

◆ onBytesRead()

void alexaClientSDK::sampleApplications::ipcServerSampleApp::DownloadMonitor::onBytesRead ( uint64_t  numberOfBytes)
overridevirtual

Called during the download of a resource. Observers should expect multiple calls to this method for a single download.

Parameters
numberOfBytesThe number of bytes that have been downloaded.

Reimplemented from alexaClientSDK::sampleApplications::ipcServerSampleApp::CachingDownloadManager::Observer.

◆ onCacheHit()

void alexaClientSDK::sampleApplications::ipcServerSampleApp::DownloadMonitor::onCacheHit ( )
overridevirtual

Called when a resource was found in the cache and downloading is not attempted.

Reimplemented from alexaClientSDK::sampleApplications::ipcServerSampleApp::CachingDownloadManager::Observer.

◆ onDownloadComplete()

void alexaClientSDK::sampleApplications::ipcServerSampleApp::DownloadMonitor::onDownloadComplete ( )
overridevirtual

Called when a resource was not found in the cache and has successfully been downloaded.

Reimplemented from alexaClientSDK::sampleApplications::ipcServerSampleApp::CachingDownloadManager::Observer.

◆ onDownloadFailed()

void alexaClientSDK::sampleApplications::ipcServerSampleApp::DownloadMonitor::onDownloadFailed ( )
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.

◆ onDownloadStarted()

void alexaClientSDK::sampleApplications::ipcServerSampleApp::DownloadMonitor::onDownloadStarted ( )
overridevirtual

Called at the start of a download, when a resource is not found in the cache.

Reimplemented from alexaClientSDK::sampleApplications::ipcServerSampleApp::CachingDownloadManager::Observer.


The documentation for this class was generated from the following file:

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