Skip to main content

Layout Types

This page documents the layout interfaces used to display content in the AR view.

Layout Interface

The Layout type is a union of all available layout types:
Each layout has a specific structure that defines how content is presented in the AR display.

TextWall

A simple layout for displaying a single block of text.
Example:

DoubleTextWall

A layout for displaying two blocks of text vertically.
Example:

ReferenceCard

A card-style layout with a title and main content text.
Example:

DashboardCard

A card-style layout designed for displaying key-value pairs, typically used in dashboards.
Example:

DisplayRequest

The DisplayRequest interface is the message structure sent to MentraOS Cloud when a App wants to display a layout.
Note: You typically don’t need to create DisplayRequest objects directly, as the LayoutManager methods handle this for you.

Best Practices for Layouts

TextWall

  • Best for simple messages that need to be displayed briefly
  • Keep text concise and focused on a single idea
  • Good for notifications, status updates, or simple responses

DoubleTextWall

  • Use when you need to separate a header/title from content
  • The top section works well for brief category or context
  • The bottom section provides the main information
  • Example: “Current Weather” (top) and “72°F, Partly Cloudy” (bottom)

ReferenceCard

  • Best for information that users may need to reference for a longer period
  • Clear title helps set context for the content
  • Supports longer, multi-line text for detailed information
  • Good for instructions, lists, recipes, or structured information

DashboardCard

  • Designed for monitoring key metrics at a glance
  • Clear label-value pairing helps with quick comprehension
  • Works best with short values (numbers, brief status, etc.)
  • Consider using in the DASHBOARD view for persistent display