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

Make Fotoapparat lifecycleaware #399

Open
robyka400 opened this issue Feb 3, 2020 · 0 comments
Open

Make Fotoapparat lifecycleaware #399

robyka400 opened this issue Feb 3, 2020 · 0 comments

Comments

@robyka400
Copy link

I think it would make sense to make Fotoapparat lifecycle-aware.
The following dependencies could be added:
lifecycle-common-java8
lifecycle-extensions to gradle.

Then the Fotoapparat could receive an additional lifecycleOwner: Lifecycleowner constructor parameter and implement LifecycleEventObserver. This way the Fotoapparat could handle itself lifecycle changes, without the need to override onStart/onPause

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