ModifiersBuilders.Modifiers
public final class ModifiersBuilders.Modifiers
Modifiers for an element. These may change the way they are drawn (e.g. Padding or Background), or change their behaviour (e.g. Clickable, or Semantics).
Summary
Nested types |
|---|
public final class ModifiersBuilders.Modifiers.BuilderBuilder for |
Public methods |
|
|---|---|
@Nullable ModifiersBuilders.Background |
Gets the background (with optional corner radius) of the modified element. |
@Nullable ModifiersBuilders.Border |
Gets the border of the modified element. |
@Nullable ModifiersBuilders.Clickable |
Gets the clickable property of the modified element. |
@Nullable ModifiersBuilders.ElementMetadata |
Gets metadata about an element. |
@Nullable ModifiersBuilders.Padding |
Gets the padding of the modified element. |
@Nullable ModifiersBuilders.Semantics |
Gets the semantics of the modified element. |
Public methods
public @Nullable ModifiersBuilders.BackgroundgetBackground()
Gets the background (with optional corner radius) of the modified element. Intended for testing purposes only.
public @Nullable ModifiersBuilders.BordergetBorder()
Gets the border of the modified element. Intended for testing purposes only.
public @Nullable ModifiersBuilders.ClickablegetClickable()
Gets 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. Intended for testing purposes only.
public @Nullable ModifiersBuilders.ElementMetadatagetMetadata()
Gets metadata about an element. For use by libraries building higher-level components only. This can be used to track component metadata.
public @Nullable ModifiersBuilders.PaddinggetPadding()
Gets the padding of the modified element. Intended for testing purposes only.
public @Nullable ModifiersBuilders.SemanticsgetSemantics()
Gets the semantics of the modified element. This can be used to add metadata to the modified element (eg. screen reader content descriptions). Intended for testing purposes only.