ModifiersBuilders.Modifiers

Added in 1.0.0
Deprecated in 1.2.0

public final class ModifiersBuilders.Modifiers


Modifiers for an element. These may change the way they are drawn (e.g. or Background), or change their behaviour (e.g. Clickable, or ).

Summary

Nested types

Builder for Modifiers

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

getBackground

Added in 1.0.0
Deprecated in 1.2.0
public @Nullable ModifiersBuilders.Background getBackground()

Gets the background (with optional corner radius) of the modified element. Intended for testing purposes only.

getBorder

Added in 1.0.0
Deprecated in 1.2.0
public @Nullable ModifiersBuilders.Border getBorder()

Gets the border of the modified element. Intended for testing purposes only.

getClickable

Added in 1.0.0
Deprecated in 1.2.0
public @Nullable ModifiersBuilders.Clickable getClickable()

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.

getMetadata

Added in 1.1.0
Deprecated in 1.2.0
public @Nullable ModifiersBuilders.ElementMetadata getMetadata()

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

getPadding

Added in 1.0.0
Deprecated in 1.2.0
public @Nullable ModifiersBuilders.Padding getPadding()

Gets the padding of the modified element. Intended for testing purposes only.

getSemantics

Added in 1.0.0
Deprecated in 1.2.0
public @Nullable ModifiersBuilders.Semantics getSemantics()

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.