ModifiersBuilders.Clickable

Added in 1.0.0
Deprecated in 1.2.0

public final class ModifiersBuilders.Clickable


A modifier for an element which can have associated Actions for click events. When an element with a ClickableModifier is clicked it will fire the associated action.

Summary

Nested types

Builder for Clickable

Public methods

@NonNull String

Gets the ID associated with this action.

@Nullable ActionBuilders.Action

Gets the action to perform when the element this modifier is attached to is clicked.

Public methods

getId

Added in 1.0.0
Deprecated in 1.2.0
public @NonNull String getId()

Gets the ID associated with this action. Intended for testing purposes only.

getOnClick

Added in 1.0.0
Deprecated in 1.2.0
public @Nullable ActionBuilders.Action getOnClick()

Gets the action to perform when the element this modifier is attached to is clicked. Intended for testing purposes only.