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

Please, provide a way to know if the backbutton was pressed. #138

Closed
aMarCruz opened this issue Sep 30, 2018 · 2 comments
Closed

Please, provide a way to know if the backbutton was pressed. #138

aMarCruz opened this issue Sep 30, 2018 · 2 comments

Comments

@aMarCruz
Copy link

Describe the solution you'd like
I want to know when the back button dimissed the prompt to stop a sequence.

Describe alternatives you've considered
I think in two options:
a) Raise a different event, ex: STATE_BACKBUTTON_PRESSED.
b) Give a additional parameter in the STATE_DISMISSING and/or STATE_DISMISSED event

Additional context
n/a

@sjwall and contributors, thanks for this awesome library!

@sjwall
Copy link
Owner

sjwall commented Oct 3, 2018

Thanks for the great suggestion, STATE_BACK_BUTTON_PRESSED state has been added and is emitted before STATE_NON_FOCAL_PRESSED when the system back button is pressed

This is released in v2.13.0

@aMarCruz
Copy link
Author

aMarCruz commented Oct 3, 2018

@sjwall , thanks!!!

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

No branches or pull requests

2 participants