android-components / mozilla.components.browser.icons / BrowserIcons / loadIntoView


fun loadIntoView(view: <ERROR CLASS>, request: IconRequest, placeholder: <ERROR CLASS>? = null, error: <ERROR CLASS>? = null): Job (source)

Loads an icon asynchronously using BrowserIcons and then displays it in the ImageView. If the view is detached from the window before loading is completed, then loading is cancelled.


view - ImageView to load icon into.

request - Load icon for this given IconRequest.

placeholder - Drawable to display while icon is loading.

error - Drawable to display if loading fails.