com.craftar
Interface CraftARContentDownloadProgressHandler
public interface CraftARContentDownloadProgressHandler
Interface used to receive feedback of the downloading progress of aCraftARTrackingContent3DModel
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description void
onContentLoaded(CraftARContent3dmodel content)
Callback received when the content is completely loaded and ready to be drawn.void
onContentLoadFailed(CraftARContent3dmodel content)
Callback received when the content load has failed for some reason.void
onDownloadFinished(CraftARContent3dmodel content)
Callback received when the content has been completely downloadedvoid
onDownloadProgress(CraftARContent3dmodel content, double percent)
Callback received when the download progress of this content has been updated.
-
-
-
Method Detail
-
onDownloadProgress
void onDownloadProgress(CraftARContent3dmodel content, double percent)
Callback received when the download progress of this content has been updated.- Parameters:
content
- : The content download that this progress belongs to.percent
- : value between 0 and 1 showing the percentage of the content that has been downloaded. Note that the CraftAR SDK caches the files of the contents, so the progress may change directly from 0 to 100%.
-
onDownloadFinished
void onDownloadFinished(CraftARContent3dmodel content)
Callback received when the content has been completely downloaded- Parameters:
content
- : The content that has been downloaded.success
- : Whether if the download was performed successfully or not. If some files of this content could not be downloaded, the overall download is considered unsuccesful. Note that after a content is completely downloaded, it still needs to be loaded into the scene. Seecom.craftar.CraftARContentDownloadProgressHandler#onContentLoaded()
for more details.
-
onContentLoaded
void onContentLoaded(CraftARContent3dmodel content)
Callback received when the content is completely loaded and ready to be drawn.- Parameters:
content
- : The content that has been completely loaded.
-
onContentLoadFailed
void onContentLoadFailed(CraftARContent3dmodel content)
Callback received when the content load has failed for some reason.- Parameters:
content
- : The (3dModel) content that failed its download.
-
-