[feat] add HarmonyOS desktop and mobile clients,issue #117

This commit is contained in:
kunkundi
2026-10-16 00:42:55 +08:00
parent 43a0789c1e
commit 45bf6ec4ee
149 changed files with 11587 additions and 93 deletions
@@ -0,0 +1,12 @@
import { UIAbility } from '@kit.AbilityKit';
import { window } from '@kit.ArkUI';
import { DesktopHost } from '../pages/DesktopHost';
export default class EntryAbility extends UIAbility {
onPrepareToTerminate(): boolean { return DesktopHost.requestExit(); }
onNewWant(): void { DesktopHost.restore(); }
onForeground(): void { DesktopHost.foreground(); }
onWindowStageCreate(stage: window.WindowStage): void {
DesktopHost.start(stage, this.context);
}
}