loadImage

abstract fun loadImage(identifier: String, defaultValue: KalugaImage?): KalugaImage?

Attempts to load the KalugaImage resource associated with a given identifier. If no match is found, the defaultValue will be returned.

Return

The associated KalugaImage resources or defaultValue if no such resource was found.

Parameters

identifier

The identifier to find the KalugaImage resource for.

defaultValue

The KalugaImage to return if no match was found for the identifier.