Class: Toybox.WatchUi.PickerDelegate

Overview

PickerDelegate responds to a Picker confirm or cancel.

See Also:

Note:

popView() is not automatically called once a Picker selection is made

Note:

See the Picker sample distributed with the SDK for an example of the use of the PickerDelegate class

Since:

API Level 1.2.0

Supported Devices:

Instance Method Summary collapse

Instance Method Details

onAccept(values as Lang.Array) as Lang.Boolean

Handle a confirm event from a Picker

Note:

A null value will be returned for any Drawable entries

Parameters:

  • values(Lang.Array)

    The values chosen in the Picker.

Since:

API Level 1.2.0

onCancel() as Lang.Boolean

Handle a cancel event from a Picker

Since:

API Level 1.2.0


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