You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, I like to start with a warm thank you for this wonderful library.
In the RealImageLoader class both functions - enqueue and execute use/block the main thread for fetching images.
while it's necessary to change the UI, sometimes, we need to prefetch the images even before the UI exists, for this, we use ImageLoader through the context, and then transfer the actual bitmap to the view when it's ready.
in these scenarios, we expect to use Dispatchers.IO all the way.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
First, I like to start with a warm thank you for this wonderful library.
In the
RealImageLoader
class both functions -enqueue
andexecute
use/block the main thread for fetching images.while it's necessary to change the UI, sometimes, we need to prefetch the images even before the UI exists, for this, we use ImageLoader through the context, and then transfer the actual bitmap to the view when it's ready.
in these scenarios, we expect to use Dispatchers.IO all the way.
screenshot from RealImageLoader class -
Beta Was this translation helpful? Give feedback.
All reactions