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

Understanding onBackPressed. #58

Open
Devspm opened this issue Oct 31, 2018 · 1 comment
Open

Understanding onBackPressed. #58

Devspm opened this issue Oct 31, 2018 · 1 comment

Comments

@Devspm
Copy link

Devspm commented Oct 31, 2018

Hi,thanks for the library.
I'm having problem with understanding onRiggerBackPressed and onInterruptBackPressed.
How can i let the activity's onBackPressed to execute when using onRiggerBackPressed ?

@JingYeoh
Copy link
Owner

@Devspm if Activity want to interrupt onBackPressed method , you can define a method named onInterruptBackPressed in Activity and return true .

Fragment and Activity is a tree structure , you can choose to interrupt in any level , just return true in onInterruptBackPressed .

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