AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Member Functions | Public Attributes | List of all members
MyDownloader Class Reference
Inheritance diagram for MyDownloader:
Inheritance graph
[legend]
Collaboration diagram for MyDownloader:
Collaboration graph
[legend]

Public Member Functions

void onStart () override
 
void onArtifactDownloaded (std::shared_ptr< VendableArtifact >, const std::string &artifactPath) override
 
void onDownloadFailure (ResultCode) override
 
void onProgressUpdate (int prog) override
 
- Public Member Functions inherited from alexaClientSDK::acsdkAssets::davsInterfaces::DavsDownloadCallbackInterface
virtual ~DavsDownloadCallbackInterface ()=default
 
virtual void onArtifactDownloaded (std::shared_ptr< commonInterfaces::VendableArtifact > artifact, const std::string &path)=0
 

Public Attributes

bool started
 
bool downloaded
 
bool failure
 
int progress
 
string path
 

Member Function Documentation

◆ onArtifactDownloaded()

void MyDownloader::onArtifactDownloaded ( std::shared_ptr< VendableArtifact ,
const std::string &  artifactPath 
)
inlineoverride

◆ onDownloadFailure()

void MyDownloader::onDownloadFailure ( ResultCode  errorCode)
inlineoverridevirtual

An event that is called when the download fails, providing a reason for failure.

Parameters
errorCodereason for the failure.

Implements alexaClientSDK::acsdkAssets::davsInterfaces::DavsDownloadCallbackInterface.

◆ onProgressUpdate()

void MyDownloader::onProgressUpdate ( int  progress)
inlineoverridevirtual

An event that is called periodically to denote the progress of the download.

Parameters
progressALWAYS VALID, between 0 and 100

Implements alexaClientSDK::acsdkAssets::davsInterfaces::DavsDownloadCallbackInterface.

◆ onStart()

void MyDownloader::onStart ( )
inlineoverridevirtual

An event that is called as soon as the download has started.

Implements alexaClientSDK::acsdkAssets::davsInterfaces::DavsDownloadCallbackInterface.

Member Data Documentation

◆ downloaded

bool MyDownloader::downloaded

◆ failure

bool MyDownloader::failure

◆ path

string MyDownloader::path

◆ progress

int MyDownloader::progress

◆ started

bool MyDownloader::started

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