AppIconFlow

class AppIconFlow(val base: UpdateMutableState<AppInfoData, Drawable>, defaultIconFlow: Flow<Drawable?>) : Flow<Drawable?> (source)

A Flow that provides an application icon.

It first attempts to retrieve the icon from the base state. If the icon is not available in the base state, it falls back to the defaultIconFlow. Once the icon is retrieved from the defaultIconFlow, it updates the base state with the new icon.

Constructors

Link copied to clipboard
constructor(base: UpdateMutableState<AppInfoData, Drawable>, defaultIconFlow: Flow<Drawable?>)

Properties

Link copied to clipboard

The UpdateMutableState holding the application information (AppInfoData), which may include the icon.

Functions

Link copied to clipboard
open suspend override fun collect(collector: FlowCollector<Drawable?>)