禁用窗口的全屏显示功能如何实现?

禁用窗口的全屏显示功能如何实现?

HarmonyOS
2024-07-14 11:35:11
浏览
收藏 0
回答 1
回答 1
按赞同
/
按时间
NGKSWCIDT

可以在module.json5文件中通过配置abilities中的supportWindowMode字段去指定是否显示。

"abilities": [
  {
    "name": "EntryAbility",
    "srcEntry": "./ets/entryability/EntryAbility.ets",
    "description": "$string:EntryAbility_desc",
    "icon": "$media:icon",
    "label": "$string:EntryAbility_label",
    "startWindowIcon": "$media:icon",
    "startWindowBackground": "$color:start_window_background",
    "exported": true,
    "supportWindowMode": ["split", "floating"],
    "skills": [
      {
        "entities": [
          "entity.system.home"
        ],
        "actions": [
          "action.system.home"
        ]
      }
    ]
  }
]
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
分享
微博
QQ
微信
回复
2024-07-14 16:29:36


相关问题
如何禁用窗口全屏显示功能
2071浏览 • 1回复 待解决
HarmonyOS webvideo禁用全屏显示问题
551浏览 • 1回复 待解决
HarmonyOS如何禁用当前窗口点击事件
476浏览 • 1回复 待解决
如何实现一个页面显示窗口
1057浏览 • 1回复 待解决
HarmonyOS 页面如何设置全屏显示
1465浏览 • 1回复 待解决
Dialog如何覆盖状态栏全屏显示
10761浏览 • 1回复 待解决
startWindowIcon可以设置全屏显示吗?
1708浏览 • 1回复 待解决
HarmonyOS 地图怎么单独全屏显示
509浏览 • 1回复 待解决