// Show initial messagesession.layouts.showTextWall('Loading...');// After processing (replaces "Loading...")session.layouts.showTextWall('Data loaded!');
Progressive updates:
session.events.onTranscription((data) => { if (data.isFinal) { // Show final transcription session.layouts.showTextWall(data.text); } else { // Show interim results session.layouts.showTextWall(`${data.text}...`); }});
// ✅ Goodsession.layouts.showTextWall('Message sent!');// ❌ Avoid - too verbosesession.layouts.showTextWall( 'Your message has been successfully sent to the recipient.');
Adapt to display capabilities:
const caps = session.capabilities;if (caps?.display?.maxTextLines && caps.display.maxTextLines < 5) { // Small display - use short message session.layouts.showTextWall('Updated!');} else { // Larger display - show details session.layouts.showTextWall( 'Update complete\nTime: 10:30\nStatus: Success' );}
Use appropriate layout type:
// Question/answer - use DoubleTextWallsession.layouts.showDoubleTextWall({ topText: 'What is 2 + 2?', bottomText: 'Answer: 4'});// Structured data - use ReferenceCardsession.layouts.showReferenceCard('Contact', 'Name: John\nPhone: 555-0100');// Simple message - use TextWallsession.layouts.showTextWall('Processing...');