Skip to main content

with_long_press

Function with_long_press 

Source
pub fn with_long_press<E: Serialize>(widget: Widget, on_long_press: E) -> Widget
Expand description

Attach a long-press (press-and-hold) event to a Card. No-op on any other widget. Combines with card / card_button — a card can carry both a tap and a long-press.