termux-api-package
termux-api-package copied to clipboard
Setting event handlers to termux-download
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.