Skip to main content

PWA状态接口

🌐 PWAState interface

已安装的网页应用的操作系统集成状态,由 Browser.getPWAState() 返回。

🌐 The OS-integration state of an installed web app, returned by Browser.getPWAState().

语法​

🌐 Signature

export interface PWAState

属性​

🌐 Properties

属性

🌐 Property

修饰符

🌐 Modifiers

类型

🌐 Type

描述

🌐 Description

默认

🌐 Default

badgeCount

number

应用图标上显示的当前徽章数量。

🌐 The current badge count shown on the app icon.

fileHandlers

Protocol.PWA.FileHandler[]

🌐 Protocol.PWA.FileHandler[]

应用向操作系统注册的文件处理器。

🌐 The file handlers registered by the app with the OS.