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

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

HarmonyOS
2024-03-17 12:02:01
浏览
收藏 0
回答 1
回答 1
按赞同
/
按时间
失望的满天星

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

fullscreen表示支持全屏显示,split表示支持分屏显示,floating表示支持窗口化显示。

参考代码如下:

"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.

已于2024-3-26 17:23:46修改
分享
微博
QQ
微信
回复
2024-03-17 21:59:07
相关问题
禁用窗口全屏显示功能如何实现?
900浏览 • 1回复 待解决
HarmonyOS webvideo禁用全屏显示问题
840浏览 • 1回复 待解决
HarmonyOS如何禁用当前窗口点击事件
742浏览 • 1回复 待解决
HarmonyOS 页面如何设置全屏显示
1994浏览 • 1回复 待解决
Dialog如何覆盖状态栏全屏显示
11182浏览 • 1回复 待解决
startWindowIcon可以设置全屏显示吗?
2179浏览 • 1回复 待解决
HarmonyOS 地图怎么单独全屏显示
812浏览 • 1回复 待解决
如何获取窗口截图并显示在Image中?
1152浏览 • 1回复 待解决
如何实现一个页面显示窗口
1354浏览 • 1回复 待解决