termux / termux-api-package

Termux package containing scripts to call functionality in Termux:API.
MIT License
994 stars 314 forks source link

Setting event handlers to termux-download #119

Open aurium opened 3 years ago

aurium commented 3 years ago

Feature description Pooling the FS is not the best way to wait for a file or discover when the download fails.

Would be nice if termux-download had a --onerror and --onsuccess parameters to set a command to run on background, like --action from termux-notification.

Background information Have you checked if the feature is accessible through the android API? I believe this means yes.

Do you know of other open-source apps that has a similar feature as the one you want? (Provide links) Node.js's standard HTTP client and other unblocking implementations.