未验证 提交 dc20c03b 编写于 作者: O openharmony_ci 提交者: Gitee

!13907 翻译已完成13140+13209+13110+13148+13145+13194

Merge pull request !13907 from shawn_he/13140-b
...@@ -13,6 +13,8 @@ import InputEvent from '@ohos.multimodalInput.inputEvent'; ...@@ -13,6 +13,8 @@ import InputEvent from '@ohos.multimodalInput.inputEvent';
## InputEvent ## InputEvent
Defines an input event.
**System capability**: SystemCapability.MultimodalInput.Input.Core **System capability**: SystemCapability.MultimodalInput.Input.Core
**Parameters** **Parameters**
......
...@@ -203,9 +203,8 @@ try { ...@@ -203,9 +203,8 @@ try {
inputMonitor.on("touch", touchEvent => { inputMonitor.on("touch", touchEvent => {
if (touchEvent.touches.length == 3) {// Three fingers are pressed. if (touchEvent.touches.length == 3) {// Three fingers are pressed.
return true; return true;
} else {
return false;
} }
return false;
}); });
} catch (error) { } catch (error) {
console.log(`Monitor on failed, error: ${JSON.stringify(error, [`code`, `message`])}`); console.log(`Monitor on failed, error: ${JSON.stringify(error, [`code`, `message`])}`);
......
...@@ -14,6 +14,8 @@ import {KeyCode} from '@ohos.multimodalInput.keyCode'; ...@@ -14,6 +14,8 @@ import {KeyCode} from '@ohos.multimodalInput.keyCode';
## KeyCode ## KeyCode
Enumerates keycodes.
**System capability**: SystemCapability.MultimodalInput.Input.Core **System capability**: SystemCapability.MultimodalInput.Input.Core
| Name | Value | Description | | Name | Value | Description |
......
...@@ -13,6 +13,8 @@ import {Action, Key, KeyEvent} from '@ohos.multimodalInput.keyEvent'; ...@@ -13,6 +13,8 @@ import {Action, Key, KeyEvent} from '@ohos.multimodalInput.keyEvent';
## Action ## Action
Defines a key action.
**System capability**: SystemCapability.MultimodalInput.Input.Core **System capability**: SystemCapability.MultimodalInput.Input.Core
| Name | Value | Description | | Name | Value | Description |
...@@ -23,6 +25,8 @@ import {Action, Key, KeyEvent} from '@ohos.multimodalInput.keyEvent'; ...@@ -23,6 +25,8 @@ import {Action, Key, KeyEvent} from '@ohos.multimodalInput.keyEvent';
## Key ## Key
Defines a key.
**System capability**: SystemCapability.MultimodalInput.Input.Core **System capability**: SystemCapability.MultimodalInput.Input.Core
| Name | Type| Readable| Writable| Description | | Name | Type| Readable| Writable| Description |
...@@ -33,6 +37,8 @@ import {Action, Key, KeyEvent} from '@ohos.multimodalInput.keyEvent'; ...@@ -33,6 +37,8 @@ import {Action, Key, KeyEvent} from '@ohos.multimodalInput.keyEvent';
## KeyEvent ## KeyEvent
Defines a key event.
**System capability**: SystemCapability.MultimodalInput.Input.Core **System capability**: SystemCapability.MultimodalInput.Input.Core
| Name | Type| Readable| Writable| Description | | Name | Type| Readable| Writable| Description |
......
...@@ -13,6 +13,8 @@ import { Action, Button, Axis, AxisValue, MouseEvent } from '@ohos.multimodalInp ...@@ -13,6 +13,8 @@ import { Action, Button, Axis, AxisValue, MouseEvent } from '@ohos.multimodalInp
## Action ## Action
Defines a mouse action.
**System capability**: SystemCapability.MultimodalInput.Input.Core **System capability**: SystemCapability.MultimodalInput.Input.Core
| Name | Value| Description | | Name | Value| Description |
...@@ -28,6 +30,8 @@ import { Action, Button, Axis, AxisValue, MouseEvent } from '@ohos.multimodalInp ...@@ -28,6 +30,8 @@ import { Action, Button, Axis, AxisValue, MouseEvent } from '@ohos.multimodalInp
## Button ## Button
Enumerates mouse actions.
**System capability**: SystemCapability.MultimodalInput.Input.Core **System capability**: SystemCapability.MultimodalInput.Input.Core
| Name | Value | Description | | Name | Value | Description |
...@@ -43,6 +47,8 @@ import { Action, Button, Axis, AxisValue, MouseEvent } from '@ohos.multimodalInp ...@@ -43,6 +47,8 @@ import { Action, Button, Axis, AxisValue, MouseEvent } from '@ohos.multimodalInp
## Axis ## Axis
Enumerates mouse axis types.
**System capability**: SystemCapability.MultimodalInput.Input.Core **System capability**: SystemCapability.MultimodalInput.Input.Core
| Name | Value | Description | | Name | Value | Description |
...@@ -54,6 +60,8 @@ import { Action, Button, Axis, AxisValue, MouseEvent } from '@ohos.multimodalInp ...@@ -54,6 +60,8 @@ import { Action, Button, Axis, AxisValue, MouseEvent } from '@ohos.multimodalInp
## AxisValue ## AxisValue
Defines a mouse axis type and value.
**System capability**: SystemCapability.MultimodalInput.Input.Core **System capability**: SystemCapability.MultimodalInput.Input.Core
| Name | Type | Readable | Writable | Description | | Name | Type | Readable | Writable | Description |
...@@ -64,6 +72,8 @@ import { Action, Button, Axis, AxisValue, MouseEvent } from '@ohos.multimodalInp ...@@ -64,6 +72,8 @@ import { Action, Button, Axis, AxisValue, MouseEvent } from '@ohos.multimodalInp
## MouseEvent ## MouseEvent
Defines a mouse event.
**System capability**: SystemCapability.MultimodalInput.Input.Core **System capability**: SystemCapability.MultimodalInput.Input.Core
| Name | Type | Readable | Writable | Description | | Name | Type | Readable | Writable | Description |
......
...@@ -292,6 +292,7 @@ power.setPowerMode(power.DevicePowerMode.MODE_PERFORMANCE) ...@@ -292,6 +292,7 @@ power.setPowerMode(power.DevicePowerMode.MODE_PERFORMANCE)
rebootDevice(reason: string): void rebootDevice(reason: string): void
> NOTE<br>
> This API is deprecated since API version 9. You are advised to use [power.reboot](#powerreboot9) instead. > This API is deprecated since API version 9. You are advised to use [power.reboot](#powerreboot9) instead.
Reboots the system. Reboots the system.
...@@ -316,6 +317,7 @@ power.rebootDevice('reboot_test'); ...@@ -316,6 +317,7 @@ power.rebootDevice('reboot_test');
isScreenOn(callback: AsyncCallback&lt;boolean&gt;): void isScreenOn(callback: AsyncCallback&lt;boolean&gt;): void
> NOTE<br>
> This API is deprecated since API version 9. You are advised to use [power.isActive](#powerisactive9) instead. > This API is deprecated since API version 9. You are advised to use [power.isActive](#powerisactive9) instead.
Checks the screen status of the current device. This API uses an asynchronous callback to return the result. Checks the screen status of the current device. This API uses an asynchronous callback to return the result.
...@@ -344,6 +346,7 @@ power.isScreenOn((err, data) => { ...@@ -344,6 +346,7 @@ power.isScreenOn((err, data) => {
isScreenOn(): Promise&lt;boolean&gt; isScreenOn(): Promise&lt;boolean&gt;
> NOTE<br>
> This API is deprecated since API version 9. You are advised to use [power.isActive](#powerisactive9) instead. > This API is deprecated since API version 9. You are advised to use [power.isActive](#powerisactive9) instead.
Checks the screen status of the current device. This API uses a promise to return the result. Checks the screen status of the current device. This API uses a promise to return the result.
......
...@@ -135,6 +135,7 @@ runningLock.create('running_lock_test', runningLock.RunningLockType.BACKGROUND) ...@@ -135,6 +135,7 @@ runningLock.create('running_lock_test', runningLock.RunningLockType.BACKGROUND)
isRunningLockTypeSupported(type: RunningLockType, callback: AsyncCallback&lt;boolean&gt;): void isRunningLockTypeSupported(type: RunningLockType, callback: AsyncCallback&lt;boolean&gt;): void
> NOTE<br>
> This API is deprecated since API version 9. You are advised to use [runningLock.isSupported](#runninglockissupported9) instead. > This API is deprecated since API version 9. You are advised to use [runningLock.isSupported](#runninglockissupported9) instead.
Checks whether a specified type of **RunningLock** is supported. This API uses an asynchronous callback to return the result. Checks whether a specified type of **RunningLock** is supported. This API uses an asynchronous callback to return the result.
...@@ -164,6 +165,7 @@ runningLock.isRunningLockTypeSupported(runningLock.RunningLockType.BACKGROUND, ( ...@@ -164,6 +165,7 @@ runningLock.isRunningLockTypeSupported(runningLock.RunningLockType.BACKGROUND, (
isRunningLockTypeSupported(type: RunningLockType): Promise&lt;boolean> isRunningLockTypeSupported(type: RunningLockType): Promise&lt;boolean>
> NOTE<br>
> This API is deprecated since API version 9. You are advised to use [runningLock.isSupported](#runninglockissupported9) instead. > This API is deprecated since API version 9. You are advised to use [runningLock.isSupported](#runninglockissupported9) instead.
Checks whether a specified type of **RunningLock** is supported. This API uses a promise to return the result. Checks whether a specified type of **RunningLock** is supported. This API uses a promise to return the result.
...@@ -198,6 +200,7 @@ runningLock.isRunningLockTypeSupported(runningLock.RunningLockType.BACKGROUND) ...@@ -198,6 +200,7 @@ runningLock.isRunningLockTypeSupported(runningLock.RunningLockType.BACKGROUND)
createRunningLock(name: string, type: RunningLockType, callback: AsyncCallback&lt;RunningLock&gt;): void createRunningLock(name: string, type: RunningLockType, callback: AsyncCallback&lt;RunningLock&gt;): void
> NOTE<br>
> This API is deprecated since API version 9. You are advised to use [runningLock.create](#runninglockcreate9) instead. > This API is deprecated since API version 9. You are advised to use [runningLock.create](#runninglockcreate9) instead.
Creates a **RunningLock** object. Creates a **RunningLock** object.
...@@ -230,6 +233,7 @@ runningLock.createRunningLock('running_lock_test', runningLock.RunningLockType.B ...@@ -230,6 +233,7 @@ runningLock.createRunningLock('running_lock_test', runningLock.RunningLockType.B
createRunningLock(name: string, type: RunningLockType): Promise&lt;RunningLock&gt; createRunningLock(name: string, type: RunningLockType): Promise&lt;RunningLock&gt;
> NOTE<br>
> This API is deprecated since API version 9. You are advised to use [runningLock.create](#runninglockcreate9) instead. > This API is deprecated since API version 9. You are advised to use [runningLock.create](#runninglockcreate9) instead.
Creates a **RunningLock** object. Creates a **RunningLock** object.
...@@ -389,6 +393,7 @@ runningLock.create('running_lock_test', runningLock.RunningLockType.BACKGROUND) ...@@ -389,6 +393,7 @@ runningLock.create('running_lock_test', runningLock.RunningLockType.BACKGROUND)
lock(timeout: number): void lock(timeout: number): void
> NOTE<br>
> This API is deprecated since API version 9. You are advised to use [RunningLock.hold](#hold9) instead. > This API is deprecated since API version 9. You are advised to use [RunningLock.hold](#hold9) instead.
Locks and holds a **RunningLock** object. Locks and holds a **RunningLock** object.
...@@ -420,6 +425,7 @@ runningLock.createRunningLock('running_lock_test', runningLock.RunningLockType.B ...@@ -420,6 +425,7 @@ runningLock.createRunningLock('running_lock_test', runningLock.RunningLockType.B
unlock(): void unlock(): void
> NOTE<br>
> This API is deprecated since API version 9. You are advised to use [RunningLock.unhold](#unhold9) instead. > This API is deprecated since API version 9. You are advised to use [RunningLock.unhold](#unhold9) instead.
Releases a **RunningLock** object. Releases a **RunningLock** object.
...@@ -445,6 +451,7 @@ runningLock.createRunningLock('running_lock_test', runningLock.RunningLockType.B ...@@ -445,6 +451,7 @@ runningLock.createRunningLock('running_lock_test', runningLock.RunningLockType.B
isUsed(): boolean isUsed(): boolean
> NOTE<br>
> This API is deprecated since API version 9. You are advised to use [RunningLock.isHolding](#isholding9) instead. > This API is deprecated since API version 9. You are advised to use [RunningLock.isHolding](#isholding9) instead.
Checks the hold status of the **Runninglock** object. Checks the hold status of the **Runninglock** object.
......
...@@ -687,7 +687,7 @@ promise.then(data => { ...@@ -687,7 +687,7 @@ promise.then(data => {
}); });
``` ```
## sim.**setShowName**<sup>8+</sup> ## sim.setShowName<sup>8+</sup>
setShowName\(slotId: number, name: string, callback: AsyncCallback<void\>\): void setShowName\(slotId: number, name: string, callback: AsyncCallback<void\>\): void
...@@ -716,7 +716,7 @@ sim.setShowName(0, name, (err, data) => { ...@@ -716,7 +716,7 @@ sim.setShowName(0, name, (err, data) => {
}); });
``` ```
## sim.**setShowName**<sup>8+</sup> ## sim.setShowName<sup>8+</sup>
setShowName\(slotId: number, name: string\): Promise\<void\> setShowName\(slotId: number, name: string\): Promise\<void\>
...@@ -753,7 +753,7 @@ promise.then(data => { ...@@ -753,7 +753,7 @@ promise.then(data => {
}); });
``` ```
## sim.**getShowName**<sup>8+</sup> ## sim.getShowName<sup>8+</sup>
getShowName(slotId: number, callback: AsyncCallback<string\>): void getShowName(slotId: number, callback: AsyncCallback<string\>): void
...@@ -781,7 +781,7 @@ sim.getShowName(0, (err, data) => { ...@@ -781,7 +781,7 @@ sim.getShowName(0, (err, data) => {
``` ```
## sim.**getShowName**<sup>8+</sup> ## sim.getShowName<sup>8+</sup>
getShowName(slotId: number): Promise<string\> getShowName(slotId: number): Promise<string\>
...@@ -816,7 +816,7 @@ promise.then(data => { ...@@ -816,7 +816,7 @@ promise.then(data => {
}); });
``` ```
## sim.**setShowNumber**<sup>8+</sup> ## sim.setShowNumber<sup>8+</sup>
setShowNumber\(slotId: number, number: string, callback: AsyncCallback<void\>\): void setShowNumber\(slotId: number, number: string, callback: AsyncCallback<void\>\): void
...@@ -846,7 +846,7 @@ sim.setShowNumber(0, number, (err, data) => { ...@@ -846,7 +846,7 @@ sim.setShowNumber(0, number, (err, data) => {
``` ```
## sim.**setShowNumber**<sup>8+</sup> ## sim.setShowNumber<sup>8+</sup>
setShowNumber\(slotId: number, number: string\): Promise\<void\> setShowNumber\(slotId: number, number: string\): Promise\<void\>
...@@ -883,7 +883,7 @@ promise.then(data => { ...@@ -883,7 +883,7 @@ promise.then(data => {
}); });
``` ```
## sim.**getShowNumber**<sup>8+</sup> ## sim.getShowNumber<sup>8+</sup>
getShowNumber(slotId: number, callback: AsyncCallback<string\>): void getShowNumber(slotId: number, callback: AsyncCallback<string\>): void
...@@ -911,7 +911,7 @@ sim.getShowNumber(0, (err, data) => { ...@@ -911,7 +911,7 @@ sim.getShowNumber(0, (err, data) => {
``` ```
## sim.**getShowNumber**<sup>8+</sup> ## sim.getShowNumber<sup>8+</sup>
getShowNumber(slotId: number): Promise<string\> getShowNumber(slotId: number): Promise<string\>
...@@ -946,7 +946,7 @@ promise.then(data => { ...@@ -946,7 +946,7 @@ promise.then(data => {
}); });
``` ```
## sim.**activateSim**<sup>8+</sup> ## sim.activateSim<sup>8+</sup>
activateSim(slotId: number, callback: AsyncCallback<void\>): void activateSim(slotId: number, callback: AsyncCallback<void\>): void
...@@ -974,7 +974,7 @@ sim.activateSim(0, (err, data) => { ...@@ -974,7 +974,7 @@ sim.activateSim(0, (err, data) => {
``` ```
## sim.**activateSim**<sup>8+</sup> ## sim.activateSim<sup>8+</sup>
activateSim(slotId: number): Promise\<void\> activateSim(slotId: number): Promise\<void\>
...@@ -1009,7 +1009,7 @@ promise.then(data => { ...@@ -1009,7 +1009,7 @@ promise.then(data => {
}); });
``` ```
## sim.**deactivateSim**<sup>8+</sup> ## sim.deactivateSim<sup>8+</sup>
deactivateSim(slotId: number, callback: AsyncCallback<void\>): void deactivateSim(slotId: number, callback: AsyncCallback<void\>): void
...@@ -1037,7 +1037,7 @@ sim.deactivateSim(0, (err, data) => { ...@@ -1037,7 +1037,7 @@ sim.deactivateSim(0, (err, data) => {
``` ```
## sim.**deactivateSim**<sup>8+</sup> ## sim.deactivateSim<sup>8+</sup>
deactivateSim(slotId: number): Promise\<void\> deactivateSim(slotId: number): Promise\<void\>
...@@ -1346,7 +1346,7 @@ promise.then(data => { ...@@ -1346,7 +1346,7 @@ promise.then(data => {
}); });
``` ```
## sim.**unlockPin**<sup>7+</sup> ## sim.unlockPin<sup>7+</sup>
unlockPin(slotId: number, pin: string, callback: AsyncCallback<LockStatusResponse\>): void unlockPin(slotId: number, pin: string, callback: AsyncCallback<LockStatusResponse\>): void
...@@ -1376,7 +1376,7 @@ sim.unlockPin(0, pin, (err, data) => { ...@@ -1376,7 +1376,7 @@ sim.unlockPin(0, pin, (err, data) => {
``` ```
## sim.**unlockPin**<sup>7+</sup> ## sim.unlockPin<sup>7+</sup>
unlockPin(slotId: number, pin: string): Promise&lt;LockStatusResponse\> unlockPin(slotId: number, pin: string): Promise&lt;LockStatusResponse\>
...@@ -1413,7 +1413,7 @@ promise.then(data => { ...@@ -1413,7 +1413,7 @@ promise.then(data => {
}); });
``` ```
## sim.**unlockPuk**<sup>7+</sup> ## sim.unlockPuk<sup>7+</sup>
unlockPuk(slotId: number, newPin: string, puk: string ,callback: AsyncCallback<LockStatusResponse\>): void unlockPuk(slotId: number, newPin: string, puk: string ,callback: AsyncCallback<LockStatusResponse\>): void
...@@ -1445,7 +1445,7 @@ sim.unlockPuk(0, newPin, puk, (err, data) => { ...@@ -1445,7 +1445,7 @@ sim.unlockPuk(0, newPin, puk, (err, data) => {
``` ```
## sim.**unlockPuk**<sup>7+</sup> ## sim.unlockPuk<sup>7+</sup>
unlockPuk(slotId: number, newPin: string, puk: string): Promise&lt;LockStatusResponse\> unlockPuk(slotId: number, newPin: string, puk: string): Promise&lt;LockStatusResponse\>
...@@ -1484,7 +1484,7 @@ promise.then(data => { ...@@ -1484,7 +1484,7 @@ promise.then(data => {
}); });
``` ```
## sim.**unlockPin**2<sup>8+</sup> ## sim.unlockPin2<sup>8+</sup>
unlockPin2(slotId: number, pin2: string, callback: AsyncCallback<LockStatusResponse\>): void unlockPin2(slotId: number, pin2: string, callback: AsyncCallback<LockStatusResponse\>): void
...@@ -1514,7 +1514,7 @@ sim.unlockPin2(0, pin2, (err, data) => { ...@@ -1514,7 +1514,7 @@ sim.unlockPin2(0, pin2, (err, data) => {
``` ```
## sim.**unlockPin**2<sup>8+</sup> ## sim.unlockPin2<sup>8+</sup>
unlockPin2(slotId: number, pin2: string): Promise&lt;LockStatusResponse\> unlockPin2(slotId: number, pin2: string): Promise&lt;LockStatusResponse\>
...@@ -1551,7 +1551,7 @@ promise.then(data => { ...@@ -1551,7 +1551,7 @@ promise.then(data => {
}); });
``` ```
## sim.**unlockPuk**2<sup>8+</sup> ## sim.unlockPuk2<sup>8+</sup>
unlockPuk2(slotId: number, newPin2: string, puk2: string, callback: AsyncCallback<LockStatusResponse\>): void unlockPuk2(slotId: number, newPin2: string, puk2: string, callback: AsyncCallback<LockStatusResponse\>): void
...@@ -1583,7 +1583,7 @@ sim.unlockPuk2(0, newPin2, puk2, (err, data) => { ...@@ -1583,7 +1583,7 @@ sim.unlockPuk2(0, newPin2, puk2, (err, data) => {
``` ```
## sim.**unlockPuk2**<sup>8+</sup> ## sim.unlockPuk2<sup>8+</sup>
unlockPuk2(slotId: number, newPin2: string, puk2: string): Promise&lt;LockStatusResponse\> unlockPuk2(slotId: number, newPin2: string, puk2: string): Promise&lt;LockStatusResponse\>
......
...@@ -118,6 +118,7 @@ try { ...@@ -118,6 +118,7 @@ try {
subscribeThermalLevel(callback: AsyncCallback&lt;ThermalLevel&gt;): void subscribeThermalLevel(callback: AsyncCallback&lt;ThermalLevel&gt;): void
> NOTE<br>
> This API is deprecated since API version 9. You are advised to use [thermal.registerThermalLevelCallback](#thermalregisterthermallevelcallback9) instead. > This API is deprecated since API version 9. You are advised to use [thermal.registerThermalLevelCallback](#thermalregisterthermallevelcallback9) instead.
Subscribes to thermal level changes. Subscribes to thermal level changes.
...@@ -142,6 +143,7 @@ thermal.subscribeThermalLevel((level) => { ...@@ -142,6 +143,7 @@ thermal.subscribeThermalLevel((level) => {
unsubscribeThermalLevel(callback?: AsyncCallback\<void>): void unsubscribeThermalLevel(callback?: AsyncCallback\<void>): void
> NOTE<br>
> This API is deprecated since API version 9. You are advised to use [thermal.unregisterThermalLevelCallback](#thermalunregisterthermallevelcallback9) instead. > This API is deprecated since API version 9. You are advised to use [thermal.unregisterThermalLevelCallback](#thermalunregisterthermallevelcallback9) instead.
Unsubscribes from thermal level changes. Unsubscribes from thermal level changes.
...@@ -166,6 +168,7 @@ thermal.unsubscribeThermalLevel(() => { ...@@ -166,6 +168,7 @@ thermal.unsubscribeThermalLevel(() => {
getThermalLevel(): ThermalLevel getThermalLevel(): ThermalLevel
> NOTE<br>
> This API is deprecated since API version 9. You are advised to use [thermal.getLevel](#thermalgetlevel9) instead. > This API is deprecated since API version 9. You are advised to use [thermal.getLevel](#thermalgetlevel9) instead.
Obtains the current thermal level. Obtains the current thermal level.
......
...@@ -13,6 +13,8 @@ import {Action,ToolType,SourceType,Touch,TouchEvent} from '@ohos.multimodalInput ...@@ -13,6 +13,8 @@ import {Action,ToolType,SourceType,Touch,TouchEvent} from '@ohos.multimodalInput
## Action ## Action
Enumerates touch actions.
**System capability**: SystemCapability.MultimodalInput.Input.Core **System capability**: SystemCapability.MultimodalInput.Input.Core
| Name | Value | Description | | Name | Value | Description |
...@@ -24,6 +26,8 @@ import {Action,ToolType,SourceType,Touch,TouchEvent} from '@ohos.multimodalInput ...@@ -24,6 +26,8 @@ import {Action,ToolType,SourceType,Touch,TouchEvent} from '@ohos.multimodalInput
## ToolType ## ToolType
Enumerates tool types.
**System capability**: SystemCapability.MultimodalInput.Input.Core **System capability**: SystemCapability.MultimodalInput.Input.Core
| Name | Value | Description | | Name | Value | Description |
...@@ -39,6 +43,8 @@ import {Action,ToolType,SourceType,Touch,TouchEvent} from '@ohos.multimodalInput ...@@ -39,6 +43,8 @@ import {Action,ToolType,SourceType,Touch,TouchEvent} from '@ohos.multimodalInput
## SourceType ## SourceType
Enumerates source types.
**System capability**: SystemCapability.MultimodalInput.Input.Core **System capability**: SystemCapability.MultimodalInput.Input.Core
| Name | Value | Description | | Name | Value | Description |
...@@ -49,6 +55,8 @@ import {Action,ToolType,SourceType,Touch,TouchEvent} from '@ohos.multimodalInput ...@@ -49,6 +55,8 @@ import {Action,ToolType,SourceType,Touch,TouchEvent} from '@ohos.multimodalInput
## Touch ## Touch
Defines a touch action.
**System capability**: SystemCapability.MultimodalInput.Input.Core **System capability**: SystemCapability.MultimodalInput.Input.Core
| Name| Type| Readable| Writable| Description| | Name| Type| Readable| Writable| Description|
...@@ -74,6 +82,8 @@ import {Action,ToolType,SourceType,Touch,TouchEvent} from '@ohos.multimodalInput ...@@ -74,6 +82,8 @@ import {Action,ToolType,SourceType,Touch,TouchEvent} from '@ohos.multimodalInput
## TouchEvent ## TouchEvent
Defines a touch event.
**System capability**: SystemCapability.MultimodalInput.Input.Core **System capability**: SystemCapability.MultimodalInput.Input.Core
| Name| Type| Readable| Writable| Description| | Name| Type| Readable| Writable| Description|
......
...@@ -584,7 +584,7 @@ let ret = usb.usbFunctionsToString(funcs); ...@@ -584,7 +584,7 @@ let ret = usb.usbFunctionsToString(funcs);
## usb.setCurrentFunctions ## usb.setCurrentFunctions
setCurrentFunctions(funcs: FunctionType): Promise\<boolean\> setCurrentFunctions(funcs: FunctionType): Promise\<void\>
Sets the current USB function list in Device mode. Sets the current USB function list in Device mode.
...@@ -602,13 +602,17 @@ Sets the current USB function list in Device mode. ...@@ -602,13 +602,17 @@ Sets the current USB function list in Device mode.
| Type | Description | | Type | Description |
| ------------------ | ------------------------------------------------------------ | | ------------------ | ------------------------------------------------------------ |
| Promise\<boolean\> | Promise used to return the result. The value **true** indicates that the operation is successful, and the value **false** indicates the opposite.| | Promise\<void\> | Promise used to return the result.|
**Example** **Example**
```js ```js
let funcs = HDC; let funcs = HDC;
let ret = usb.setCurrentFunctions(funcs); usb.setCurrentFunctions(funcs).then(() => {
console.info('usb setCurrentFunctions successfully.');
}).catch(err => {
console.error('usb setCurrentFunctions failed: ' + err.code + ' message: ' + err.message);
});
``` ```
## usb.getCurrentFunctions ## usb.getCurrentFunctions
...@@ -685,7 +689,7 @@ let ret = usb.getSupportedModes(0); ...@@ -685,7 +689,7 @@ let ret = usb.getSupportedModes(0);
## usb.setPortRoles ## usb.setPortRoles
setPortRoles(portId: number, powerRole: PowerRoleType, dataRole: DataRoleType): Promise\<boolean\> setPortRoles(portId: number, powerRole: PowerRoleType, dataRole: DataRoleType): Promise\<void\>
Sets the role types supported by a specified port, which can be **powerRole** (for charging) and **dataRole** (for data transfer). Sets the role types supported by a specified port, which can be **powerRole** (for charging) and **dataRole** (for data transfer).
...@@ -705,12 +709,17 @@ Sets the role types supported by a specified port, which can be **powerRole** (f ...@@ -705,12 +709,17 @@ Sets the role types supported by a specified port, which can be **powerRole** (f
| Type | Description | | Type | Description |
| ------------------ | ------------------------------------------------------------ | | ------------------ | ------------------------------------------------------------ |
| Promise\<boolean\> | Promise used to return the result. The value **true** indicates that the operation is successful, and the value **false** indicates the opposite.| | Promise\<void\> | Promise used to return the result. |
**Example** **Example**
```js ```js
let ret = usb.getSupportedModes(0); let portId = 1;
usb.usb.setPortRoles(portId, usb.PowerRoleType.SOURCE, usb.DataRoleType.HOST).then(() => {
console.info('usb setPortRoles successfully.');
}).catch(err => {
console.error('usb setPortRoles failed: ' + err.code + ' message: ' + err.message);
});
``` ```
## USBEndpoint ## USBEndpoint
......
...@@ -172,24 +172,24 @@ The table below provides only the sites for downloading the latest OpenHarmony L ...@@ -172,24 +172,24 @@ The table below provides only the sites for downloading the latest OpenHarmony L
**Table 1** Sites for acquiring source code **Table 1** Sites for acquiring source code
| **LTS Code**| **Version Information**| **Site**| **SHA-256 Verification Code**| | **LTS Code**| **Version**| **Site**| **SHA-256 Checksum**| **Software Package Size**|
| -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- | -------- |
| Full code base (for mini, small, and standard systems)| 3.0 | [Download](https://repo.huaweicloud.com/openharmony/os/3.0/code-v3.0-LTS.tar.gz) | [Download](https://repo.huaweicloud.com/openharmony/os/3.0/code-v3.0-LTS.tar.gz.sha256)| | Full code base (for mini, small, and standard systems)| 3.0 | [Download](https://repo.huaweicloud.com/openharmony/os/3.0/code-v3.0-LTS.tar.gz) | [Download](https://repo.huaweicloud.com/openharmony/os/3.0/code-v3.0-LTS.tar.gz.sha256)| 7.0 GB |
| Standard system solution (binary)| 3.0 | [Download](https://repo.huaweicloud.com/openharmony/os/3.0/standard.tar.gz)| [Download](https://repo.huaweicloud.com/openharmony/os/3.0/standard.tar.gz.sha256)| | Standard system solution (binary)| 3.0 | [Download](https://repo.huaweicloud.com/openharmony/os/3.0/standard.tar.gz)| [Download](https://repo.huaweicloud.com/openharmony/os/3.0/standard.tar.gz.sha256)| 973.7 MB |
| Hi3861 solution (binary)| 3.0 | [Download](https://repo.huaweicloud.com/openharmony/os/3.0/hispark_pegasus.tar.gz)| [Download](https://repo.huaweicloud.com/openharmony/os/3.0/hispark_pegasus.tar.gz.sha256)| | Hi3861 solution (binary)| 3.0 | [Download](https://repo.huaweicloud.com/openharmony/os/3.0/hispark_pegasus.tar.gz)| [Download](https://repo.huaweicloud.com/openharmony/os/3.0/hispark_pegasus.tar.gz.sha256)| 16.5 MB |
| Hi3518 solution (binary)| 3.0 | [Download](https://repo.huaweicloud.com/openharmony/os/3.0/hispark_aries.tar.gz)| [Download](https://repo.huaweicloud.com/openharmony/os/3.0/hispark_aries.tar.gz.sha256)| | Hi3518 solution (binary)| 3.0 | [Download](https://repo.huaweicloud.com/openharmony/os/3.0/hispark_aries.tar.gz)| [Download](https://repo.huaweicloud.com/openharmony/os/3.0/hispark_aries.tar.gz.sha256)| 158.1 MB |
| Hi3516 solution-LiteOS (binary)| 3.0 | [Download](https://repo.huaweicloud.com/openharmony/os/3.0/hispark_taurus.tar.gz) | [Download](https://repo.huaweicloud.com/openharmony/os/3.0/hispark_taurus.tar.gz)| | Hi3516 solution-LiteOS (binary)| 3.0 | [Download](https://repo.huaweicloud.com/openharmony/os/3.0/hispark_taurus.tar.gz) | [Download](https://repo.huaweicloud.com/openharmony/os/3.0/hispark_taurus.tar.gz)| 248.9 MB |
| Hi3516 solution-Linux (binary)| 3.0 | [Download](https://repo.huaweicloud.com/openharmony/os/3.0/hispark_taurus_linux.tar.gz)| [Download](https://repo.huaweicloud.com/openharmony/os/3.0/hispark_taurus_linux.tar.gz.sha256) | | Hi3516 solution-Linux (binary)| 3.0 | [Download](https://repo.huaweicloud.com/openharmony/os/3.0/hispark_taurus_linux.tar.gz)| [Download](https://repo.huaweicloud.com/openharmony/os/3.0/hispark_taurus_linux.tar.gz.sha256) | 418.1 MB |
| Release Notes | 3.0 | [Download](https://gitee.com/openharmony/docs/blob/OpenHarmony-3.0-LTS/en/release-notes/OpenHarmony-v3.0-LTS.md)| - | | RELEASE-NOTES | 3.0 | [Download](https://gitee.com/openharmony/docs/blob/OpenHarmony-3.0-LTS/en/release-notes/OpenHarmony-v3.0-LTS.md)| - | - |
| **Source code of the Latest Release**| **Version Information**| **Site**| **SHA-256 Verification Code**| | **Source code of the Latest Release**| **Version**| **Site**| **SHA-256 Checksum**| **Software Package Size**|
| Full code base (for mini, small, and standard systems)| 3.2 Beta3 | [Download](https://repo.huaweicloud.com/openharmony/os/3.2-Beta3/code-v3.2-Beta3.tar.gz)| [Download](https://repo.huaweicloud.com/openharmony/os/3.2-Beta3/code-v3.2-Beta3.tar.gz.sha256)| | Full code base (for mini, small, and standard systems)| 3.2 Beta4 | [Download](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta4/code-v3.2-Beta4.tar.gz) | [Download](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta4/code-v3.2-Beta4.tar.gz.sha256) | 19.0 GB |
| RK3568 standard system solution (binary)| 3.2 Beta3 | [Download](https://repo.huaweicloud.com/openharmony/os/3.2-Beta3/standard_rk3568.tar.gz)| [Download](https://repo.huaweicloud.com/openharmony/os/3.1.1/standard_rk3568.tar.gz.sha256)| | RK3568 standard system solution (binary)| 3.2 Beta4 | [Download](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta4/dayu200_standard_arm32.tar.gz) | [Download](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta4/dayu200_standard_arm32.tar.gz.sha256) | 3.2 GB |
| Hi3861 solution (binary)| 3.2 Beta3 | [Download](https://repo.huaweicloud.com/openharmony/os/3.2-Beta3/hispark_pegasus.tar.gz)| [Download](https://repo.huaweicloud.com/openharmony/os/3.2-Beta3/hispark_pegasus.tar.gz.sha256) | | Hi3861 solution (binary)| 3.2 Beta4 | [Download](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta4/hispark_pegasus.tar.gz) | [Download](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta4/hispark_pegasus.tar.gz.sha256) | 22.6 MB |
| Hi3516 solution-LiteOS (binary)| 3.2 Beta3 | [Download](https://repo.huaweicloud.com/openharmony/os/3.2-Beta3/hispark_taurus.tar.gz)| [Download](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta3/hispark_taurus_LiteOS.tar.gz.sha256)| | Hi3516 solution-LiteOS (binary)| 3.2 Beta4 | [Download](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta4/hispark_taurus_LiteOS.tar.gz)| [Download](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta4/hispark_taurus_LiteOS.tar.gz.sha256)| 293.9 MB |
| Hi3516 solution-Linux (binary)| 3.2 Beta3 | [Download](https://repo.huaweicloud.com/openharmony/os/3.2-Beta3/hispark_taurus_linux.tar.gz)| [Download](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta3/hispark_taurus_Linux.tar.gz.sha256)| | Hi3516 solution-Linux (binary)| 3.2 Beta4 | [Download](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta4/hispark_taurus_Linux.tar.gz)| [Download](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta4/hispark_taurus_Linux.tar.gz.sha256)| 173.2 MB |
| Release Notes | 3.2 Beta3 | [Download](../../release-notes/OpenHarmony-v3.2-beta3.md)| - | | RELEASE-NOTES | 3.2 Beta4 | [Download](../../release-notes/OpenHarmony-v3.2-beta4.md)| - | - |
| **Compiler Toolchain**| **Version Information**| **Site**| **SHA-256 Verification Code**| | **Compiler Toolchain**| **Version**| **Site**| **SHA-256 Checksum**| **Software Package Size**|
| Compiler toolchain| - | [Download](https://repo.huaweicloud.com/openharmony/os/2.0/tool_chain/)| - | | Compiler toolchain| - | [Download](https://repo.huaweicloud.com/openharmony/os/2.0/tool_chain/)| - | - |
## Method 4: Acquiring Source Code from the GitHub Image Repository<a name="section23448418360"></a> ## Method 4: Acquiring Source Code from the GitHub Image Repository<a name="section23448418360"></a>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册