BackgroundService🧪
为后台网页平台功能定义事件。
EN
Defines events for background web platform features.
✅️️ Methods
🔨BackgroundService.clearEvents
清除该服务的所有存储数据。
EN
Clears all stored data for the service.
| 参数 | 必填 | 标记 | 类型 | 描述 | 原文 |
|---|---|---|---|---|---|
| service | ✔️ | ServiceName |
🔨BackgroundService.setRecording
为服务设置录制状态。
EN
Set the recording state for the service.
| 参数 | 必填 | 标记 | 类型 | 描述 | 原文 |
|---|---|---|---|---|---|
| shouldRecord | ✔️ | boolean | |||
| service | ✔️ | ServiceName |
🔨BackgroundService.startObserving
启用服务的''事件更新''。
EN
Enables event updates for the service.
| 参数 | 必填 | 标记 | 类型 | 描述 | 原文 |
|---|---|---|---|---|---|
| service | ✔️ | ServiceName |
🔨BackgroundService.stopObserving
禁用该服务的事件更新。
EN
Disables event updates for the service.
| 参数 | 必填 | 标记 | 类型 | 描述 | 原文 |
|---|---|---|---|---|---|
| service | ✔️ | ServiceName |