Class: Toybox.WatchUi.SwipeEvent

Overview

SwipeEvent is an object sent to InputDelegate when there is swipe interaction with the device's touch screen.

See Also:

Example:

using Toybox.System;
using Toybox.WatchUi;

class InputDelegate extends WatchUi.BehaviorDelegate {
    function onSwipe(swipeEvent) {
        System.println(swipeEvent.getDirection()); // e.g. SWIPE_RIGHT = 1
        return true;
    }
}

Since:

API Level 1.0.0

Instance Method Summary collapse

Instance Method Details

getDirection() as WatchUi.SwipeDirection

Get the direction of the swipe.

Returns:

Since:

API Level 1.0.0


Generated Apr 17, 2024 9:40:39 AM