Skip to content

Last updated: 2026-06-11

Every glasses screen flows through a small set of SDK calls - one for creation, two for updating, one for shutting down.

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 1 for the system exit-confirmation dialog (required on the root page); pass 0 for immediate exit (internal pages only).
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

  • Always call shutDownPageContainer(1) from the root page. Mode 1 shows the system exit-confirmation dialog. QA reviewers explicitly check for it. Apps that exit silently with mode 0 from the root - or use a custom in-app exit UI in its place - get rejected. Mode 0 is only OK on internal pages where the user already confirmed.
  • Use textContainerUpgrade for frequent text updates (counters, status, live data). It skips the flicker of a full rebuild.
  • Use rebuildPageContainer only when the layout itself changes - adding or removing containers, switching between text and list.
  • Match containerID and containerName exactly when calling textContainerUpgrade. Mismatches silently no-op.
  • Don't call updateImageRawData concurrently. Wait for one to resolve before sending the next.