ImageLoader

actual object ImageLoader

Android-specific implementation for loading images from a BasicUrl or BasicPath. This object provides functions to load images and convert them into an ImageBitmap.

expect object ImageLoader

An expect object for loading images from a BasicUrl or BasicPath.

This object declares the platform-agnostic API for loading images. The actual implementation is provided by actual objects on each platform.

actual object ImageLoader

iOS-specific implementation for loading images from a BasicUrl or BasicPath. This object provides functions to load images and convert them into an ImageBitmap.

actual object ImageLoader
actual object ImageLoader

JVM-specific implementation for loading images from a BasicUrl or BasicPath. This object provides functions to load images and convert them into an ImageBitmap.

actual object ImageLoader

macOS-specific implementation for loading images from a BasicUrl or BasicPath. This object provides functions to load images and convert them into an ImageBitmap.

actual object ImageLoader

Functions

Link copied to clipboard
actual suspend fun load(path: BasicPath): ImageBitmap?

Loads an image from the given local file path and converts it to an ImageBitmap.

actual suspend fun load(url: BasicUrl): ImageBitmap?

Loads an image from the given url and converts it to an ImageBitmap.

expect suspend fun load(path: BasicPath): ImageBitmap?

Asynchronously loads an image from a local BasicPath.

expect suspend fun load(url: BasicUrl): ImageBitmap?

Asynchronously loads an image from a BasicUrl.

actual suspend fun load(path: BasicPath): ImageBitmap?

Loads an image from the given local file path and converts it to an ImageBitmap.

actual suspend fun load(url: BasicUrl): ImageBitmap?

Loads an image from the given url and converts it to an ImageBitmap.

actual suspend fun load(path: BasicPath): ImageBitmap?
actual suspend fun load(url: BasicUrl): ImageBitmap?

Asynchronously loads an image from the given url and converts it to an ImageBitmap.

actual suspend fun load(path: BasicPath): ImageBitmap?

Loads an image from the given local file path and converts it to an ImageBitmap.

actual suspend fun load(url: BasicUrl): ImageBitmap?

Loads an image from the given url and converts it to an ImageBitmap.

actual suspend fun load(path: BasicPath): ImageBitmap?

Loads an image from the given local file path and converts it to an ImageBitmap.

actual suspend fun load(url: BasicUrl): ImageBitmap?

Loads an image from the given url and converts it to an ImageBitmap.

actual suspend fun load(path: BasicPath): ImageBitmap?
actual suspend fun load(url: BasicUrl): ImageBitmap?

Asynchronously loads an image from the given url and converts it to an ImageBitmap.