ModifiersBuilders.Clickable

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

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

@NonNull
public String getId()

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

getOnClick

@Nullable
@NonNull
public ActionBuilders.Action getOnClick()

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