Class: Toybox::WatchUi::NumberPickerDelegate Deprecated

Inherits:
Lang::Object show all

Overview

Deprecated.

The NumberPickerDelegate class will be dropped in Connect IQ 3.0.0

NumberPickerDelegate responds to a NumberPicker selection.

This class should be extended to handle the specified number.

Examples:

using Toybox.WatchUi;

class MyNumberPickerDelegate extends WatchUi.NumberPickerDelegate {
    function initialize() {
        NumberPickerDelegate.initialize();
    }

    function onNumberPicked(value) {
        myValue = value; // e.g. 1000f
    }
}

See Also:

Since:

  • 1.0.0

Instance Method Summary collapse

Methods inherited from Lang::Object

equals, hashCode, method, toString, weak

Instance Method Details

onNumberPicked(value) ⇒ Object

A number was entered in a NumberPicker.

This method is called when a number has been specified by a NumberPicker, and receives the numeric value as an argument.

Parameters:

Since:

  • 1.0.0


13751
13752
# File 'Monkeybrains.rb', line 13751

def onNumberPicked(value)
end