Acknowledged

Request - specify if WatchUi.View.onUpdate() is required or optional

If onUpdate() calls would allow differentiating between updates that are required and that are optional, it would allow avoiding unnecessary repainting.

For example, if a watch face does not require updating every second (by showing just HH:MM), then 59 repaints every minute in high-power mode go to waste.

On the other hand, if the OS wipes the screen clean for some reason, then onUpdate() obviously must execute.

The request is to change onUpdate to include an extra parameter to specify if the update is optional or not:

onUpdate(dc as Graphics.Dc, required as Boolean) as Void

This would help writing more power-efficient code.

Parents
  • Having thought about this a bit more -

    The "required" parameter may be switched from Boolean to "Rectangle or Null" to specify more precisely which part of the screen (if any) needs repainting.

    If it's "null", then the screen is intact since the last onUpdate() call.

    If it's a rectangle, then it can be used to specify full or partial screen repaint, e.g. due to a toaster popup.

Comment
  • Having thought about this a bit more -

    The "required" parameter may be switched from Boolean to "Rectangle or Null" to specify more precisely which part of the screen (if any) needs repainting.

    If it's "null", then the screen is intact since the last onUpdate() call.

    If it's a rectangle, then it can be used to specify full or partial screen repaint, e.g. due to a toaster popup.

Children
No Data