DefaultImageLoader

Default implementation of an ImageLoader.

Parameters

context

the Context from which to load the image resources

Default implementation of an ImageLoader.

Default implementation of an ImageLoader.

Parameters

bundle

the NSBundle from which to load the image resource

traitCollection

The UITraitCollection associated with the intended environment for the image. Use this parameter to ensure that the system loads the correct variant of the image. If you specify null, this method uses the traits associated with the main screen.

Constructors

Link copied to clipboard
constructor(context: Context?)
actual constructor()

Default implementation of an ImageLoader.

expect constructor()
constructor(bundle: NSBundle, traitCollection: UITraitCollection?)
actual constructor()

Default implementation of an ImageLoader.

Functions

Link copied to clipboard
actual open override 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.

expect open override 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.

actual open override 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.