M2Screen Service
Service for managing the screen stack, z-ordering, and the frame rendering loop.
Properties
Functions
Enables or disables phone preview mode, which mirrors the glasses HUD on the phone display.
Returns the current rendering center X offset, used for personal display alignment.
Returns the current rendering center Y offset, used for personal display alignment.
Registers a listener for frame-based draw events.
Registers a listener for screen stack and rendering configuration events.
Removes a regular (non-system) screen from the stack and pops the next screen to the top.
Removes the current topmost screen (if present).
Sets the rendering center X offset for personal display alignment.
Sets the rendering center Y offset for personal display alignment.
Unregisters a previously registered draw event listener.
Unregisters a previously registered screen event listener.
Sends updated session parameters (screen offset, dimensions, rendering rate) to the glasses if any have changed since the last call.