提交 e049412f 编写于 作者: Z zengyawen
上级 2a636972
...@@ -292,7 +292,7 @@ power.setPowerMode(power.DevicePowerMode.MODE_PERFORMANCE) ...@@ -292,7 +292,7 @@ power.setPowerMode(power.DevicePowerMode.MODE_PERFORMANCE)
rebootDevice(reason: string): void rebootDevice(reason: string): void
> 从API version 9开始不再维护,建议使用[power.reboot](#powerreboot9)替代。 > **说明:**<br>从API version 9开始不再维护,建议使用[power.reboot](#powerreboot9)替代。
重启设备。 重启设备。
...@@ -316,7 +316,7 @@ power.rebootDevice('reboot_test'); ...@@ -316,7 +316,7 @@ power.rebootDevice('reboot_test');
isScreenOn(callback: AsyncCallback&lt;boolean&gt;): void isScreenOn(callback: AsyncCallback&lt;boolean&gt;): void
> 从API version 9开始不再维护,建议使用[power.isActive](#powerisactive9)替代。 > **说明:**<br>从API version 9开始不再维护,建议使用[power.isActive](#powerisactive9)替代。
检测当前设备的亮灭屏状态。使用callback异步回调。 检测当前设备的亮灭屏状态。使用callback异步回调。
...@@ -344,7 +344,7 @@ power.isScreenOn((err, data) => { ...@@ -344,7 +344,7 @@ power.isScreenOn((err, data) => {
isScreenOn(): Promise&lt;boolean&gt; isScreenOn(): Promise&lt;boolean&gt;
> 从API version 9开始不再维护,建议使用[power.isActive](#powerisactive9)替代。 > **说明:**<br>从API version 9开始不再维护,建议使用[power.isActive](#powerisactive9)替代。
检测当前设备的亮灭屏状态。使用Promise异步回调。 检测当前设备的亮灭屏状态。使用Promise异步回调。
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册