ModifiersBuilders.Border.Builder


class ModifiersBuilders.Border.Builder


Builder for Border

Summary

Public constructors

Creates an instance of Builder.

Public functions

ModifiersBuilders.Border

Builds an instance from accumulated values.

ModifiersBuilders.Border.Builder
@RequiresSchemaVersion(major = 1, minor = 0)
setColor(color: ColorBuilders.ColorProp)

Sets the color of the border.

ModifiersBuilders.Border.Builder
@RequiresSchemaVersion(major = 1, minor = 0)
setWidth(width: DimensionBuilders.DpProp)

Sets the width of the border, in DP.

Public constructors

Builder

Added in 1.0.0
Builder()

Creates an instance of Builder.

Public functions

build

Added in 1.0.0
fun build(): ModifiersBuilders.Border

Builds an instance from accumulated values.

setColor

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 0)
fun setColor(color: ColorBuilders.ColorProp): ModifiersBuilders.Border.Builder

Sets the color of the border.

While this field is statically accessible from 1.0, it's only bindable since version 1.2 and renderers supporting version 1.2 will use the dynamic value (if set).

setWidth

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 0)
fun setWidth(width: DimensionBuilders.DpProp): ModifiersBuilders.Border.Builder

Sets the width of the border, in DP.

Note that this field only supports static values.