forked from Blendman974/faceclaw
Stream BLE advertisements into a dedicated pairing flow with arm, ring, serial, and hardware variant detection. Add proximity ranking, device artwork, pairing safeguards, and unit coverage for discovery and candidate grouping.
27 lines
646 B
TypeScript
27 lines
646 B
TypeScript
import { Frame, Observable } from "@nativescript/core";
|
|
|
|
import { openEvenAppSettings } from "../native/even-app-conflict";
|
|
|
|
export class OnboardingUnpairViewModel extends Observable {
|
|
onOpenEvenAppSettingsTap(): void {
|
|
openEvenAppSettings();
|
|
}
|
|
|
|
onContinueTap(): void {
|
|
Frame.topmost()?.navigate({ moduleName: "phone-ui/onboarding-firmware-check-page" });
|
|
}
|
|
|
|
onBackTap(): void {
|
|
const frame = Frame.topmost();
|
|
if (frame?.canGoBack()) {
|
|
frame.goBack();
|
|
return;
|
|
}
|
|
frame?.navigate({
|
|
moduleName: "phone-ui/pairing-page",
|
|
context: { onboarding: true },
|
|
clearHistory: true,
|
|
});
|
|
}
|
|
}
|