ModifiersBuilders.Modifiers.Builder

Added in 1.0.0
Deprecated in 1.2.0

class ModifiersBuilders.Modifiers.Builder


Builder for Modifiers

Summary

Public constructors

Public functions

ModifiersBuilders.Modifiers

Builds an instance from accumulated values.

ModifiersBuilders.Modifiers.Builder

Sets the background (with optional corner radius) of the modified element.

ModifiersBuilders.Modifiers.Builder

Sets the border of the modified element.

ModifiersBuilders.Modifiers.Builder

Sets the clickable property of the modified element.

ModifiersBuilders.Modifiers.Builder

Sets metadata about an element.

ModifiersBuilders.Modifiers.Builder

Sets the padding of the modified element.

ModifiersBuilders.Modifiers.Builder

Sets the semantics of the modified element.

Public constructors

Builder

Added in 1.0.0
Deprecated in 1.2.0
Builder()

Public functions

build

Added in 1.0.0
Deprecated in 1.2.0
fun build(): ModifiersBuilders.Modifiers

Builds an instance from accumulated values.

setBackground

Added in 1.0.0
Deprecated in 1.2.0
fun setBackground(background: ModifiersBuilders.Background): ModifiersBuilders.Modifiers.Builder

Sets the background (with optional corner radius) of the modified element.

setBorder

Added in 1.0.0
Deprecated in 1.2.0
fun setBorder(border: ModifiersBuilders.Border): ModifiersBuilders.Modifiers.Builder

Sets the border of the modified element.

setClickable

Added in 1.0.0
Deprecated in 1.2.0
fun setClickable(clickable: ModifiersBuilders.Clickable): ModifiersBuilders.Modifiers.Builder

Sets the clickable property of the modified element. It allows its wrapped element to have actions associated with it, which will be executed when the element is tapped.

setMetadata

Added in 1.1.0
Deprecated in 1.2.0
fun setMetadata(metadata: ModifiersBuilders.ElementMetadata): ModifiersBuilders.Modifiers.Builder

Sets metadata about an element. For use by libraries building higher-level components only. This can be used to track component metadata.

setPadding

Added in 1.0.0
Deprecated in 1.2.0
fun setPadding(padding: ModifiersBuilders.Padding): ModifiersBuilders.Modifiers.Builder

Sets the padding of the modified element.

setSemantics

Added in 1.0.0
Deprecated in 1.2.0
fun setSemantics(semantics: ModifiersBuilders.Semantics): ModifiersBuilders.Modifiers.Builder

Sets the semantics of the modified element. This can be used to add metadata to the modified element (eg. screen reader content descriptions).