UI Definition
Describes the screen structure, component types, content and available actions. It establishes what the interface contains.
A2UI is the application-driven interface layer for VivoCube. Your application describes what the user needs to see and do. The framework delivers that description, and VivoCube renders it on its fixed 240 × 240 display and returns physical-button input as UI events.
VivoCube is not a miniature general-purpose screen. It uses a defined set of UI components and layout rules designed for a small, square display and physical-button input. Applications provide the interface content; the device renders it within those rules.
Describes the screen structure, component types, content and available actions. It establishes what the interface contains.
Describes the current values and presentation state, such as text, visibility, progress and status.
Reports a physical interaction, such as a button press, back to the active application session.
Build a definition for the current task.
Submit through the shared UI framework.
Check the target device, permission and focus.
Render the supported components on the display.
Physical input becomes a standard UI Event.
Route the event using device and session context.
Perform the requested application action.
Send updated state or a new definition.
The panel is square, but the usable content area is smaller. Keep important text and controls inside the defined safe area so they remain readable and are not clipped by the panel edges.
Illustrative layout only — not a pixel-perfect renderer preview.
Design around the component families identified for the current A2UI guide. Keep each screen focused on one task and avoid treating the display as a free-form canvas.
Use short labels and a clear heading to establish context. The title should explain the task, not repeat long instructions.
Show a small number of important settings or values, such as a parameter name and its current value.
Communicate a concise state such as waiting, completed or failed.
Show progress for a task that is underway. Keep accompanying text brief.
Present a short list of choices that can be selected using physical buttons.
Make the result of each action explicit. Use confirmation for consequential actions where appropriate.
Use only icons from the supplied internal icon library. Do not introduce arbitrary image assets.
Because interaction is driven by physical buttons, the interface must make the current state and the result of an action easy to understand at a glance.
The normal, unselected presentation of a component.
The currently focused option. Use the defined active treatment so the selection is visible.
The action has been accepted or completed. Show a clear result rather than leaving the selection ambiguous.
Use consistent visual meaning for waiting, successful confirmation and cancellation or error.
The display uses a restricted visual system. Keep the interface high-contrast, restrained and consistent with the palette below.
Prepare the required screens and annotate the interface so the implementation team can understand the intended layout, content limits and physical interaction.
The following is a conceptual example to explain the relationship between displayed content and physical actions. It is not a frozen API schema or a guaranteed payload format.
{
"screen": "brush_size",
"title": "Brush Size",
"value": 24,
"unit": "px",
"actions": [
{ "button": "left", "action": "decrease_value" },
{ "button": "right", "action": "increase_value" },
{ "button": "center","action": "confirm" }
]
}
These constraints are part of the current display and rendering model. Design within them instead of relying on effects or content types that the device does not support.
The current Chinese font set is limited to approximately 510 characters. To avoid missing glyphs or inconsistent rendering, prepare user-facing interface copy in English for this design target. This is a current implementation constraint, not a statement about future language support.
Use Figma for the visual source of truth and include a compact parameter sheet. The canvas must match the hardware display exactly.
Set every screen frame to exactly 240 × 240 px. Keep the safe-area guide visible in the working file.
List component types, values, text, colors, state variants, visibility and layout parameters.
Document each physical button, the action it triggers, and the expected UI response.
The design rules above are one half of the contract. This is the other half: the four objects an application works with, who owns which field, and the route a press takes back to the app.
| Object | Owned by | Carries | Lifetime |
|---|---|---|---|
| UI Definition | Application | Layout, component list, which key maps to which action | Replaced whenever the task changes |
| UI State | Application | Values, visibility, text, progress, version | Sent on every change that should show |
| UI Event | Framework | button_id, action_id, sequence | One per press, delivered to the session owner |
| UI Session | Framework | session_id, owner, focus, priority, expires_at | Ends when the app closes, focus moves, or the timeout passes |
{
"device_id": "vc_001",
"session_id": "session_photoshop_01",
"definition_version": 12,
"layout": "parameter_with_actions",
"components": [
{ "id": "title", "type": "text", "value": "Brush Size" },
{ "id": "value", "type": "number", "value": 24, "unit": "px" }
],
"actions": [
{ "button_id": "button_1", "action_id": "decrease_brush_size" },
{ "button_id": "button_2", "action_id": "increase_brush_size" }
]
}