网站首页
编程语言
数据库
系统相关
其他分享
编程问答
setOrCreate
2024-09-03
HarmonyOS沉浸式模式FullScreen
import{window}from'@kit.ArkUI'classFullScreen{//开启全屏asyncenable(){constctx=AppStorage.get<Context>('context')!constwin=awaitwindow.getLastWindow(ctx)win.setWindowLayoutFullScreen(true)//顶部安全区