DefaultImageLoader

Default implementation of an ImageLoader.

Parameters

context

the Context from which to load the image resources

Default implementation of an ImageLoader.

actual class DefaultImageLoader

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.

Default implementation of a ImageLoader.

Parameters

transformer

method for getting a KalugaImage from a String identifier

Default implementation of a ImageLoader.

Parameters

transformer

method for getting a KalugaImage from a String identifier

Constructors

Link copied to clipboard
constructor(context: Context?)
actual constructor()
expect constructor()
constructor(bundle: <Error class: unknown class>, traitCollection: <Error class: unknown class>?)
actual constructor()
constructor(transformer: (String) -> KalugaImage?)
actual constructor()
constructor(transformer: (String) -> KalugaImage?)
actual constructor()

Functions

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

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.

open fun loadImage(identifier: String, defaultValue: <Error class: unknown class>?): <Error class: unknown class>?
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.

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.