ModifiersBuilders.Modifiers

Added in 1.0.0
Deprecated in 1.2.0

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 functions

ModifiersBuilders.Background?

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

ModifiersBuilders.Border?

Gets the border of the modified element.

ModifiersBuilders.Clickable?

Gets the clickable property of the modified element.

ModifiersBuilders.ElementMetadata?

Gets metadata about an element.

ModifiersBuilders.Padding?

Gets the padding of the modified element.

ModifiersBuilders.Semantics?

Gets the semantics of the modified element.

Public functions

getBackground

Added in 1.0.0
Deprecated in 1.2.0
fun getBackground(): ModifiersBuilders.Background?

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
fun getBorder(): ModifiersBuilders.Border?

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

getClickable

Added in 1.0.0
Deprecated in 1.2.0
fun getClickable(): ModifiersBuilders.Clickable?

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
fun getMetadata(): ModifiersBuilders.ElementMetadata?

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
fun getPadding(): ModifiersBuilders.Padding?

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

getSemantics

Added in 1.0.0
Deprecated in 1.2.0
fun getSemantics(): ModifiersBuilders.Semantics?

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.