Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 427 Bytes

preloading.md

File metadata and controls

14 lines (10 loc) · 427 Bytes

Preload images into memory

Translations: 简体中文

To preload images into memory, you only need to not set target, as follows:

DisplayImage(context, "https://www.sample.com/image.jpg") {
    // more ...
}.enqueue()

In order to ensure that the cache is accurately hit when used later, the configuration during preloading needs to be exactly the same as when used, especially resizeSize