forked from Blendman974/faceclaw
20 lines
730 B
TypeScript
20 lines
730 B
TypeScript
declare const com: any;
|
|
|
|
/**
|
|
* The Java object a worker isolate submits surface frames to: the live BLE
|
|
* communicator, or the preview-only compositor standing in when no glasses
|
|
* are paired (both expose the same submitSurfaceFrame signature). Located
|
|
* through Java statics because those are shared across isolates, unlike any
|
|
* JS-side state.
|
|
*
|
|
* Frame submission only. Glasses-hardware calls (e.g. playBuzzerSequence)
|
|
* should keep using FaceclawBleCommunicator.getActive() directly, so they
|
|
* skip cleanly when nothing is connected.
|
|
*/
|
|
export function getActiveDisplay(): any {
|
|
return (
|
|
com.faceclaw.app.FaceclawBleCommunicator.getActive() ??
|
|
com.faceclaw.app.FaceclawPreviewCompositor.getActive()
|
|
);
|
|
}
|