Open yschimke opened 2 years ago
Thank you for pointing this. I'm marking the issue as a documentation candidate. I'll try to include a seminal implementation with Glide too.
On your implementation:
Future.cancel()
. It's currently left the BitmapLoader impl to detect if it wants to drop on-going downloads. The default implementation does not drop downloads either (yet). We will put that in the documentation too.
Use case description
Apps typically have some image loading library. These libraries may do a few things
1) Cache images to avoid re-requesting 2) Allow customising image loading, such as failure images, or transformations 3) Use existing HTTP clients, including any interceptors, such as enforcing SSL.
Proposed solution
Show an example of using a typical image loader such as Coil.
and in MediaSessionService
Alternatives considered
This is already possible, feel free to close, or advise if the code above is correct.