Package-level declarations

Reusable view-level composables for rendering the live glasses preview feed on the phone screen with optional recording controls and world-to-screen coordinate mapping.

Functions

Link copied to clipboard
fun M2Preview(modifier: Modifier = Modifier, simTouch: Boolean = false, onPreviewDrag: (Offset) -> Unit? = null, recordPreview: Boolean = false, backgroundVideoEnabled: Boolean = false, backgroundVideoPath: String = DEFAULT_BG_VIDEO_PATH, onRecordingProcessingChange: (Boolean) -> Unit = {}, onRecordingSaved: (String) -> Unit = {})

Main glasses HUD preview renderer.

Link copied to clipboard
fun M2PreviewFloating(modifier: Modifier = Modifier, offsetFromTopFraction: Float = 0.5f, simTouch: Boolean = false, backgroundVideoPath: String = DEFAULT_BG_VIDEO_PATH, enableRecording: Boolean = false, onRecordingSaved: suspend (outputPath: String) -> Unit? = null, onExportHistoryClick: () -> Unit? = null, onExportComplete: (outputPath: String, movPath: String?) -> Unit? = null, onClose: () -> Unit? = null)

A draggable, floating preview window that renders the glasses HUD scene on the phone screen. The window can be minimized, docked to either edge, and optionally supports recording the rendered frames to disk.