Class: Toybox.WatchUi.PickerFactory
- Inherits:
-
Toybox.Lang.Object
Overview
Create a PickerFactory.
A PickerFactory is used to specify which objects will be displayed by a Picker
See Also:
Note:
See the Picker sample distributed with the SDK for an example of the use of the PickerFactory class
Instance Method Summary collapse
-
getDrawable(item as Lang.Number, isSelected as Lang.Boolean) as WatchUi.Drawable or Null
Generate a Drawable instance for an item.
-
getSize() as Lang.Number
Get the number of items in the PickerFactory.
-
getValue(item as Lang.Number) as Lang.Object or Null
Return value for an item.
Instance Method Details
getDrawable(item as Lang.Number, isSelected as Lang.Boolean) as WatchUi.Drawable or Null
Generate a Drawable instance for an item.
getSize() as Lang.Number
Get the number of items in the PickerFactory.
getValue(item as Lang.Number) as Lang.Object or Null
Return value for an item.