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

How do I match the geckoview lifecycle to the activity lifecycle, like webView pausetimers and resumeTimers #221

Open
gitcfly opened this issue Jun 14, 2023 · 0 comments

Comments

@gitcfly
Copy link

gitcfly commented Jun 14, 2023

In the android activty, of the following events can occur, onFinished, onStart, onPause, onStop, onResume, onDestroy,
When there is any way to happen in the above several events, i can find the corresponding method in geckoview ?
For example:
activty.onFinished() -> geckoView.Finished.
activty.onPause || activty.onStop -> Geckoview. Pause // This is the most important one.Pause all geckoview processes when acitvity is paused. The webView can be implemented using the webView.pausetimers () method.
ctivty.onResume || ctivty.onStart-> geckoView.Resume // This is also important and can be implemented in webView using the webView.resumeTimers method.

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

1 participant