Skip to content
This repository has been archived by the owner on May 23, 2022. It is now read-only.

[Question] How to stop a Drop.down() message during the duration? #58

Closed
ghost opened this issue Nov 6, 2017 · 2 comments
Closed

[Question] How to stop a Drop.down() message during the duration? #58

ghost opened this issue Nov 6, 2017 · 2 comments

Comments

@ghost
Copy link

ghost commented Nov 6, 2017

Other than tapping or swiping to dismiss the view, like answered in #39, how to stop a message programmatically?

Would you use Drop.up() in some form?

I am using a Drop.down() to display a message if there is no WiFi connection with a duration of 20 seconds. If WiFi is reachable within that duration, I would like the message to go away by itself.

Any help or sample code will help, thanks.

Great little framework, BTW. 💯

@andreyrd
Copy link

andreyrd commented Nov 20, 2017

You can use Drop.upAll(), which will dismiss all messages. If it's the only message you're displaying, that could work.

Edit: Drop.down will first call Drop.upAll() anyway, so it's already guaranteed to be the only view. :)

@morizotter
Copy link
Owner

@jmpr-app If your question is not solved by this answer. Open again 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants