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::CachingDownloadManager::Observer Class Reference

#include <CachingDownloadManager.h>

Inheritance diagram for alexaClientSDK::sampleApplications::ipcServerSampleApp::CachingDownloadManager::Observer:
Inheritance graph
[legend]

Public Member Functions

 Observer ()=default
 
virtual ~Observer ()=default
 
virtual void onDownloadStarted ()
 
virtual void onDownloadComplete ()
 
virtual void onDownloadFailed ()
 
virtual void onCacheHit ()
 
virtual void onBytesRead (uint64_t numberOfBytes)
 

Constructor & Destructor Documentation

◆ Observer()

alexaClientSDK::sampleApplications::ipcServerSampleApp::CachingDownloadManager::Observer::Observer ( )
default

◆ ~Observer()

virtual alexaClientSDK::sampleApplications::ipcServerSampleApp::CachingDownloadManager::Observer::~Observer ( )
virtualdefault

Member Function Documentation

◆ onBytesRead()

virtual void alexaClientSDK::sampleApplications::ipcServerSampleApp::CachingDownloadManager::Observer::onBytesRead ( uint64_t  numberOfBytes)
inlinevirtual

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 in alexaClientSDK::sampleApplications::ipcServerSampleApp::DownloadMonitor.

◆ onCacheHit()

virtual void alexaClientSDK::sampleApplications::ipcServerSampleApp::CachingDownloadManager::Observer::onCacheHit ( )
inlinevirtual

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

Reimplemented in alexaClientSDK::sampleApplications::ipcServerSampleApp::DownloadMonitor.

◆ onDownloadComplete()

virtual void alexaClientSDK::sampleApplications::ipcServerSampleApp::CachingDownloadManager::Observer::onDownloadComplete ( )
inlinevirtual

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

Reimplemented in alexaClientSDK::sampleApplications::ipcServerSampleApp::DownloadMonitor.

◆ onDownloadFailed()

virtual void alexaClientSDK::sampleApplications::ipcServerSampleApp::CachingDownloadManager::Observer::onDownloadFailed ( )
inlinevirtual

Called when a resource was not found in the cache and the attempt to download it has failed.

Reimplemented in alexaClientSDK::sampleApplications::ipcServerSampleApp::DownloadMonitor.

◆ onDownloadStarted()

virtual void alexaClientSDK::sampleApplications::ipcServerSampleApp::CachingDownloadManager::Observer::onDownloadStarted ( )
inlinevirtual

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

Reimplemented in alexaClientSDK::sampleApplications::ipcServerSampleApp::DownloadMonitor.


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