DefaultColorLoader

Default implementation of a KalugaColorLoader.

Parameters

context

the Context from which to load the color resources

Default implementation of a KalugaColorLoader.

Default implementation of a KalugaColorLoader.

Parameters

bundle

the NSBundle from which to load the color resource

traitCollection

The UITraitCollection that specifies the gamut to use when selecting the color.

Constructors

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

Default implementation of a KalugaColorLoader.

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

Default implementation of a KalugaColorLoader.

Functions

Link copied to clipboard
actual open override fun loadColor(identifier: String, defaultValue: KalugaColor?): KalugaColor?

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

expect open override fun loadColor(identifier: String, defaultValue: KalugaColor?): KalugaColor?

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

actual open override fun loadColor(identifier: String, defaultValue: KalugaColor?): KalugaColor?

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