Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
88c21530
D
Docs
项目概览
OpenHarmony
/
Docs
1 年多 前同步成功
通知
159
Star
292
Fork
28
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Docs
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
88c21530
编写于
7月 03, 2023
作者:
O
openharmony_ci
提交者:
Gitee
7月 03, 2023
浏览文件
操作
浏览文件
下载
差异文件
!20148 feat: API参考新增SysCap支持Lite
Merge pull request !20148 from qiuxiangdong/syscap
上级
98022549
eade842c
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
46 addition
and
30 deletion
+46
-30
en/application-dev/reference/apis/js-apis-system-battery.md
en/application-dev/reference/apis/js-apis-system-battery.md
+3
-3
en/application-dev/reference/apis/js-apis-system-brightness.md
...plication-dev/reference/apis/js-apis-system-brightness.md
+12
-12
en/application-dev/reference/syscap-list.md
en/application-dev/reference/syscap-list.md
+8
-0
zh-cn/application-dev/reference/apis/js-apis-system-battery.md
.../application-dev/reference/apis/js-apis-system-battery.md
+3
-3
zh-cn/application-dev/reference/apis/js-apis-system-brightness.md
...plication-dev/reference/apis/js-apis-system-brightness.md
+12
-12
zh-cn/application-dev/reference/syscap-list.md
zh-cn/application-dev/reference/syscap-list.md
+8
-0
未找到文件。
en/application-dev/reference/apis/js-apis-system-battery.md
浏览文件 @
88c21530
...
...
@@ -21,7 +21,7 @@ getStatus(options?: GetStatusOptions): void;
Obtains the current charging state and battery level.
**System capability**
: SystemCapability.PowerManager.BatteryManager.
Cor
e
**System capability**
: SystemCapability.PowerManager.BatteryManager.
Lit
e
**Parameters**
...
...
@@ -46,7 +46,7 @@ battery.getStatus({
Object that contains the API calling result.
**System capability**
: SystemCapability.PowerManager.BatteryManager.
Cor
e
**System capability**
: SystemCapability.PowerManager.BatteryManager.
Lit
e
| Name | Type | Mandatory| Description |
| -------- | --------------------------------------------------- | ---- | ------------------------------------------------------------ |
...
...
@@ -58,7 +58,7 @@ Object that contains the API calling result.
Defines a response that returns the charging status and remaining power of the device.
**System capability**
: SystemCapability.PowerManager.BatteryManager.
Cor
e
**System capability**
: SystemCapability.PowerManager.BatteryManager.
Lit
e
| Name| Type| Readable| Writable| Description|
| -------- | -------- | -------- | -------- | -------- |
...
...
en/application-dev/reference/apis/js-apis-system-brightness.md
浏览文件 @
88c21530
...
...
@@ -22,7 +22,7 @@ getValue(options?: GetBrightnessOptions): void
Obtains the current screen brightness.
**System capability**
: SystemCapability.PowerManager.DisplayPowerManager
**System capability**
: SystemCapability.PowerManager.DisplayPowerManager
.Lite
**Parameters**
...
...
@@ -50,7 +50,7 @@ setValue(options?: SetBrightnessOptions): void
Sets the screen brightness.
**System capability**
: SystemCapability.PowerManager.DisplayPowerManager
**System capability**
: SystemCapability.PowerManager.DisplayPowerManager
.Lite
**Parameters**
...
...
@@ -79,7 +79,7 @@ getMode(options?: GetBrightnessModeOptions): void
Obtains the screen brightness adjustment mode.
**System capability**
: SystemCapability.PowerManager.DisplayPowerManager
**System capability**
: SystemCapability.PowerManager.DisplayPowerManager
.Lite
**Parameters**
...
...
@@ -107,7 +107,7 @@ setMode(options?: SetBrightnessModeOptions): void
Sets the screen brightness adjustment mode.
**System capability**
: SystemCapability.PowerManager.DisplayPowerManager
**System capability**
: SystemCapability.PowerManager.DisplayPowerManager
.Lite
**Parameters**
| Name| Type| Mandatory| Description|
...
...
@@ -137,7 +137,7 @@ setKeepScreenOn(options?: SetKeepScreenOnOptions): void
Sets whether to always keep the screen on. Call this API in
**onShow()**
.
**System capability**
: SystemCapability.PowerManager.DisplayPowerManager
**System capability**
: SystemCapability.PowerManager.DisplayPowerManager
.Lite
**Parameters**
...
...
@@ -162,7 +162,7 @@ Sets whether to always keep the screen on. Call this API in **onShow()**.
Defines the options for obtaining the screen brightness.
**System capability**
: SystemCapability.PowerManager.DisplayPowerManager
**System capability**
: SystemCapability.PowerManager.DisplayPowerManager
.Lite
| Name | Type | Mandatory| Description |
| -------- | --------------------------------------------------------- | ---- | ------------------------------------------------------------ |
...
...
@@ -174,7 +174,7 @@ Defines the options for obtaining the screen brightness.
Defines the options for setting the screen brightness.
**System capability**
: SystemCapability.PowerManager.DisplayPowerManager
**System capability**
: SystemCapability.PowerManager.DisplayPowerManager
.Lite
| Name | Type | Mandatory| Description |
| -------- | ------------------------------------ | ---- | ------------------------------------------------------------ |
...
...
@@ -187,7 +187,7 @@ Defines the options for setting the screen brightness.
Defines a response that returns the screen brightness.
**System capability**
: SystemCapability.PowerManager.DisplayPowerManager
**System capability**
: SystemCapability.PowerManager.DisplayPowerManager
.Lite
| Name| Type| Readable| Writable| Description|
| -------- | -------- | -------- | -------- | -------- |
...
...
@@ -197,7 +197,7 @@ Defines a response that returns the screen brightness.
Defines the options for obtaining the screen brightness mode.
**System capability**
: SystemCapability.PowerManager.DisplayPowerManager
**System capability**
: SystemCapability.PowerManager.DisplayPowerManager
.Lite
| Name | Type | Mandatory| Description |
| -------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ |
...
...
@@ -209,7 +209,7 @@ Defines the options for obtaining the screen brightness mode.
Defines the options for setting the screen brightness mode.
**System capability**
: SystemCapability.PowerManager.DisplayPowerManager
**System capability**
: SystemCapability.PowerManager.DisplayPowerManager
.Lite
| Name | Type | Mandatory| Description |
| -------- | ------------------------------------ | ---- | ------------------------------------------------------ |
...
...
@@ -222,7 +222,7 @@ Defines the options for setting the screen brightness mode.
Defines a response that returns the screen brightness mode.
**System capability**
: SystemCapability.PowerManager.DisplayPowerManager
**System capability**
: SystemCapability.PowerManager.DisplayPowerManager
.Lite
| Name| Type| Readable| Writable| Description|
| -------- | -------- | -------- | -------- | -------- |
...
...
@@ -232,7 +232,7 @@ Defines a response that returns the screen brightness mode.
Defines the options for setting the screen to be steady on.
**System capability**
: SystemCapability.PowerManager.DisplayPowerManager
**System capability**
: SystemCapability.PowerManager.DisplayPowerManager
.Lite
| Name | Type | Mandatory| Description |
| ------------ | ------------------------------------ | ---- | ------------------------------------------------------ |
...
...
en/application-dev/reference/syscap-list.md
浏览文件 @
88c21530
...
...
@@ -359,6 +359,14 @@ Power management display
| ------- | ------ | ------ | ---- | ---- | ------ | ------------ | ------ |
| Yes | No | Yes | Yes | No | Yes | No | No |
## SystemCapability.PowerManager.DisplayPowerManager.Lite
Lite device capabilities of the system power management display
| Default | Sports Watch| Smart Watch| Tablet| Head Unit| Smart TV| Smart Vision | Router |
| ------- | ------ | ------ | ---- | ---- | ------ | ------------ | ------ |
| Yes | Yes | Yes | Yes | No | Yes | No | No |
## SystemCapability.PowerManager.ThermalManager
Temperature control
...
...
zh-cn/application-dev/reference/apis/js-apis-system-battery.md
浏览文件 @
88c21530
...
...
@@ -21,7 +21,7 @@ getStatus(options?: GetStatusOptions): void;
获取设备当前的充电状态及剩余电量。
**系统能力:**
SystemCapability.PowerManager.BatteryManager.
Cor
e
**系统能力:**
SystemCapability.PowerManager.BatteryManager.
Lit
e
**参数:**
...
...
@@ -46,7 +46,7 @@ battery.getStatus({
包含接口调用结果的对象。
**系统能力:**
SystemCapability.PowerManager.BatteryManager.
Cor
e
**系统能力:**
SystemCapability.PowerManager.BatteryManager.
Lit
e
| 参数名 | 类型 | 必填 | 说明 |
| -------- | --------------------------------------------------- | ---- | ------------------------------------------------------------ |
...
...
@@ -58,7 +58,7 @@ battery.getStatus({
包含充电状态及剩余电量的对象。
**系统能力:**
SystemCapability.PowerManager.BatteryManager.
Cor
e
**系统能力:**
SystemCapability.PowerManager.BatteryManager.
Lit
e
| 参数名 | 类型 | 可读 | 可写 | 说明 |
| -------- | -------- | -------- | -------- | -------- |
...
...
zh-cn/application-dev/reference/apis/js-apis-system-brightness.md
浏览文件 @
88c21530
...
...
@@ -22,7 +22,7 @@ getValue(options?: GetBrightnessOptions): void
获得设备当前的屏幕亮度值。
**系统能力:**
SystemCapability.PowerManager.DisplayPowerManager
**系统能力:**
SystemCapability.PowerManager.DisplayPowerManager
.Lite
**参数:**
...
...
@@ -50,7 +50,7 @@ setValue(options?: SetBrightnessOptions): void
设置设备当前的屏幕亮度值。
**系统能力:**
SystemCapability.PowerManager.DisplayPowerManager
**系统能力:**
SystemCapability.PowerManager.DisplayPowerManager
.Lite
**参数:**
...
...
@@ -79,7 +79,7 @@ getMode(options?: GetBrightnessModeOptions): void
获得当前屏幕亮度模式。
**系统能力:**
SystemCapability.PowerManager.DisplayPowerManager
**系统能力:**
SystemCapability.PowerManager.DisplayPowerManager
.Lite
**参数:**
...
...
@@ -107,7 +107,7 @@ setMode(options?: SetBrightnessModeOptions): void
设置设备当前的屏幕亮度模式。
**系统能力:**
SystemCapability.PowerManager.DisplayPowerManager
**系统能力:**
SystemCapability.PowerManager.DisplayPowerManager
.Lite
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -137,7 +137,7 @@ setKeepScreenOn(options?: SetKeepScreenOnOptions): void
设置屏幕是否保持常亮状态,开启常亮模式推荐在onShow()阶段调用。
**系统能力:**
SystemCapability.PowerManager.DisplayPowerManager
**系统能力:**
SystemCapability.PowerManager.DisplayPowerManager
.Lite
**参数:**
...
...
@@ -162,7 +162,7 @@ setKeepScreenOn(options?: SetKeepScreenOnOptions): void
获取屏幕亮度的参数对象。
**系统能力:**
SystemCapability.PowerManager.DisplayPowerManager
**系统能力:**
SystemCapability.PowerManager.DisplayPowerManager
.Lite
| 名称 | 类型 | 必填 | 说明 |
| -------- | --------------------------------------------------------- | ---- | ------------------------------------------------------------ |
...
...
@@ -174,7 +174,7 @@ setKeepScreenOn(options?: SetKeepScreenOnOptions): void
设置屏幕亮度的参数对象。
**系统能力:**
SystemCapability.PowerManager.DisplayPowerManager
**系统能力:**
SystemCapability.PowerManager.DisplayPowerManager
.Lite
| 名称 | 类型 | 必填 | 说明 |
| -------- | ------------------------------------ | ---- | ------------------------------------------------------------ |
...
...
@@ -187,7 +187,7 @@ setKeepScreenOn(options?: SetKeepScreenOnOptions): void
包含屏幕亮度的对象。
**系统能力:**
SystemCapability.PowerManager.DisplayPowerManager
**系统能力:**
SystemCapability.PowerManager.DisplayPowerManager
.Lite
| 名称 | 类型 | 可读 | 可写 | 说明 |
| -------- | -------- | -------- | -------- | -------- |
...
...
@@ -197,7 +197,7 @@ setKeepScreenOn(options?: SetKeepScreenOnOptions): void
获取屏幕亮度模式的参数对象。
**系统能力:**
SystemCapability.PowerManager.DisplayPowerManager
**系统能力:**
SystemCapability.PowerManager.DisplayPowerManager
.Lite
| 名称 | 类型 | 必填 | 说明 |
| -------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ |
...
...
@@ -209,7 +209,7 @@ setKeepScreenOn(options?: SetKeepScreenOnOptions): void
设置屏幕亮度模式的参数对象。
**系统能力:**
SystemCapability.PowerManager.DisplayPowerManager
**系统能力:**
SystemCapability.PowerManager.DisplayPowerManager
.Lite
| 名称 | 类型 | 必填 | 说明 |
| -------- | ------------------------------------ | ---- | ------------------------------------------------------ |
...
...
@@ -222,7 +222,7 @@ setKeepScreenOn(options?: SetKeepScreenOnOptions): void
包含屏幕亮度模式的对象。
**系统能力:**
SystemCapability.PowerManager.DisplayPowerManager
**系统能力:**
SystemCapability.PowerManager.DisplayPowerManager
.Lite
| 名称 | 类型 | 可读 | 可写 | 说明 |
| -------- | -------- | -------- | -------- | -------- |
...
...
@@ -232,7 +232,7 @@ setKeepScreenOn(options?: SetKeepScreenOnOptions): void
设置屏幕常亮的参数对象。
**系统能力:**
SystemCapability.PowerManager.DisplayPowerManager
**系统能力:**
SystemCapability.PowerManager.DisplayPowerManager
.Lite
| 名称 | 类型 | 必填 | 说明 |
| ------------ | ------------------------------------ | ---- | ------------------------------------------------------ |
...
...
zh-cn/application-dev/reference/syscap-list.md
浏览文件 @
88c21530
...
...
@@ -359,6 +359,14 @@ GNSS硬件相关能力
| ------- | ------ | ------ | ---- | ---- | ------ | ------------ | ------ |
| 是 | 否 | 是 | 是 | 否 | 是 | 否 | 否 |
## SystemCapability.PowerManager.DisplayPowerManager.Lite
轻设备系统显示能效管理
| Default | 运动表 | 智能表 | 平板 | 车机 | 智慧屏 | Smart-Vision | Router |
| ------- | ------ | ------ | ---- | ---- | ------ | ------------ | ------ |
| 是 | 是 | 是 | 是 | 否 | 是 | 否 | 否 |
## SystemCapability.PowerManager.ThermalManager
温控服务
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录