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

App Types:

  • Audio Content Provider

  • Data Field

  • Glance

  • Watch App

  • Watch Face

  • Widget

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

onActionMenu() as Lang.Boolean

Represents the Action Menu behavior.

This will be triggered when action menu is pushed. Invoke WatchUi.showActionMenu to push an action menu.

Supported Devices:

Returns:

Since:

API Level 5.1.1

onCancel() as Lang.Boolean

Handle a cancel event from a Picker

Since:

API Level 1.2.0


Generated Apr 1, 2025, 11:14:49 AM