loadIcon

open override fun loadIcon(key: AppInfo): Flow<Drawable>(source)

Loads the icon for the given AppInfo as a Flow of Drawable.

This method utilizes a CachedLoader to efficiently load and cache icons. If the icon is already cached, it's returned directly. Otherwise, it's loaded using createAppIcon, cached, and then returned.

Return

A Flow emitting the Drawable icon.

Parameters

key

The AppInfo for which to load the icon.