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. Padding or Background), or change their behaviour (e.g. Clickable, or Semantics).

Summary

Nested types

This class is deprecated. Deprecated in Java

Public methods

@Nullable ModifiersBuilders.Background

This method is deprecated. Deprecated in Java

@Nullable ModifiersBuilders.Border

This method is deprecated. Deprecated in Java

@Nullable ModifiersBuilders.Clickable

This method is deprecated. Deprecated in Java

@Nullable ModifiersBuilders.ElementMetadata

This method is deprecated. Deprecated in Java

@Nullable ModifiersBuilders.Padding

This method is deprecated. Deprecated in Java

@Nullable ModifiersBuilders.Semantics

This method is deprecated. Deprecated in Java

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.