Class: Toybox.WatchUi.NumberPickerDelegate

Overview

NumberPickerDelegate responds to a NumberPicker selection.

This class should be extended to handle the specified number.

This has been deprecated

This class may be removed after System 3.

See Also:

Example:

using Toybox.WatchUi;

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

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

Since:

API Level 1.0.0

Supported Devices:

Instance Method Summary collapse

Instance Method Details

onNumberPicked(value as Lang.Number or Lang.Float or Time.Duration) as Lang.Boolean

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:

API Level 1.0.0


Generated Sep 23, 2024, 3:32:49 PM