Add ability to provide custom lifecycle
Open
enhancement
- Dominant language
- Java
- Stars
- 35k
- Forks
- 6.2k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 8
Description
**Glide Version**: 4.3.1
**Details**:
Glide has `Lifecycle` and `LifecycleListener` which I assume are what enables it to react to `onStop()`/`onDestroy()`/etc accordingly. It would be great if we could specify our own lifecycle with the generated API. As far as I know, there's no way to provide this without constructing a `RequestManager`/`GlideRequests`. Would it be possible to use it as such:
```
GlideApp.with(context, myLifecycle)
.load(url)
.into(...)
```
using the generated API?
If not, is there a simple way to provide a `Lifecycle` for a request?
Contributor guide
Assessment
This issue has not been assessed yet.