I modded the SDK's Menu2Sample to fire a timer every second which calls both setTitle() and updateItem(), followed by WatchUi.requestUpdate(), to cycle through 3 values for the title and an item sublabel. In the sim, both the title and the item sublabel are updated. For a real 935, only the item sublabel is updated.
The presence of the title as an option in the Menu2 constructor, as well as the availability of a separate setTitle() method, seems to imply that setTitle() should be able to work dynamically. (Otherwise what's the purpose of setTitle()?) Not to mention the fact that it does work dynamically in the sim.
If it's intentional that the title can't be updated dynamically, it would be nice to:
1) Update the docs to make this clear
2) Update the behavior in the sim
It would also be nice if the docs explicitly called out the fact that Menu2.onUpdate can't be overridden due to the fact that it's a native view. (Same with any other views which may have this restriction, such as ProgressBar.)
Sim:
FR935:
Environment:
- Windows 10
- VS Code 1.54.1
- Monkey C extension 0.1.9
- CIQ SDK 3.2.5
- FR935 firmware 21.00