#include <DavsCheckCallbackInterface.h>
◆ ~DavsCheckCallbackInterface()
virtual alexaClientSDK::acsdkAssets::davsInterfaces::DavsCheckCallbackInterface::~DavsCheckCallbackInterface |
( |
| ) |
|
|
virtualdefault |
◆ checkIfOkToDownload()
virtual bool alexaClientSDK::acsdkAssets::davsInterfaces::DavsCheckCallbackInterface::checkIfOkToDownload |
( |
std::shared_ptr< commonInterfaces::VendableArtifact > |
artifact, |
|
|
size_t |
freeSpaceNeeded |
|
) |
| |
|
pure virtual |
An event that is called after check to see if the manager would like to download the given artifact. It is the manager's responsibility to check the exiting artifact against the one being checked. If it is the same then the requester should specify to not download. If it is different, then the requester should specify to download. If the insufficientSpace is true, then the requester should free the necessary space for the artifact.
- Parameters
-
artifact | ALWAYS VALID, information about the artifact including the original request. |
freeSpaceNeeded | amount of space needed to be freed to make room for this artifact, 0 if existing space is sufficient. |
- Returns
- should we download the artifact? return true to download, false to not download.
◆ onCheckFailure()
virtual void alexaClientSDK::acsdkAssets::davsInterfaces::DavsCheckCallbackInterface::onCheckFailure |
( |
commonInterfaces::ResultCode |
errorCode | ) |
|
|
pure virtual |
An event that is called when the check failed with a specific reason.
- Parameters
-
errorCode | reason for the failure. |
Implemented in MyChecker.
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