Class: Toybox::WatchUi::PickerDelegate

Inherits:
Lang::Object show all

Overview

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

PickerDelegate responds to a Picker confirm or cancel.

See Also:

Since:

  • 1.2.0

Instance Method Summary collapse

Methods inherited from Lang::Object

equals, hashCode, method, toString, weak

Instance Method Details

onAccept(values) ⇒ Object

Note:

A null value will be returned for any Drawable entries

Handle a confirm event from a Picker

Parameters:

Since:

  • 1.2.0


16061
16062
# File 'Monkeybrains.rb', line 16061

def onAccept(values)
end

onCancelObject

Handle a cancel event from a Picker

Since:

  • 1.2.0


16066
16067
# File 'Monkeybrains.rb', line 16066

def onCancel()
end