如何在HSP模块切换根视图
如何在HSP模块切换根视图,是否需要在HSP模块拿到程序入口的WindowStage进行切换,具体怎么实现?
HarmonyOS
赞
收藏 0
回答 1
待解决
相关问题
HarmonyOS app模块拆分,图标在A模块,A模块绘制绘制不出来,但A不是根模块
218浏览 • 1回复 待解决
HSP如何感知前后台切换
1777浏览 • 1回复 待解决
HAP跳转HSP模块,HSP模块的页面,无法通过页面路径,进行路由跳转
369浏览 • 1回复 待解决
在hsp子模块中如何加载悬浮窗页面
1617浏览 • 1回复 待解决
如何在组件中监听App前后台切换?
36浏览 • 0回复 待解决
请问如何在ArkTS中准确判断一个视图是否可见?
162浏览 • 1回复 待解决
如何正确处理HAR/HSP包模块间的依赖关系
2310浏览 • 1回复 待解决
HarmonyOS HSP模块引用har模块Dialog工具类,导致弹窗无法正常弹起
187浏览 • 1回复 待解决
无法读取到hsp模块中的rawfile文件
1627浏览 • 1回复 待解决
hsp能否监听主模块EntryAbility的onCreate事件
527浏览 • 1回复 待解决
HarmonyOS当中如何在代码中进行横竖屏的切换
251浏览 • 1回复 待解决
如何在配置同一app下的HSP文件vendor参数
424浏览 • 1回复 待解决
是否可以在TaskPool中动态加载模块(HAR、HSP、SO)
1631浏览 • 1回复 待解决
请问如何获取到鸿蒙的根布局
6490浏览 • 1回复 待解决
如何在不同page中进行沉浸式和非沉浸式切换?
82浏览 • 1回复 待解决
如何在entry模块的main_pages.json中声明另一个模块的页面
1472浏览 • 1回复 待解决
如何在一个模块中使用另一个模块中编译出来的so
547浏览 • 1回复 待解决
Tabs如何在切换到指定界面后才加载界面的数据
130浏览 • 1回复 待解决
在有HSP模块依赖的应用中运行单元测试似乎有问题。
591浏览 • 1回复 待解决
HarmonyOS如何在entry模块里面加载另一个har中的页面?
128浏览 • 1回复 待解决
HarmonyOS 子视图超出父视图的范围部分,onClick不可点击
36浏览 • 1回复 待解决
在hsp包上传到私库,其他模块引用后,是否可以查看依赖包源码
482浏览 • 1回复 待解决
PolarDB中的事件/视图/存储过程如何导出?
2854浏览 • 1回复 待解决
如何在不使用UIAbility的情况下,也能够模块化的管理代码,且各个模块之间可以相互路由跳转?
243浏览 • 1回复 待解决
在HSP页面中,通过windowStage对象的getMainWindowSync接口获取主窗口,然后使用pushUrl跳转到跟页面,在跟页面通过router.pushNamedRoute切换到HSP页面。具体请参考示例代码:
HspPage页面Index代码:
根页面page1
根页面page2