Skip to content

Methods

MethodPurposeNotes
createStartUpPageContainerCreate the initial pageCalled exactly once at startup. Returns result code.
rebuildPageContainerReplace the entire pageFull redraw — all state is lost, brief flicker on hardware.
textContainerUpgradeUpdate text in-placeFaster, flicker-free on hardware. Requires matching containerID + containerName.
updateImageRawDataUpdate an image containerNo concurrent sends allowed.
shutDownPageContainerExit the appPass 0 for immediate exit, 1 for exit confirmation dialog.
callEvenAppGeneric method callEscape hatch — all typed methods are wrappers around this.

Result Codes

For createStartUpPageContainer:

CodeMeaning
0Success
1Invalid parameters
2Oversize
3Out of memory

rebuildPageContainer, textContainerUpgrade, and shutDownPageContainer return boolean.

updateImageRawData returns a status string: success, imageException, imageSizeInvalid, imageToGray4Failed, or sendFailed.

Best Practices

  • Use textContainerUpgrade for frequent text updates (counters, status, live data) — it avoids the flicker of a full rebuild.
  • Use rebuildPageContainer when changing the container layout (adding/removing containers, switching between text and list).
  • Always match containerID and containerName exactly when using textContainerUpgrade.
  • Do not call updateImageRawData concurrently — wait for one to complete before sending the next.