dropbox / kaiken

User scoping library for Android applications.
Apache License 2.0
70 stars 12 forks source link

Add ability to init and teardown classes when user scoped services change #93

Closed chris-mitchell closed 2 years ago

chris-mitchell commented 2 years ago

Consumers often want the ability to register for events when user scoped services are created. Some examples of this might be uploading user files, notifications, etc. We currently have a callback system with teardown, but we can improve this.

We could use Dagger's IntoSet to allow components to register classes to instantiate and call when the scoped services are created. Similarly, we could do this for teardown classes as well.

chris-mitchell commented 2 years ago

This is similar to https://github.com/dropbox/kaiken/issues/29