{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

PressInteraction.Cancel

public final class PressInteraction.Cancel implements PressInteraction


An interaction representing the cancellation of a Press event on a component.

See also
clickable
PressInteraction.Press

Summary

Public constructors

Public methods

final @NonNull PressInteraction.Press

the source Press interaction that is being cancelled

Public constructors

Cancel

public Cancel(@NonNull PressInteraction.Press press)

Public methods

getPress

public final @NonNull PressInteraction.Press getPress()

the source Press interaction that is being cancelled