Fetch: Will deleted download entries retain in db?

Created on 26 Nov 2018  路  2Comments  路  Source: tonyofrancis/Fetch

We can query for DELETED status. So the question is,
Will deleted download entries retain in db? or will it removed from after the callback?

question

All 2 comments

@jpvs0101 You can query for a deleted status, however the operation will always return empty. When you call the delete method for a request that Fetch is currently managing, Fetch will change its status to deleted, return the download to the callback function and delete the entry from the database.

     fetch.delete(request.getId(), download -> {

            //download.getStatus() is the only time a download will have a status of deleted. same goes  
           // for removed

        }, error -> {

        });

Note: The difference between the delete and the remove methods. The remove method will remove the request/download from Fetch's database. The delete method will remove the entry and also delete the downloaded file.

Like I guessed, Got it!
Also take a look at closed issues. I commented on few closed issues because the issues are not solved, facing now!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jpvs0101 picture jpvs0101  路  5Comments

MohammadFneish7 picture MohammadFneish7  路  4Comments

DeevD picture DeevD  路  3Comments

burhanaksendir picture burhanaksendir  路  3Comments

KulwinderSinghRahal picture KulwinderSinghRahal  路  5Comments