LoadableImage

An object that represents a loadable image. A loadable image implements the loadable pattern (Loadable) and allows getting the underlying image (through LoadableImage.getImage()) once the image is loaded. For LocalItem thumbnail, the image is read from JSON and is automatically loaded. For PortalItem thumbnail, the loadable image is initialized with the thumbnail URI and needs to be loaded before calling LoadableImage.getImage().

See also

Item.getThumbnail

()

Constructors

Link copied to clipboard
constructor(uri: String)

Creates a loadable image from a URI.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val uri: String?

Inherited properties

Link copied to clipboard
open override val loadStatus: StateFlow<LoadStatus>

The load status.

Inherited functions

Link copied to clipboard
open override fun cancelLoad()

Cancels loading metadata for the Loadable object.

Link copied to clipboard
open suspend override fun load(): Result<Unit>

Loads the metadata for the object.

Link copied to clipboard
open suspend override fun retryLoad(): Result<Unit>

Loads or retries loading metadata for the object.