Layout Types
This page documents the layout interfaces used to display content in the AR view.Layout Interface
TheLayout
type is a union of all available layout types:
TextWall
A simple layout for displaying a single block of text.DoubleTextWall
A layout for displaying two blocks of text vertically.ReferenceCard
A card-style layout with a title and main content text.DashboardCard
A card-style layout designed for displaying key-value pairs, typically used in dashboards.DisplayRequest
TheDisplayRequest
interface is the message structure sent to MentraOS Cloud when a App wants to display a layout.
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