• Home
Name Date Size #Lines LOC

..--

entry/12-May-2024-821673

screenshots/12-May-2024-75

.gitignoreD12-May-2024121 88

README.mdD12-May-2024349 147

README_zh.mdD12-May-2024928 2814

build-profile.json5D12-May-20241 KiB4341

hvigorfile.jsD12-May-2024174 21

package.jsonD12-May-2024372 1918

README.md

1# Device Information
2
3### Introduction
4
5In this sample, you can obtain the device information, system attributes and battery information through the **deviceInfo**, **systemParameter**, and **batteryInfo** APIs.
6
7### Usage
8
9Touch a button to view the respective information.
10
11### Constraints
12
13This sample can only be run on standard-system devices.
14

README_zh.md

1# 设备信息
2
3### 简介
4
5本示例通过deviceInfo、systemParameter和batteryInfo接口分别来查询设备信息、系统属性和电池信息。
6
7实现效果如下:
8
9![](screenshots/device/device.png)
10
11### 相关概念
12
13设备使用信息统计:包括app usage/notification usage/system usage等使用统计。例如应用使用信息统计,用于保存和查询应用使用详情(app usage)、事件日志数据(event log)、应用分组(bundle group)情况。 部件缓存的应用记录(使用历史统计和使用事件记录)会在事件上报后30分钟内刷新到数据库持久化保存。
14
15### 相关权限
16
17不涉及。
18
19### 使用说明
20
21分别点击对象的按钮框,查看对应的信息。
22
23### 约束与限制
24
251.本示例仅支持在标准系统上运行。
26
272.本示例需要使用DevEco Studio 3.0 Beta4 (Build Version: 3.0.0.992, built on July 14, 2022)才可编译运行。
28