Himalayan-Academy / Siva-Siva-App

Code Repository for the Siva Siva Mobile App
11 stars 3 forks source link

Create a Loader Which Has to Be Called When The User Wants to Bail on a Download #255

Closed Brahmanathaswami closed 3 years ago

Brahmanathaswami commented 4 years ago

The mobileBusyIndicator is not interactive so can't be cancelled in this way.

If you need something interactive to show the user you would need to create it yourself. Perhaps a group with a spinner widget, or a progress bar if you are using a download method that provides callbacks.

http://lessons.livecode.com/m/4071/l/7285-how-to-show-the-progress-of-a- download

Then you can add a "Cancel" button which would stop the download, or other activity and reset the UI.

For a bit more detail on the busy indicators here is the iOS and Android documentation.

https://developer.apple.com/design/human-interface- guidelines/ios/controls/progress-indicators/

https://material.io/components/progress-indicators/#

Kind regards

Elanor

02/07/2020 15:01 - Sannyasin Brahmanathaswami wrote:

Thanks.. but users have different requirements in terms of "patience"

Some will want to stop a download in 30 seconds, they have to leave the café, catch a bus etc. Another user, who knows she has low bandwidth, is willing to wait a long time.

What can you provide the user to end the process, if the busy indicator is up. Does it respond to mouseup/touch?

Dear Sannyasin Brahmanathaswami,

Thank you for your request.

You could send a message in time or poll to see if the action is still trying to complete. When the action completes you could cancel the message or set a variable to stop the polling.

I hope that helps.

Kind regards

Elanor