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

Handle Android Lifecycle #162

Open
saturnism opened this issue Feb 27, 2018 · 2 comments
Open

Handle Android Lifecycle #162

saturnism opened this issue Feb 27, 2018 · 2 comments

Comments

@saturnism
Copy link
Member

Android has lifecycles like pause and destroy.

AndroidDeferredManager may not be able to listen to these lifecycles directly. However, it would be nice to provide convenience methods so that activities that needs to respond to lifecycle can call easily, e.g., adm.destroy(), or adm.pause().

@aalmiray
Copy link
Contributor

aalmiray commented Mar 1, 2018

What would these methods do? ADM does not have any specific links to the Android lifecycle at the moment.

@saturnism
Copy link
Member Author

https://developer.android.com/guide/components/activities/activity-lifecycle.html

What I heard is to potentially stopping or cancelling tasks. Sounds straight forward with access to the executor service.

If we expose some methods, it'll prob be specific to DeferredManager lifecycle, and won't be mapped 1-to-1 to Android lifecycle. But can still be useful, to say, cancel all tasks.

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