bumptech / bumptech/glide

Add ability to provide custom lifecycle

Open
#2,575 3 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.