ModifiersBuilders.Modifiers.Builder

Added in 1.0.0
Deprecated in 1.2.0

public final class ModifiersBuilders.Modifiers.Builder


Builder for Modifiers

Summary

Public constructors

Public methods

@NonNull ModifiersBuilders.Modifiers

Builds an instance from accumulated values.

@NonNull ModifiersBuilders.Modifiers.Builder

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

@NonNull ModifiersBuilders.Modifiers.Builder

Sets the border of the modified element.

@NonNull ModifiersBuilders.Modifiers.Builder

Sets the clickable property of the modified element.

@NonNull ModifiersBuilders.Modifiers.Builder

Sets metadata about an element.

@NonNull ModifiersBuilders.Modifiers.Builder

Sets the padding of the modified element.

@NonNull ModifiersBuilders.Modifiers.Builder

Sets the semantics of the modified element.

Public constructors

Builder

Added in 1.0.0
Deprecated in 1.2.0
public Builder()

Public methods

build

Added in 1.0.0
Deprecated in 1.2.0
public @NonNull ModifiersBuilders.Modifiers build()

Builds an instance from accumulated values.

setBackground

Added in 1.0.0
Deprecated in 1.2.0
public @NonNull ModifiersBuilders.Modifiers.Builder setBackground(@NonNull ModifiersBuilders.Background background)

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

setBorder

Added in 1.0.0
Deprecated in 1.2.0
public @NonNull ModifiersBuilders.Modifiers.Builder setBorder(@NonNull ModifiersBuilders.Border border)

Sets the border of the modified element.

setClickable

Added in 1.0.0
Deprecated in 1.2.0
public @NonNull ModifiersBuilders.Modifiers.Builder setClickable(@NonNull ModifiersBuilders.Clickable clickable)

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
public @NonNull ModifiersBuilders.Modifiers.Builder setMetadata(@NonNull ModifiersBuilders.ElementMetadata metadata)

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
public @NonNull ModifiersBuilders.Modifiers.Builder setPadding(@NonNull ModifiersBuilders.Padding padding)

Sets the padding of the modified element.

setSemantics

Added in 1.0.0
Deprecated in 1.2.0
public @NonNull ModifiersBuilders.Modifiers.Builder setSemantics(@NonNull ModifiersBuilders.Semantics semantics)

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