Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dismiss listener (Cancelable listener) #53

Open
lucazin opened this issue Sep 3, 2018 · 2 comments
Open

dismiss listener (Cancelable listener) #53

lucazin opened this issue Sep 3, 2018 · 2 comments

Comments

@lucazin
Copy link

lucazin commented Sep 3, 2018

How to check if i cancel a dialog ?

@maxxy212
Copy link

maxxy212 commented Feb 5, 2019

when you call show() a Dialog object is returned, so you can call isShowing() to check if the dialog is still visible. If it returns false, then it is cancelled.
Example:
Dialog dialog = new Lovely*Dialog(context) ... . show(); if (dialog.isShowing){ dialog.dismiss() }else{ // It is already cancelled }

@lucazin
Copy link
Author

lucazin commented Jan 30, 2020

nice!

But i need a listener when i cancel the dialog ..i have to set some variable when i cancel

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

No branches or pull requests

2 participants