forked from Blendman974/faceclaw
34 lines
2.0 KiB
Markdown
34 lines
2.0 KiB
Markdown
# Main-screen UI
|
|
|
|
Android and iOS share `remote-controls.xml`, `remote-controls.css`, and
|
|
`RemoteControlsViewModel`: tab order and selection, screen-size choices,
|
|
brightness/Auto settings, watch labels, ring markings, and microphone/keyboard
|
|
buttons. Import the stylesheet at the top of each platform's application CSS
|
|
(before any rules), so the NativeScript CSS pipeline includes it.
|
|
|
|
Android's `MainViewModel` extends that shared model and connects it to
|
|
`dashboardController`. iOS loads the same XML with `Builder.load` and connects
|
|
it to `IosPreviewController`. Keep platform-specific transport, page lifecycle,
|
|
and navigation in those adapters. Android uses NativeScript gesture events;
|
|
iOS feeds raw touches to `PhoneGestureRecognizer`, so the discrete pad gesture
|
|
bindings in the XML are Android-only to avoid delivering each gesture twice.
|
|
|
|
The iOS shell uses the same portrait preview-above-controls layout and 345-DIP
|
|
landscape controls column. It respects safe areas, uses the same overflow menu
|
|
labels/order, and retains device diagnostics under the connection status.
|
|
Conversations and Record screen are disabled on iOS because their storage and
|
|
recording services are currently Android-only. Take screenshot opens the iOS
|
|
share sheet. Text settings still use native dialogs. Keyboard input uses the
|
|
shared `keyboard-input-panel.xml` multiline editor and shell keyboard session,
|
|
with separate Agent and App destinations when available. iOS keeps the editor
|
|
above the software keyboard in both orientations.
|
|
|
|
Voice input uses the glasses microphone when connected and the phone's default
|
|
audio input in preview mode. The phone path requires both Speech Recognition
|
|
and Microphone permissions and stops when Faceclaw leaves the foreground;
|
|
connected-glasses capture retains its existing background behavior.
|
|
|
|
The iOS microphone and keyboard image assets are 3x rasterizations of the
|
|
Android vector drawables with the same names; regenerate them from those
|
|
vectors if the icon designs change.
|