LightDslReceiver

interface LightDslReceiver

This Interface contains all the functions that will be exposed to Koltin DSL.

Separated the DSL receiver class to this interface to avoid IDE code suggestion for property getters.

Functions

anchor
Link copied to clipboard
abstract fun anchor(anchor: Expression): Light
Set the Anchor property
abstract fun anchor(anchor: Anchor = Anchor.VIEWPORT): Light
Set the Anchor property.
color
Link copied to clipboard
abstract fun color(color: Expression): Light
Set the Color property
abstract fun color(@ColorInt() color: Int): Light
Set the Color property.
abstract fun color(color: String = "#ffffff"): Light
Set the Color property.
colorTransition
Link copied to clipboard
abstract fun colorTransition(options: StyleTransition): Light
Set the Color property transition options.
abstract fun colorTransition(block: StyleTransition.Builder.() -> Unit): Light
intensity
Link copied to clipboard
abstract fun intensity(intensity: Expression): Light
Set the Intensity property
abstract fun intensity(intensity: Double = 0.5): Light
Set the Intensity property.
intensityTransition
Link copied to clipboard
abstract fun intensityTransition(options: StyleTransition): Light
Set the Intensity property transition options.
abstract fun intensityTransition(block: StyleTransition.Builder.() -> Unit): Light
position
Link copied to clipboard
abstract fun position(position: Expression): Light
Set the Position property
abstract fun position(position: LightPosition = LightPosition(1.15, 210.0, 30.0)): Light
Set the Position property.
abstract fun position(radialCoordinate: Double, azimuthalAngle: Double, polarAngle: Double): Light
DSL for setting LightPosition.
positionTransition
Link copied to clipboard
abstract fun positionTransition(options: StyleTransition): Light
Set the Position property transition options.
abstract fun positionTransition(block: StyleTransition.Builder.() -> Unit): Light

Inheritors

Light
Link copied to clipboard