Class: Toybox::WatchUi::PickerFactory

Inherits:
Lang::Object show all

Overview

Note:

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

Create a PickerFactory.

A PickerFactory is used to specify which objects will be displayed by a Picker

See Also:

Since:

  • 1.2.0

Instance Method Summary collapse

Methods inherited from Lang::Object

equals, hashCode, method, toString, weak

Instance Method Details

getDrawable(item, isSelected) ⇒ Toybox::WatchUi::Drawable

Generate a Drawable instance for an item.

Parameters:

Returns:

Since:

  • 1.2.0


16030
16031
# File 'Monkeybrains.rb', line 16030

def getDrawable(item, isSelected)
end

getSizeToybox::Lang::Number

Get the number of items in the PickerFactory.

Returns:

Since:

  • 1.2.0


16043
16044
# File 'Monkeybrains.rb', line 16043

def getSize()
end

getValue(item) ⇒ Toybox::Lang::Object

Return value for an item.

Parameters:

Returns:

Since:

  • 1.2.0


16037
16038
# File 'Monkeybrains.rb', line 16037

def getValue(item)
end