[Question] How to stop a Drop.down() message during the duration?
Opened this issue · 2 comments
Deleted user commented
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 commented
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 commented
@jmpr-app If your question is not solved by this answer. Open again 👍