Skip to main content

on_move_command

Function on_move_command 

Source
pub fn on_move_command(
    view: &ViewHandle,
    action: impl Fn(i64) + 'static,
) -> ViewHandle
Expand description

Apply .onMoveCommand(perform:).

The direction arrives as a case number: up, down, left, right.