Class: Toybox::WatchUi::SwipeEvent

Inherits:
Lang::Object show all

Overview

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

Examples:

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;
    }
}

See Also:

Since:

  • 1.0.0

Instance Method Summary collapse

Methods inherited from Lang::Object

equals, hashCode, method, toString, weak

Instance Method Details

getDirectionToybox::Lang::Number

Get the direction of the swipe.

Returns:

Since:

  • 1.0.0


11832
11833
# File 'Monkeybrains.rb', line 11832

def getDirection()
end