8. Download Contents
argsession.auth().requestSignedUrl(item.zipFileUrl, item.title, item.type, new ARGAuth.Callback() {
@Override
public void onSuccess(String url) {
// Using obtained signed url, request download.
requestDownload(path, url, item.uuid, isArItem);
}
@Override
public void onError(Throwable e) {
if (e instanceof SignedUrlGenerationException) {
Log.e(TAG, "SignedUrlGenerationException !! ");
} else if (e instanceof NetworkException) {
Log.e(TAG, "NetworkException !!");
}
}
});argsession.auth().requestSignedUrl(item.zipFileUrl, item.title, item.type, object : ARGAuth.Callback {
override fun onSuccess(url: String) {
// Using obtained signed url, request download.
requestDownload(path, url, item, isArItem)
}
override fun onError(e: Throwable) {
if (e is SignedUrlGenerationException) {
Log.e(TAG, "SignedUrlGenerationException !! ")
} else if (e is NetworkException) {
Log.e(TAG, "NetworkException !!")
}
}
})Last updated
Was this helpful?