ColorBuilders.ColorStop.Builder


class ColorBuilders.ColorStop.Builder


Builder for ColorStop

Summary

Public constructors

@RequiresSchemaVersion(major = 1, minor = 300)
Builder(color: ColorBuilders.ColorProp, offset: TypeBuilders.FloatProp)

Creates an instance of Builder.

Public functions

ColorBuilders.ColorStop

Builds an instance from accumulated values.

Public constructors

Builder

Added in 1.1.0
@RequiresSchemaVersion(major = 1, minor = 300)
Builder(color: ColorBuilders.ColorProp, offset: TypeBuilders.FloatProp)

Creates an instance of Builder.

Parameters
color: ColorBuilders.ColorProp

the color for this stop. Only opaque colors are supported. Any transparent colors will have their alpha component set to 0xFF (opaque). Note that this parameter only supports static values.

offset: TypeBuilders.FloatProp

the relative offset for this color, between 0 and 1. This determines where the color is positioned relative to a gradient space. Note that this parameter only supports static values.

Public functions

build

Added in 1.1.0
fun build(): ColorBuilders.ColorStop

Builds an instance from accumulated values.