diff --git a/CODEOWNERS b/CODEOWNERS
index b3a89aecb5c1bf1907db23aabcb7d61adecc8ab3..abde348a4d10568535df2c66a8a8fcda79190092 100644
--- a/CODEOWNERS
+++ b/CODEOWNERS
@@ -415,7 +415,7 @@ zh-cn/application-dev/reference/apis/js-apis-resource-manager.md @Buda-Liu @ning
zh-cn/application-dev/reference/apis/js-apis-router.md @huaweimaxuchu @HelloCrease @niulihua @tomatodevboy
zh-cn/application-dev/reference/apis/js-apis-rpc.md @xuepianpian @RayShih @zhaopeng_gitee @vagrant_world
zh-cn/application-dev/reference/apis/js-apis-runninglock.md @aqxyjay @zengyawen @aqxyjay @alien0208
-zh-cn/application-dev/reference/apis/js-apis-screen-lock.md @feng-aiwen @ningningW @wangzhangjun @murphy1984
+
zh-cn/application-dev/reference/apis/js-apis-screen.md @zhangqiang183 @ge-yafang @zhouyaoying @zxg-gitee
zh-cn/application-dev/reference/apis/js-apis-screenshot.md @zhangqiang183 @ge-yafang @zhouyaoying @zxg-gitee
zh-cn/application-dev/reference/apis/js-apis-securityLabel.md @panqinxu @zengyawen @bubble_mao @jinhaihw
@@ -531,6 +531,7 @@ zh-cn/application-dev/reference/apis/js-apis-distributedBundle.md @shuaytao @Ray
zh-cn/application-dev/reference/apis/js-apis-distributedKVStore.md @feng-aiwen @ge-yafang @gong-a-shi @logic42
zh-cn/application-dev/reference/apis/js-apis-enterprise-accountManager.md @liuzuming @ningningW @yangqing3
zh-cn/application-dev/reference/apis/js-apis-enterprise-adminManager.md @liuzuming @ningningW @yangqing3
+zh-cn/application-dev/reference/apis/js-apis-enterprise-bundleManager.md @liuzuming @ningningW @yangqing3
zh-cn/application-dev/reference/apis/js-apis-enterprise-dateTimeManager.md @liuzuming @ningningW @yangqing3
zh-cn/application-dev/reference/apis/js-apis-enterprise-deviceControl.md @liuzuming @ningningW @yangqing3
zh-cn/application-dev/reference/apis/js-apis-enterprise-deviceInfo.md @liuzuming @ningningW @yangqing3
diff --git a/en/application-dev/device/usb-guidelines.md b/en/application-dev/device/usb-guidelines.md
index c4f5131536a1f0b55ae973bdf7cdf04d2b8f0980..68c8c3de013e75d56854bf0cf0e3a71aca9eb261 100644
--- a/en/application-dev/device/usb-guidelines.md
+++ b/en/application-dev/device/usb-guidelines.md
@@ -130,8 +130,6 @@ You can set a USB device as the USB host to connect to other USB devices for dat
usb.bulkTransfer(pipe, inEndpoint, dataUint8Array, 15000).then(dataLength => {
if (dataLength >= 0) {
console.info("usb readData result Length : " + dataLength);
- let resultStr = this.ab2str(dataUint8Array); // Convert uint8 data into a string.
- console.info("usb readData buffer : " + resultStr);
} else {
console.info("usb readData failed : " + dataLength);
}
diff --git a/en/application-dev/reference/apis/Readme-EN.md b/en/application-dev/reference/apis/Readme-EN.md
index 6346094a14fbcea248a6bb9865155c2901e4f847..dcdf21aac6d90857581f834a821364b8f2516f2c 100644
--- a/en/application-dev/reference/apis/Readme-EN.md
+++ b/en/application-dev/reference/apis/Readme-EN.md
@@ -268,7 +268,7 @@
- [@ohos.request (Upload and Download)](js-apis-request.md)
- Connectivity
- - [@ohos.bluetooth (Bluetooth)](js-apis-bluetooth.md)
+ - [@ohos.bluetoothManager (Bluetooth)(js-apis-bluetoothManager.md)
- [@ohos.connectedTag (Active Tags)](js-apis-connectedTag.md)
- [@ohos.nfc.cardEmulation (Standard NFC Card Emulation)](js-apis-cardEmulation.md)
- [@ohos.nfc.controller (Standard NFC)](js-apis-nfcController.md)
@@ -392,6 +392,7 @@
- APIs No Longer Maintained
- [@ohos.backgroundTaskManager (Background Task Management)](js-apis-backgroundTaskManager.md)
+ - [@ohos.bluetooth (Bluetooth)](js-apis-bluetooth.md)
- [@ohos.bundle (Bundle)](js-apis-Bundle.md)
- [@ohos.bundle.innerBundleManager (innerBundleManager)](js-apis-Bundle-InnerBundleManager.md)
- [@ohos.bundleState (Device Usage Statistics)](js-apis-deviceUsageStatistics.md)
diff --git a/en/application-dev/reference/apis/js-apis-bluetooth.md b/en/application-dev/reference/apis/js-apis-bluetooth.md
index b1528f9e2fa160f1616ba9a86370d4a6d721546b..f22961f16809055e3ab560afb78750e42030aec3 100644
--- a/en/application-dev/reference/apis/js-apis-bluetooth.md
+++ b/en/application-dev/reference/apis/js-apis-bluetooth.md
@@ -4,7 +4,8 @@ The **Bluetooth** module provides classic Bluetooth capabilities and Bluetooth L
> **NOTE**
>
-> The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version.
+> - The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version.
+> - The APIs provided by this module are no longer maintained since API version 9. You are advised to use [bluetoothManager](js-apis-bluetoothManager.md).
@@ -15,12 +16,15 @@ import bluetooth from '@ohos.bluetooth';
```
-## bluetooth.enableBluetooth8+
+## bluetooth.enableBluetooth8+(deprecated)
enableBluetooth(): boolean
Enables Bluetooth.
+> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.enableBluetooth](js-apis-bluetoothManager.md#bluetoothmanagerenablebluetooth).
+
**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -38,12 +42,15 @@ let enable = bluetooth.enableBluetooth();
```
-## bluetooth.disableBluetooth8+
+## bluetooth.disableBluetooth8+(deprecated)
disableBluetooth(): boolean
Disables Bluetooth.
+> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.disableBluetooth](js-apis-bluetoothManager.md#bluetoothmanagerdisablebluetooth).
+
**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -61,12 +68,15 @@ let disable = bluetooth.disableBluetooth();
```
-## bluetooth.getLocalName8+
+## bluetooth.getLocalName8+(deprecated)
getLocalName(): string
Obtains the name of the local Bluetooth device.
+> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.getLocalName](js-apis-bluetoothManager.md#bluetoothmanagergetlocalname).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -84,12 +94,15 @@ let localName = bluetooth.getLocalName();
```
-## bluetooth.getState
+## bluetooth.getState(deprecated)
getState(): BluetoothState
Obtains the Bluetooth state.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.getState](js-apis-bluetoothManager.md#bluetoothmanagergetstate).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -107,11 +120,14 @@ let state = bluetooth.getState();
```
-## bluetooth.getBtConnectionState
+## bluetooth.getBtConnectionState(deprecated)
getBtConnectionState(): ProfileConnectionState
-Obtains the profile connection state of this Bluetooth device.
+Obtains the local profile connection state.
+
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.getBtConnectionState](js-apis-bluetoothManager.md#bluetoothmanagergetbtconnectionstate).
**Required permissions**: ohos.permission.USE_BLUETOOTH
@@ -130,12 +146,15 @@ let connectionState = bluetooth.getBtConnectionState();
```
-## bluetooth.setLocalName8+
+## bluetooth.setLocalName8+(deprecated)
setLocalName(name: string): boolean
Sets the name of the local Bluetooth device.
+> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.setLocalName](js-apis-bluetoothManager.md#bluetoothmanagersetlocalname).
+
**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -159,12 +178,15 @@ let ret = bluetooth.setLocalName('device_name');
```
-## bluetooth.pairDevice
+## bluetooth.pairDevice(deprecated)
pairDevice(deviceId: string): boolean
Initiates Bluetooth pairing.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.pairDevice](js-apis-bluetoothManager.md#bluetoothmanagerpairdevice).
+
**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -189,11 +211,14 @@ let result = bluetooth.pairDevice("XX:XX:XX:XX:XX:XX");
```
-## bluetooth.getProfileConnState8+
+## bluetooth.getProfileConnState8+(deprecated)
getProfileConnState(profileId: ProfileId): ProfileConnectionState
-Obtains the connection state of a profile.
+Obtains the connection status of a specified profile.
+
+> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.getProfileConnectionState](js-apis-bluetoothManager.md#bluetoothmanagergetprofileconnectionstate).
**Required permissions**: ohos.permission.USE_BLUETOOTH
@@ -218,12 +243,15 @@ let result = bluetooth.getProfileConnState(bluetooth.ProfileId.PROFILE_A2DP_SOUR
```
-## bluetooth.cancelPairedDevice8+
+## bluetooth.cancelPairedDevice8+(deprecated)
cancelPairedDevice(deviceId: string): boolean
Cancels a paired remote device.
+> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.cancelPairedDevice](js-apis-bluetoothManager.md#bluetoothmanagercancelpaireddevice).
+
**System API**: This is a system API.
**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH
@@ -249,12 +277,15 @@ let result = bluetooth.cancelPairedDevice("XX:XX:XX:XX:XX:XX");
```
-## bluetooth.getRemoteDeviceName8+
+## bluetooth.getRemoteDeviceName8+(deprecated)
getRemoteDeviceName(deviceId: string): string
Obtains the name of the remote Bluetooth device.
+> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.getRemoteDeviceName](js-apis-bluetoothManager.md#bluetoothmanagergetremotedevicename).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -278,12 +309,15 @@ let remoteDeviceName = bluetooth.getRemoteDeviceName("XX:XX:XX:XX:XX:XX");
```
-## bluetooth.getRemoteDeviceClass8+
+## bluetooth.getRemoteDeviceClass8+(deprecated)
getRemoteDeviceClass(deviceId: string): DeviceClass
Obtains the class of the remote Bluetooth device.
+> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.getRemoteDeviceClass](js-apis-bluetoothManager.md#bluetoothmanagergetremotedeviceclass).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -307,12 +341,15 @@ let remoteDeviceClass = bluetooth.getRemoteDeviceClass("XX:XX:XX:XX:XX:XX");
```
-## bluetooth.getPairedDevices8+
+## bluetooth.getPairedDevices8+(deprecated)
getPairedDevices(): Array<string>
Obtains the paired devices.
+> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.getPairedDevices](js-apis-bluetoothManager.md#bluetoothmanagergetpaireddevices).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -330,12 +367,15 @@ let devices = bluetooth.getPairedDevices();
```
-## bluetooth.setBluetoothScanMode8+
+## bluetooth.setBluetoothScanMode8+(deprecated)
setBluetoothScanMode(mode: ScanMode, duration: number): boolean
Sets the Bluetooth scan mode so that the device can be discovered by a remote device.
+> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.setBluetoothScanMode](js-apis-bluetoothManager.md#bluetoothmanagersetbluetoothscanmode).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -361,12 +401,15 @@ let result = bluetooth.setBluetoothScanMode(bluetooth.ScanMode.SCAN_MODE_CONNECT
```
-## bluetooth.getBluetoothScanMode8+
+## bluetooth.getBluetoothScanMode8+(deprecated)
getBluetoothScanMode(): ScanMode
Obtains the Bluetooth scan mode.
+> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.getBluetoothScanMode](js-apis-bluetoothManager.md#bluetoothmanagergetbluetoothscanmode).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -384,12 +427,15 @@ let scanMode = bluetooth.getBluetoothScanMode();
```
-## bluetooth.startBluetoothDiscovery8+
+## bluetooth.startBluetoothDiscovery8+(deprecated)
startBluetoothDiscovery(): boolean
Starts Bluetooth scan to discover remote devices.
+> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.startBluetoothDiscovery](js-apis-bluetoothManager.md#bluetoothmanagerstartbluetoothdiscovery).
+
**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH and ohos.permission.LOCATION
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -412,12 +458,15 @@ let result = bluetooth.startBluetoothDiscovery();
```
-## bluetooth.stopBluetoothDiscovery8+
+## bluetooth.stopBluetoothDiscovery8+(deprecated)
stopBluetoothDiscovery(): boolean
Stops Bluetooth scan.
+> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.stopBluetoothDiscovery](js-apis-bluetoothManager.md#bluetoothmanagerstopbluetoothdiscovery).
+
**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -435,12 +484,15 @@ let result = bluetooth.stopBluetoothDiscovery();
```
-## bluetooth.setDevicePairingConfirmation8+
+## bluetooth.setDevicePairingConfirmation8+(deprecated)
setDevicePairingConfirmation(device: string, accept: boolean): boolean
Sets the device pairing confirmation.
+> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.setDevicePairingConfirmation](js-apis-bluetoothManager.md#bluetoothmanagersetdevicepairingconfirmation).
+
**Required permissions**: ohos.permission.MANAGE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -470,12 +522,15 @@ bluetooth.on("pinRequired", onReceivePinRequiredEvent);
```
-## bluetooth.on('bluetoothDeviceFind')8+
+## bluetooth.on('bluetoothDeviceFind')8+(deprecated)
on(type: "bluetoothDeviceFind", callback: Callback<Array<string>>): void
Subscribes to the Bluetooth device discovery events.
+> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.on('bluetoothDeviceFind')](js-apis-bluetoothManager.md#bluetoothmanageronbluetoothdevicefind).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -501,12 +556,15 @@ bluetooth.on('bluetoothDeviceFind', onReceiveEvent);
```
-## bluetooth.off('bluetoothDeviceFind')8+
+## bluetooth.off('bluetoothDeviceFind')8+(deprecated)
off(type: "bluetoothDeviceFind", callback?: Callback<Array<string>>): void
Unsubscribes from the Bluetooth device discovery events.
+> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.off('bluetoothDeviceFind')](js-apis-bluetoothManager.md#bluetoothmanageroffbluetoothdevicefind).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -533,12 +591,15 @@ bluetooth.off('bluetoothDeviceFind', onReceiveEvent);
```
-## bluetooth.on('pinRequired')8+
+## bluetooth.on('pinRequired')8+(deprecated)
on(type: "pinRequired", callback: Callback<PinRequiredParam>): void
Subscribes to the pairing request events of the remote Bluetooth device.
+> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.on('pinRequired')](js-apis-bluetoothManager.md#bluetoothmanageronpinrequired).
+
**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -564,12 +625,15 @@ bluetooth.on('pinRequired', onReceiveEvent);
```
-## bluetooth.off('pinRequired')8+
+## bluetooth.off('pinRequired')8+(deprecated)
off(type: "pinRequired", callback?: Callback<PinRequiredParam>): void
Unsubscribes from the pairing request events of the remote Bluetooth device.
+> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.off('pinRequired')](js-apis-bluetoothManager.md#bluetoothmanageroffpinrequired).
+
**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -596,12 +660,15 @@ bluetooth.off('pinRequired', onReceiveEvent);
```
-## bluetooth.on('bondStateChange')8+
+## bluetooth.on('bondStateChange')8+(deprecated)
on(type: "bondStateChange", callback: Callback<BondStateParam>): void
Subscribes to the Bluetooth pairing state change events.
+> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.on('bondStateChange')](js-apis-bluetoothManager.md#bluetoothmanageronbondstatechange).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -627,12 +694,15 @@ bluetooth.on('bondStateChange', onReceiveEvent);
```
-## bluetooth.off('bondStateChange')8+
+## bluetooth.off('bondStateChange')8+(deprecated)
off(type: "bondStateChange", callback?: Callback<BondStateParam>): void
Unsubscribes from the Bluetooth pairing state change events.
+> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.off('bondStateChange')](js-apis-bluetoothManager.md#bluetoothmanageroffbondstatechange).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -659,12 +729,15 @@ bluetooth.off('bondStateChange', onReceiveEvent);
```
-## bluetooth.on('stateChange')8+
+## bluetooth.on('stateChange')8+(deprecated)
on(type: "stateChange", callback: Callback<BluetoothState>): void
Subscribes to the Bluetooth connection state change events.
+> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.on('stateChange')](js-apis-bluetoothManager.md#bluetoothmanageronstatechange).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -690,12 +763,15 @@ bluetooth.on('stateChange', onReceiveEvent);
```
-## bluetooth.off('stateChange')8+
+## bluetooth.off('stateChange')8+(deprecated)
off(type: "stateChange", callback?: Callback<BluetoothState>): void
Unsubscribes from the Bluetooth connection state change events.
+> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.off('stateChange')](js-apis-bluetoothManager.md#bluetoothmanageroffstatechange).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -722,12 +798,15 @@ bluetooth.off('stateChange', onReceiveEvent);
```
-## bluetooth.sppListen8+
+## bluetooth.sppListen8+(deprecated)
sppListen(name: string, option: SppOption, callback: AsyncCallback<number>): void
Creates a server listening socket.
+> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.sppListen](js-apis-bluetoothManager.md#bluetoothmanagerspplisten).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -757,12 +836,15 @@ bluetooth.sppListen('server1', sppOption, serverSocket);
```
-## bluetooth.sppAccept8+
+## bluetooth.sppAccept8+(deprecated)
sppAccept(serverSocket: number, callback: AsyncCallback<number>): void
Listens for a connection to be made to this socket from the client and accepts it.
+> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.sppAccept](js-apis-bluetoothManager.md#bluetoothmanagersppaccept).
+
**System capability**: SystemCapability.Communication.Bluetooth.Core
**Parameters**
@@ -796,12 +878,15 @@ bluetooth.sppAccept(serverNumber, acceptClientSocket);
```
-## bluetooth.sppConnect8+
+## bluetooth.sppConnect8+(deprecated)
sppConnect(device: string, option: SppOption, callback: AsyncCallback<number>): void
Initiates an SPP connection to a remote device from the client.
+> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.sppConnect](js-apis-bluetoothManager.md#bluetoothmanagersppconnect).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -832,12 +917,15 @@ bluetooth.sppConnect('XX:XX:XX:XX:XX:XX', sppOption, clientSocket);
```
-## bluetooth.sppCloseServerSocket8+
+## bluetooth.sppCloseServerSocket8+(deprecated)
sppCloseServerSocket(socket: number): void
Closes the listening socket of the server.
+> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.sppCloseServerSocket](js-apis-bluetoothManager.md#bluetoothmanagersppcloseserversocket).
+
**System capability**: SystemCapability.Communication.Bluetooth.Core
**Parameters**
@@ -861,12 +949,15 @@ bluetooth.sppCloseServerSocket(serverNumber);
```
-## bluetooth.sppCloseClientSocket8+
+## bluetooth.sppCloseClientSocket8+(deprecated)
sppCloseClientSocket(socket: number): void
Closes the client socket.
+> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.sppCloseClientSocket](js-apis-bluetoothManager.md#bluetoothmanagersppcloseclientsocket).
+
**System capability**: SystemCapability.Communication.Bluetooth.Core
**Parameters**
@@ -892,12 +983,15 @@ bluetooth.sppCloseClientSocket(clientNumber);
```
-## bluetooth.sppWrite8+
+## bluetooth.sppWrite8+(deprecated)
sppWrite(clientSocket: number, data: ArrayBuffer): boolean
Writes data to the remote device through the socket.
+> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.sppWrite](js-apis-bluetoothManager.md#bluetoothmanagersppwrite).
+
**System capability**: SystemCapability.Communication.Bluetooth.Core
**Parameters**
@@ -937,10 +1031,13 @@ if (ret) {
```
-## bluetooth.on('sppRead')8+
+## bluetooth.on('sppRead')8+(deprecated)
on(type: "sppRead", clientSocket: number, callback: Callback<ArrayBuffer>): void
+> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.on('sppRead')](js-apis-bluetoothManager.md#bluetoothmanageronsppread).
+
Subscribes to the SPP read request events.
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -977,12 +1074,15 @@ bluetooth.on('sppRead', clientNumber, dataRead);
```
-## bluetooth.off('sppRead')8+
+## bluetooth.off('sppRead')8+(deprecated)
off(type: "sppRead", clientSocket: number, callback?: Callback<ArrayBuffer>): void
Unsubscribes from the SPP read request events.
+> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.off('sppRead')](js-apis-bluetoothManager.md#bluetoothmanageroffsppread).
+
**System capability**: SystemCapability.Communication.Bluetooth.Core
**Parameters**
@@ -1013,12 +1113,15 @@ bluetooth.off('sppRead', clientNumber);
```
-## bluetooth.getProfile8+
+## bluetooth.getProfile8+(deprecated)
getProfile(profileId: ProfileId): A2dpSourceProfile | HandsFreeAudioGatewayProfile
Obtains a profile object.
+> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.getProfileInstance](js-apis-bluetoothManager.md#bluetoothmanagergetprofileinstance).
+
**System capability**: SystemCapability.Communication.Bluetooth.Core
**Parameters**
@@ -1039,41 +1142,18 @@ Obtains a profile object.
let a2dpSrc = bluetooth.getProfile(bluetooth.ProfileId.PROFILE_A2DP_SOURCE);
```
-## bluetooth.getProfileInst9+
-
-getProfileInst(profileId: ProfileId): A2dpSourceProfile | HandsFreeAudioGatewayProfile | HidHostProfile | PanProfile
-
-Obtains a profile instance. API version 9 is added with **HidHostProfile** and **PanProfile**.
-
-**System capability**: SystemCapability.Communication.Bluetooth.Core
-
-**Parameters**
-
-| Name | Type | Mandatory | Description |
-| --------- | --------- | ---- | ------------------------------------- |
-| profileId | [ProfileId](#ProfileId) | Yes | ID of the profile to obtain, for example, **PROFILE_A2DP_SOURCE**.|
-
-**Return value**
-
-| Type | Description |
-| ------------------------------------------------------------ | ------------------------------------------------------------ |
-| [A2dpSourceProfile](#a2dpsourceprofile), [HandsFreeAudioGatewayProfile](#handsfreeaudiogatewayprofile), [HidHostProfile](#hidhostprofile), or [PanProfile](#panprofile)| Profile instance obtained, which can be **A2dpSourceProfile**, **HandsFreeAudioGatewayProfile**, **HidHostProfile**, or **PanProfile**.|
-
-**Example**
-
-```js
-let hidHost = bluetooth.getProfileInst(bluetooth.ProfileId.PROFILE_HID_HOST);
-```
-
## bluetooth.BLE
-### bluetooth.BLE.createGattServer
+### bluetooth.BLE.createGattServer(deprecated)
createGattServer(): GattServer
Creates a **GattServer** instance.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.BLE.createGattServer](js-apis-bluetoothManager.md#bluetoothmanagerblecreategattserver).
+
**System capability**: SystemCapability.Communication.Bluetooth.Core
**Return value**
@@ -1089,12 +1169,15 @@ let gattServer = bluetooth.BLE.createGattServer();
```
-### bluetooth.BLE.createGattClientDevice
+### bluetooth.BLE.createGattClientDevice(deprecated)
createGattClientDevice(deviceId: string): GattClientDevice
Creates a **GattClientDevice** instance.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.BLE.createGattClientDevice](js-apis-bluetoothManager.md#bluetoothmanagerblecreategattclientdevice).
+
**System capability**: SystemCapability.Communication.Bluetooth.Core
**Parameters**
@@ -1116,12 +1199,15 @@ let device = bluetooth.BLE.createGattClientDevice('XX:XX:XX:XX:XX:XX');
```
-### bluetooth.BLE.getConnectedBLEDevices
+### bluetooth.BLE.getConnectedBLEDevices(deprecated)
getConnectedBLEDevices(): Array<string>
Obtains the BLE devices connected to this device.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.BLE.getConnectedBLEDevices](js-apis-bluetoothManager.md#bluetoothmanagerblegetconnectedbledevices).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -1139,12 +1225,15 @@ let result = bluetooth.BLE.getConnectedBLEDevices();
```
-### bluetooth.BLE.startBLEScan
+### bluetooth.BLE.startBLEScan(deprecated)
startBLEScan(filters: Array<ScanFilter>, options?: ScanOptions): void
Starts a BLE scan.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.BLE.startBLEScan](js-apis-bluetoothManager.md#bluetoothmanagerblestartblescan).
+
**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH, ohos.permission.MANAGE_BLUETOOTH, and ohos.permission.LOCATION
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -1182,12 +1271,15 @@ bluetooth.BLE.startBLEScan(
```
-### bluetooth.BLE.stopBLEScan
+### bluetooth.BLE.stopBLEScan(deprecated)
stopBLEScan(): void
Stops the BLE scan.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.BLE.stopBLEScan](js-apis-bluetoothManager.md#bluetoothmanagerblestopblescan).
+
**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -1203,12 +1295,15 @@ bluetooth.BLE.stopBLEScan();
```
-### bluetooth.BLE.on('BLEDeviceFind')
+### bluetooth.BLE.on('BLEDeviceFind')(deprecated)
on(type: "BLEDeviceFind", callback: Callback<Array<ScanResult>>): void
Subscribe to the BLE device discovery events.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.BLE.on('BLEDeviceFind')](js-apis-bluetoothManager.md#bluetoothmanagerbleonbledevicefind).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -1234,12 +1329,15 @@ bluetooth.BLE.on('BLEDeviceFind', onReceiveEvent);
```
-### bluetooth.BLE.off('BLEDeviceFind')
+### bluetooth.BLE.off('BLEDeviceFind')(deprecated)
off(type: "BLEDeviceFind", callback?: Callback<Array<ScanResult>>): void
Unsubscribes from the BLE device discovery events.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.BLE.off('BLEDeviceFind')](js-apis-bluetoothManager.md#bluetoothmanagerbleoffbledevicefind).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -1271,12 +1369,15 @@ bluetooth.BLE.off('BLEDeviceFind', onReceiveEvent);
Provides the profile base class.
-### getConnectionDevices8+
+### getConnectionDevices8+(deprecated)
getConnectionDevices(): Array<string>
Obtains the connected devices.
+> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.BaseProfile.getConnectionDevices](js-apis-bluetoothManager.md#getconnectiondevices).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -1294,12 +1395,15 @@ let a2dpSrc = bluetooth.getProfile(bluetooth.ProfileId.PROFILE_A2DP_SOURCE) as b
let retArray = a2dpSrc.getConnectionDevices();
```
-### getDeviceState8+
+### getDeviceState8+(deprecated)
getDeviceState(device: string): ProfileConnectionState
Obtains the connection state of the profile.
+> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.BaseProfile.getDeviceState](js-apis-bluetoothManager.md#getdevicestate).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -1328,12 +1432,15 @@ let ret = a2dpSrc.getDeviceState('XX:XX:XX:XX:XX:XX');
Before using a method of **A2dpSourceProfile**, you need to create an instance of this class by using the **getProfile()** method.
-### connect8+
+### connect8+(deprecated)
connect(device: string): boolean
Sets up an Advanced Audio Distribution Profile (A2DP) connection.
+> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.A2dpSourceProfile.connect](js-apis-bluetoothManager.md#connect).
+
**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -1358,12 +1465,15 @@ let ret = a2dpSrc.connect('XX:XX:XX:XX:XX:XX');
```
-### disconnect8+
+### disconnect8+(deprecated)
disconnect(device: string): boolean
Disconnects an A2DP connection.
+> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.A2dpSourceProfile.disconnect](js-apis-bluetoothManager.md#disconnect).
+
**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -1388,12 +1498,15 @@ let ret = a2dpSrc.disconnect('XX:XX:XX:XX:XX:XX');
```
-### on('connectionStateChange')8+
+### on('connectionStateChange')8+(deprecated)
on(type: "connectionStateChange", callback: Callback<[StateChangeParam](#StateChangeParam)>): void
Subscribes to the A2DP connection state change events.
+> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.A2dpSourceProfile.on('connectionStateChange')](js-apis-bluetoothManager.md#onconnectionstatechange).
+
**System capability**: SystemCapability.Communication.Bluetooth.Core
**Parameters**
@@ -1418,12 +1531,15 @@ a2dpSrc.on('connectionStateChange', onReceiveEvent);
```
-### off('connectionStateChange')8+
+### off('connectionStateChange')8+(deprecated)
off(type: "connectionStateChange", callback?: Callback<[StateChangeParam](#StateChangeParam)>): void
Unsubscribes from the A2DP connection state change events.
+> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.A2dpSourceProfile.off('connectionStateChange')](js-apis-bluetoothManager.md#offconnectionstatechange).
+
**System capability**: SystemCapability.Communication.Bluetooth.Core
**Parameters**
@@ -1431,7 +1547,7 @@ Unsubscribes from the A2DP connection state change events.
| Name | Type | Mandatory | Description |
| -------- | ---------------------------------------- | ---- | ---------------------------------------- |
| type | string | Yes | Event type. The value **connectionStateChange** indicates an A2DP connection state change event.|
-| callback | Callback<[StateChangeParam](#StateChangeParam)> | No | Callback used to return the A2DP connection state change event. |
+| callback | Callback<[StateChangeParam](#StateChangeParam)> | No | Callback for the A2DP connection state change event. |
**Return value**
@@ -1449,12 +1565,15 @@ a2dpSrc.off('connectionStateChange', onReceiveEvent);
```
-### getPlayingState8+
+### getPlayingState8+(deprecated)
getPlayingState(device: string): PlayingState
Obtains the playing state of a device.
+> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.A2dpSourceProfile.getPlayingState](js-apis-bluetoothManager.md#getplayingstate).
+
**System capability**: SystemCapability.Communication.Bluetooth.Core
**Parameters**
@@ -1482,12 +1601,15 @@ let state = a2dpSrc.getPlayingState('XX:XX:XX:XX:XX:XX');
Before using a method of **HandsFreeAudioGatewayProfile**, you need to create an instance of this class by using the **getProfile()** method.
-### connect8+
+### connect8+(deprecated)
connect(device: string): boolean
Sets up a Hands-free Profile (HFP) connection of a device.
+> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.HandsFreeAudioGatewayProfile.connect](js-apis-bluetoothManager.md#connect-1).
+
**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -1513,12 +1635,15 @@ let ret = hfpAg.connect('XX:XX:XX:XX:XX:XX');
```
-### disconnect8+
+### disconnect8+(deprecated)
disconnect(device: string): boolean
Disconnects the HFP connection of a device.
+> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.HandsFreeAudioGatewayProfile.disconnect](js-apis-bluetoothManager.md#disconnect-1).
+
**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -1544,12 +1669,15 @@ let ret = hfpAg.disconnect('XX:XX:XX:XX:XX:XX');
```
-### on('connectionStateChange')8+
+### on('connectionStateChange')8+(deprecated)
on(type: "connectionStateChange", callback: Callback<[StateChangeParam](#StateChangeParam)>): void
Subscribes to the HFP connection state change events.
+> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.HandsFreeAudioGatewayProfile.on('connectionStateChange')](js-apis-bluetoothManager.md#onconnectionstatechange-1).
+
**System capability**: SystemCapability.Communication.Bluetooth.Core
**Parameters**
@@ -1575,12 +1703,15 @@ hfpAg.on('connectionStateChange', onReceiveEvent);
```
-### off('connectionStateChange')8+
+### off('connectionStateChange')8+(deprecated)
off(type: "connectionStateChange", callback?: Callback<[StateChangeParam](#StateChangeParam)>): void
Unsubscribes from the HFP connection state change events.
+> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.HandsFreeAudioGatewayProfile.off('connectionStateChange')](js-apis-bluetoothManager.md#offconnectionstatechange-1).
+
**System capability**: SystemCapability.Communication.Bluetooth.Core
**Parameters**
@@ -1607,301 +1738,20 @@ hfpAg.off('connectionStateChange', onReceiveEvent);
```
-## HidHostProfile
-
-Before using a method of **HidHostProfile**, you need to create an instance of this class by using the **getProfile()** method.
-
-
-### connect9+
-
-connect(device: string): boolean
-
-Connects to the HidHost service of a device.
-
-**System API**: This is a system API.
-
-**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH
-
-**System capability**: SystemCapability.Communication.Bluetooth.Core
-
-**Parameters**
-
-| Name | Type | Mandatory | Description |
-| ------ | ------ | ---- | ------- |
-| device | string | Yes | Address of the target device.|
-
-**Return value**
-
-| Type | Description |
-| --------------------- | --------------------------------- |
-| boolean | Returns **true** if the operation is successful; returns **false** otherwise.|
-
-**Example**
-
-```js
-let hidHostProfile = bluetooth.getProfileInst(bluetooth.ProfileId.PROFILE_HID_HOST) as bluetooth.HidHostProfile;
-let ret = hidHostProfile.connect('XX:XX:XX:XX:XX:XX');
-```
-
-
-### disconnect9+
-
-disconnect(device: string): boolean
-
-Disconnects from the HidHost service of a device.
-
-**System API**: This is a system API.
-
-**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH
-
-**System capability**: SystemCapability.Communication.Bluetooth.Core
-
-**Parameters**
-
-| Name | Type | Mandatory | Description |
-| ------ | ------ | ---- | ------- |
-| device | string | Yes | Address of the target device.|
-
-**Return value**
-
-| Type | Description |
-| --------------------- | --------------------------------- |
-| boolean | Returns **true** if the operation is successful; returns **false** otherwise.|
-
-**Example**
-
-```js
-let hidHostProfile = bluetooth.getProfileInst(bluetooth.ProfileId.PROFILE_HID_HOST) as bluetooth.HidHostProfile;
-let ret = hidHostProfile.disconnect('XX:XX:XX:XX:XX:XX');
-```
-
-
-### on('connectionStateChange')9+
-
-on(type: "connectionStateChange", callback: Callback<[StateChangeParam](#StateChangeParam)>): void
-
-Subscribes to the HidHost connection state change events.
-
-**System capability**: SystemCapability.Communication.Bluetooth.Core
-
-**Parameters**
-
-| Name | Type | Mandatory | Description |
-| -------- | ---------------------------------------- | ---- | ---------------------------------------- |
-| type | string | Yes | Event type. The value **connectionStateChange** indicates a HidHost connection state change event.|
-| callback | Callback<[StateChangeParam](#StateChangeParam)> | Yes | Callback invoked to return the HidHost connection state change event. |
-
-**Return value**
-
-No value is returned.
-
-**Example**
-
-```js
-function onReceiveEvent(data) {
- console.info('hidHost state = '+ JSON.stringify(data));
-}
-let hidHost = bluetooth.getProfileInst(bluetooth.ProfileId.PROFILE_HID_HOST) as bluetooth.HidHostProfile;
-hidHost.on('connectionStateChange', onReceiveEvent);
-```
-
-
-### off('connectionStateChange')9+
-
-off(type: "connectionStateChange", callback?: Callback<[StateChangeParam](#StateChangeParam)>): void
-
-Unsubscribes from the HidHost connection state change events.
-
-**System capability**: SystemCapability.Communication.Bluetooth.Core
-
-**Parameters**
-
-| Name | Type | Mandatory| Description |
-| -------- | ----------------------------------------------------- | ---- | --------------------------------------------------------- |
-| type | string | Yes | Event type. The value **connectionStateChange** indicates a HidHost connection state change event.|
-| callback | Callback<[StateChangeParam](#StateChangeParam)> | No | Callback for the HidHost connection state change event. |
-
-**Return value**
-
-No value is returned.
-
-**Example**
-
-```js
-function onReceiveEvent(data) {
- console.info('hidHost state = '+ JSON.stringify(data));
-}
-let hidHost = bluetooth.getProfileInst(bluetooth.ProfileId.PROFILE_HID_HOST) as bluetooth.HidHostProfile;
-hidHost.on('connectionStateChange', onReceiveEvent);
-hidHost.off('connectionStateChange', onReceiveEvent);
-```
-
-
-## PanProfile
-
-Before using a method of **PanProfile**, you need to create an instance of this class by using the **getProfile()** method.
-
-
-### disconnect9+
-
-disconnect(device: string): boolean
-
-Disconnects from the Personal Area Network (PAN) service of a device.
-
-**System API**: This is a system API.
-
-**Required permissions**: ohos.permission.USE_BLUETOOTH
-
-**System capability**: SystemCapability.Communication.Bluetooth.Core
-
-**Parameters**
-
-| Name | Type | Mandatory | Description |
-| ------ | ------ | ---- | ------- |
-| device | string | Yes | Address of the target device.|
-
-**Return value**
-
-| Type | Description |
-| --------------------- | --------------------------------- |
-| boolean | Returns **true** if the operation is successful; returns **false** otherwise.|
-
-**Example**
-
-```js
-let panProfile = bluetooth.getProfileInst(bluetooth.ProfileId.PROFILE_PAN_NETWORK) as bluetooth.PanProfile;
-let ret = panProfile.disconnect('XX:XX:XX:XX:XX:XX');
-```
-
-
-### on('connectionStateChange')9+
-
-on(type: "connectionStateChange", callback: Callback<[StateChangeParam](#StateChangeParam)>): void
-
-Subscribes to the PAN connection state change events.
-
-**System capability**: SystemCapability.Communication.Bluetooth.Core
-
-**Parameters**
-
-| Name | Type | Mandatory | Description |
-| -------- | ---------------------------------------- | ---- | ---------------------------------------- |
-| type | string | Yes | Event type. The value **connectionStateChange** indicates a PAN connection state change event.|
-| callback | Callback<[StateChangeParam](#StateChangeParam)> | Yes | Callback invoked to return the PAN connection state change event. |
-
-**Return value**
-
-No value is returned.
-
-**Example**
-
-```js
-function onReceiveEvent(data) {
- console.info('pan state = '+ JSON.stringify(data));
-}
-let panProfile = bluetooth.getProfileInst(bluetooth.ProfileId.PROFILE_PAN_NETWORK) as bluetooth.PanProfile;
-panProfile.on('connectionStateChange', onReceiveEvent);
-```
-
-
-### off('connectionStateChange')9+
-
-off(type: "connectionStateChange", callback?: Callback<[StateChangeParam](#StateChangeParam)>): void
-
-Unsubscribes from the PAN connection state change events.
-
-**System capability**: SystemCapability.Communication.Bluetooth.Core
-
-**Parameters**
-
-| Name | Type | Mandatory| Description |
-| -------- | ----------------------------------------------------- | ---- | --------------------------------------------------------- |
-| type | string | Yes | Event type. The value **connectionStateChange** indicates a PAN connection state change event.|
-| callback | Callback<[StateChangeParam](#StateChangeParam)> | No | Callback for the PAN connection state change event. |
-
-**Return value**
-
-No value is returned.
-
-**Example**
-
-```js
-function onReceiveEvent(data) {
- console.info('pan state = '+ JSON.stringify(data));
-}
-let panProfile = bluetooth.getProfileInst(bluetooth.ProfileId.PROFILE_PAN_NETWORK) as bluetooth.PanProfile;
-panProfile.on('connectionStateChange', onReceiveEvent);
-panProfile.off('connectionStateChange', onReceiveEvent);
-```
-
-
-### setTethering9+
-
-setTethering(enable: boolean): void
-
-Sets tethering.
-
-**System API**: This is a system API.
-
-**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH
-
-**System capability**: SystemCapability.Communication.Bluetooth.Core
-
-**Parameters**
-
-| Name | Type | Mandatory | Description |
-| ------ | ------ | ---- | ------- |
-| value | boolean | Yes | Whether to set tethering over a Bluetooth PAN.|
-
-**Return value**
-
-| Type | Description |
-| --------------------- | --------------------------------- |
-| boolean | Returns **true** if the operation is successful; returns **false** otherwise.|
-
-**Example**
-
-```js
-let panProfile = bluetooth.getProfileInst(bluetooth.ProfileId.PROFILE_PAN_NETWORK) as bluetooth.PanProfile;
-let ret = panProfile.setTethering(true);
-```
-
-
-### isTetheringOn9+
-
-isTetheringOn(): boolean
-
-Obtains the tethering state.
-
-**System API**: This is a system API.
-
-**System capability**: SystemCapability.Communication.Bluetooth.Core
-
-**Return value**
-
-| Type | Description |
-| --------------------- | --------------------------------- |
-| boolean | Returns **true** if tethering is available over a Bluetooth PAN; return **false** otherwise.|
-
-**Example**
-
-```js
-let panProfile = bluetooth.getProfileInst(bluetooth.ProfileId.PROFILE_PAN_NETWORK) as bluetooth.PanProfile;
-let ret = panProfile.isTetheringOn();
-```
-
-
## GattServer
Implements the Generic Attribute Profile (GATT) server. Before using a method of this class, you need to create a **GattServer** instance using the **createGattServer()** method.
-### startAdvertising
+### startAdvertising(deprecated)
startAdvertising(setting: AdvertiseSetting, advData: AdvertiseData, advResponse?: AdvertiseData): void
Starts BLE advertising.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattServer.startAdvertising](js-apis-bluetoothManager.md#startadvertising).
+
**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -1963,12 +1813,15 @@ gattServer.startAdvertising({
```
-### stopAdvertising
+### stopAdvertising(deprecated)
stopAdvertising(): void
Stops BLE advertising.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattServer.stopAdvertising](js-apis-bluetoothManager.md#stopadvertising).
+
**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -1985,12 +1838,15 @@ server.stopAdvertising();
```
-### addService
+### addService(deprecated)
addService(service: GattService): boolean
Adds a service to this GATT server.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattServer.addService](js-apis-bluetoothManager.md#addservice).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -2044,12 +1900,15 @@ if (ret) {
```
-### removeService
+### removeService(deprecated)
removeService(serviceUuid: string): boolean
Removes a service from this GATT server.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattServer.removeService](js-apis-bluetoothManager.md#removeservice).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -2074,12 +1933,15 @@ server.removeService('00001810-0000-1000-8000-00805F9B34FB');
```
-### close
+### close(deprecated)
close(): void
Closes this GATT server to unregister it from the protocol stack. After this method is called, this [GattServer](#gattserver) cannot be used.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattServer.close](js-apis-bluetoothManager.md#close).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -2092,12 +1954,15 @@ server.close();
```
-### notifyCharacteristicChanged
+### notifyCharacteristicChanged(deprecated)
notifyCharacteristicChanged(deviceId: string, notifyCharacteristic: NotifyCharacteristic): boolean
Notifies the connected client device when a characteristic value changes.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattServer.notifyCharacteristicChanged](js-apis-bluetoothManager.md#notifycharacteristicchanged).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -2137,12 +2002,15 @@ server.notifyCharacteristicChanged('XX:XX:XX:XX:XX:XX', notifyCharacteristic);
```
-### sendResponse
+### sendResponse(deprecated)
sendResponse(serverResponse: ServerResponse): boolean
Sends a response to a read or write request from the GATT client.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattServer.sendResponse](js-apis-bluetoothManager.md#sendresponse).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -2184,12 +2052,15 @@ if (ret) {
```
-### on('characteristicRead')
+### on('characteristicRead')(deprecated)
on(type: "characteristicRead", callback: Callback<CharacteristicReadReq>): void
Subscribes to the characteristic read request events.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattServer.on('characteristicRead')](js-apis-bluetoothManager.md#oncharacteristicread).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -2232,12 +2103,15 @@ gattServer.on("characteristicRead", ReadCharacteristicReq);
```
-### off('characteristicRead')
+### off('characteristicRead')(deprecated)
off(type: "characteristicRead", callback?: Callback<CharacteristicReadReq>): void
Unsubscribes from the characteristic read request events.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattServer.off('characteristicRead')](js-apis-bluetoothManager.md#offcharacteristicread).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -2261,12 +2135,15 @@ gattServer.off("characteristicRead");
```
-### on('characteristicWrite')
+### on('characteristicWrite')(deprecated)
on(type: "characteristicWrite", callback: Callback<CharacteristicWriteReq>): void
Subscribes to the characteristic write request events.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattServer.on('characteristicWrite')](js-apis-bluetoothManager.md#oncharacteristicwrite).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -2312,12 +2189,15 @@ gattServer.on("characteristicWrite", WriteCharacteristicReq);
```
-### off('characteristicWrite')
+### off('characteristicWrite')(deprecated)
off(type: "characteristicWrite", callback?: Callback<CharacteristicWriteReq>): void
Unsubscribes from the characteristic write request events.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattServer.off('characteristicWrite')](js-apis-bluetoothManager.md#offcharacteristicwrite).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -2341,12 +2221,15 @@ gattServer.off("characteristicWrite");
```
-### on('descriptorRead')
+### on('descriptorRead')(deprecated)
on(type: "descriptorRead", callback: Callback<DescriptorReadReq>): void
Subscribes to the descriptor read request events.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattServer.on('descriptorRead')](js-apis-bluetoothManager.md#ondescriptorread).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -2389,12 +2272,15 @@ gattServer.on("descriptorRead", ReadDescriptorReq);
```
-### off('descriptorRead')
+### off('descriptorRead')(deprecated)
off(type: "descriptorRead", callback?: Callback<DescriptorReadReq>): void
Unsubscribes from the descriptor read request events.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattServer.off('descriptorRead')](js-apis-bluetoothManager.md#offdescriptorread).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -2418,12 +2304,15 @@ gattServer.off("descriptorRead");
```
-### on('descriptorWrite')
+### on('descriptorWrite')(deprecated)
on(type: "descriptorWrite", callback: Callback<DescriptorWriteReq>): void
Subscribes to the descriptor write request events.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattServer.on('descriptorWrite')](js-apis-bluetoothManager.md#ondescriptorwrite).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -2469,12 +2358,15 @@ gattServer.on("descriptorRead", WriteDescriptorReq);
```
-### off('descriptorWrite')
+### off('descriptorWrite')(deprecated)
off(type: "descriptorWrite", callback?: Callback<DescriptorWriteReq>): void
Unsubscribes from the descriptor write request events.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattServer.off('descriptorWrite')](js-apis-bluetoothManager.md#offdescriptorwrite).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -2498,12 +2390,15 @@ gattServer.off("descriptorWrite");
```
-### on('connectStateChange')
+### on('connectStateChange')(deprecated)
on(type: "connectStateChange", callback: Callback<BLEConnectChangedState>): void
Subscribes to the BLE connection state change events.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattServer.on('connectStateChange')](js-apis-bluetoothManager.md#onconnectstatechange).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -2532,12 +2427,15 @@ gattServer.on("connectStateChange", Connected);
```
-### off('connectStateChange')
+### off('connectStateChange')(deprecated)
off(type: "connectStateChange", callback?: Callback<BLEConnectChangedState>): void
Unsubscribes from the BLE connection state change events.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattServer.off('connectStateChange')](js-apis-bluetoothManager.md#offconnectstatechange).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -2566,12 +2464,15 @@ gattServer.off("connectStateChange");
Implements the GATT client. Before using a method of this class, you must create a **GattClientDevice** instance using the **createGattClientDevice(deviceId: string)** method.
-### connect
+### connect(deprecated)
connect(): boolean
Initiates a connection to the remote BLE device.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.connect](js-apis-bluetoothManager.md#connect-3).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -2590,12 +2491,15 @@ let ret = device.connect();
```
-### disconnect
+### disconnect(deprecated)
disconnect(): boolean
Disconnects from the remote BLE device.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.disconnect](js-apis-bluetoothManager.md#disconnect-4).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -2614,12 +2518,15 @@ let ret = device.disconnect();
```
-### close
+### close(deprecated)
close(): boolean
Closes this GATT client to unregister it from the protocol stack. After this method is called, this [GattClientDevice](#gattclientdevice) instance cannot be used.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.close](js-apis-bluetoothManager.md#close-1).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -2640,12 +2547,15 @@ let ret = device.close();
-### getServices
+### getServices(deprecated)
getServices(callback: AsyncCallback<Array<GattService>>): void
Obtains all services of the remote BLE device. This API uses an asynchronous callback to return the result.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.getServices](js-apis-bluetoothManager.md#getservices).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -2682,12 +2592,15 @@ device.getServices(getServices);
```
-### getServices
+### getServices(deprecated)
getServices(): Promise<Array<GattService>>
Obtains all services of the remote BLE device. This API uses a promise to return the result.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.getServices](js-apis-bluetoothManager.md#getservices-1).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -2710,12 +2623,15 @@ device.getServices().then(result => {
```
-### readCharacteristicValue
+### readCharacteristicValue(deprecated)
readCharacteristicValue(characteristic: BLECharacteristic, callback: AsyncCallback<BLECharacteristic>): void
Reads the characteristic value of the specific service of the remote BLE device. This API uses an asynchronous callback to return the result.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.readCharacteristicValue](js-apis-bluetoothManager.md#readcharacteristicvalue).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -2764,12 +2680,15 @@ device.readCharacteristicValue(characteristic, readCcc);
```
-### readCharacteristicValue
+### readCharacteristicValue(deprecated)
readCharacteristicValue(characteristic: BLECharacteristic): Promise<BLECharacteristic>
Reads the characteristic value of the specific service of the remote BLE device. This API uses a promise to return the result.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.readCharacteristicValue](js-apis-bluetoothManager.md#readcharacteristicvalue-1).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -2810,12 +2729,15 @@ device.readCharacteristicValue(characteristic);
```
-### readDescriptorValue
+### readDescriptorValue(deprecated)
readDescriptorValue(descriptor: BLEDescriptor, callback: AsyncCallback<BLEDescriptor>): void
Reads the descriptor contained in the specific characteristic of the remote BLE device. This API uses an asynchronous callback to return the result.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.readDescriptorValue](js-apis-bluetoothManager.md#readdescriptorvalue).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -2854,12 +2776,15 @@ device.readDescriptorValue(descriptor, readDesc);
```
-### readDescriptorValue
+### readDescriptorValue(deprecated)
readDescriptorValue(descriptor: BLEDescriptor): Promise<BLEDescriptor>
Reads the descriptor contained in the specific characteristic of the remote BLE device. This API uses a promise to return the result.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.readDescriptorValue](js-apis-bluetoothManager.md#readdescriptorvalue-1).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -2890,12 +2815,15 @@ device.readDescriptorValue(descriptor);
```
-### writeCharacteristicValue
+### writeCharacteristicValue(deprecated)
writeCharacteristicValue(characteristic: BLECharacteristic): boolean
Writes a characteristic value to the remote BLE device.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.writeCharacteristicValue](js-apis-bluetoothManager.md#writecharacteristicvalue).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -2940,12 +2868,15 @@ if (retWriteCcc) {
```
-### writeDescriptorValue
+### writeDescriptorValue(deprecated)
writeDescriptorValue(descriptor: BLEDescriptor): boolean
Writes binary data to the specific descriptor of the remote BLE device.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.writeDescriptorValue](js-apis-bluetoothManager.md#writedescriptorvalue).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -2981,12 +2912,15 @@ if (retWriteDesc) {
```
-### setBLEMtuSize
+### setBLEMtuSize(deprecated)
setBLEMtuSize(mtu: number): boolean
Sets the maximum transmission unit (MTU) that can be transmitted between the GATT client and its remote BLE device. This API can be used only after a connection is set up by calling [connect](#connect).
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.setBLEMtuSize](js-apis-bluetoothManager.md#setblemtusize).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -3011,12 +2945,15 @@ device.setBLEMtuSize(128);
```
-### setNotifyCharacteristicChanged
+### setNotifyCharacteristicChanged(deprecated)
setNotifyCharacteristicChanged(characteristic: BLECharacteristic, enable: boolean): boolean
Sets the function of notifying the GATT client when the characteristic value of the remote BLE device changes.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.setNotifyCharacteristicChanged](js-apis-bluetoothManager.md#setnotifycharacteristicchanged).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -3054,12 +2991,15 @@ device.setNotifyCharacteristicChanged(characteristic, false);
```
-### on('BLECharacteristicChange')
+### on('BLECharacteristicChange')(deprecated)
on(type: "BLECharacteristicChange", callback: Callback<BLECharacteristic>): void
Subscribes to the BLE characteristic change events. The client can receive a notification from the server only after the **setNotifyCharacteristicChanged** method is called.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.on('BLECharacteristicChange')](js-apis-bluetoothManager.md#onblecharacteristicchange).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -3088,12 +3028,15 @@ device.on('BLECharacteristicChange', CharacteristicChange);
```
-### off('BLECharacteristicChange')
+### off('BLECharacteristicChange')(deprecated)
off(type: "BLECharacteristicChange", callback?: Callback<BLECharacteristic>): void
Unsubscribes from the BLE characteristic change events.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.off('BLECharacteristicChange')](js-apis-bluetoothManager.md#offblecharacteristicchange).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -3117,12 +3060,15 @@ device.off('BLECharacteristicChange');
```
-### on('BLEConnectionStateChange')
+### on('BLEConnectionStateChange')(deprecated)
on(type: "BLEConnectionStateChange", callback: Callback<BLEConnectChangedState>): void
Subscribes to the BLE connection state change events.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.on('BLEConnectionStateChange')](js-apis-bluetoothManager.md#onbleconnectionstatechange).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -3150,12 +3096,15 @@ device.on('BLEConnectionStateChange', ConnectStateChanged);
```
-### off('BLEConnectionStateChange')
+### off('BLEConnectionStateChange')(deprecated)
off(type: "BLEConnectionStateChange", callback?: Callback<BLEConnectChangedState>): void
Unsubscribes from the BLE connection state change events.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.off('BLEConnectionStateChange')](js-apis-bluetoothManager.md#offbleconnectionstatechange).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -3179,12 +3128,15 @@ device.off('BLEConnectionStateChange');
```
-### getDeviceName
+### getDeviceName(deprecated)
getDeviceName(callback: AsyncCallback<string>): void
Obtains the name of the remote BLE device. This API uses an asynchronous callback to return the result.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.getDeviceName](js-apis-bluetoothManager.md#getdevicename).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -3211,12 +3163,15 @@ let deviceName = gattClient.getDeviceName((err, data)=> {
```
-### getDeviceName
+### getDeviceName(deprecated)
getDeviceName(): Promise<string>
Obtains the name of the remote BLE device. This API uses a promise to return the result.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.getDeviceName](js-apis-bluetoothManager.md#getdevicename-1).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -3239,12 +3194,15 @@ let deviceName = gattClient.getDeviceName().then((data) => {
```
-### getRssiValue
+### getRssiValue(deprecated)
getRssiValue(callback: AsyncCallback<number>): void
Obtains the received signal strength indication (RSSI) of the remote BLE device. This API uses an asynchronous callback to return the result. It can be used only after a connection is set up by calling [connect](#connect).
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.getRssiValue](js-apis-bluetoothManager.md#getrssivalue).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -3272,12 +3230,15 @@ let rssi = gattClient.getRssiValue((err, data)=> {
```
-### getRssiValue
+### getRssiValue(deprecated)
getRssiValue(): Promise<number>
Obtains the RSSI of the remote BLE device. This API uses a promise to return the result. It can be used only after a connection is set up by calling [connect](#connect).
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.getRssiValue](js-apis-bluetoothManager.md#getrssivalue-1).
+
**Required permissions**: ohos.permission.USE_BLUETOOTH
**System capability**: SystemCapability.Communication.Bluetooth.Core
@@ -3298,10 +3259,13 @@ let rssi = gattClient.getRssiValue().then((data) => {
})
```
-## ScanMode8+
+## ScanMode8+(deprecated)
Enumerates the scan modes.
+> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.ScanMode](js-apis-bluetoothManager.md#scanmode).
+
**System capability**: SystemCapability.Communication.Bluetooth.Core
| Name | Value | Description |
@@ -3313,10 +3277,13 @@ Enumerates the scan modes.
| SCAN_MODE_CONNECTABLE_GENERAL_DISCOVERABLE | 4 | General connectable and discoverable mode.|
| SCAN_MODE_CONNECTABLE_LIMITED_DISCOVERABLE | 5 | Limited connectable and discoverable mode.|
-## BondState8+
+## BondState8+(deprecated)
Enumerates the pairing states.
+> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.BondState](js-apis-bluetoothManager.md#bondstate).
+
**System capability**: SystemCapability.Communication.Bluetooth.Core
| Name | Value | Description |
@@ -3326,10 +3293,13 @@ Enumerates the pairing states.
| BOND_STATE_BONDED | 2 | Paired. |
-## SppOption8+
+## SppOption8+(deprecated)
Defines the SPP configuration parameters.
+> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.SppOption](js-apis-bluetoothManager.md#sppoption).
+
**System capability**: SystemCapability.Communication.Bluetooth.Core
| Name | Type | Readable | Writable | Description |
@@ -3339,10 +3309,13 @@ Defines the SPP configuration parameters.
| type | [SppType](#spptype) | Yes | Yes | Type of the SPP link. |
-## SppType8+
+## SppType8+(deprecated)
Enumerates the SPP link types.
+> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.SppType](js-apis-bluetoothManager.md#spptype).
+
**System capability**: SystemCapability.Communication.Bluetooth.Core
| Name | Value | Description |
@@ -3350,10 +3323,13 @@ Enumerates the SPP link types.
| SPP_RFCOMM | 0 | Radio frequency communication (RFCOMM) link type.|
-## GattService
+## GattService(deprecated)
Defines the GATT service API parameters.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattService](js-apis-bluetoothManager.md#gattservice).
+
**System capability**: SystemCapability.Communication.Bluetooth.Core
| Name | Type | Readable | Writable | Description |
@@ -3364,10 +3340,13 @@ Defines the GATT service API parameters.
| includeServices | Array<[GattService](#gattservice)> | Yes | Yes | Services on which the service depends. |
-## BLECharacteristic
+## BLECharacteristic(deprecated)
Defines the characteristic API parameters.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.BLECharacteristic](js-apis-bluetoothManager.md#blecharacteristic).
+
**System capability**: SystemCapability.Communication.Bluetooth.Core
| Name | Type | Readable | Writable | Description |
@@ -3378,10 +3357,13 @@ Defines the characteristic API parameters.
| descriptors | Array<[BLEDescriptor](#bledescriptor)> | Yes | Yes | List of descriptors of the characteristic. |
-## BLEDescriptor
+## BLEDescriptor(deprecated)
Defines the descriptor API parameters.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.BLEDescriptor](js-apis-bluetoothManager.md#bledescriptor).
+
**System capability**: SystemCapability.Communication.Bluetooth.Core
| Name | Type | Readable | Writable | Description |
@@ -3392,10 +3374,13 @@ Defines the descriptor API parameters.
| descriptorValue | ArrayBuffer | Yes | Yes | Binary value of the descriptor. |
-## NotifyCharacteristic
+## NotifyCharacteristic(deprecated)
Defines the parameters in the notifications sent when the server characteristic value changes.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.NotifyCharacteristic](js-apis-bluetoothManager.md#notifycharacteristic).
+
**System capability**: SystemCapability.Communication.Bluetooth.Core
| Name | Type | Readable | Writable | Description |
@@ -3406,10 +3391,13 @@ Defines the parameters in the notifications sent when the server characteristic
| confirm | boolean | Yes | Yes | Whether the notification needs to be confirmed by the remote end. For a notification, set it to **true**. In this case, the remote end must confirm the receipt of the notification. For an indication, set it to **false**. In this case, the remote end does not need to confirm the receipt of the notification.|
-## CharacteristicReadReq
+## CharacteristicReadReq(deprecated)
Defines the parameters of the **CharacteristicReadReq** event received by the server.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.CharacteristicReadRequest](js-apis-bluetoothManager.md#characteristicreadrequest).
+
**System capability**: SystemCapability.Communication.Bluetooth.Core
| Name | Type | Readable | Writable | Description |
@@ -3421,10 +3409,13 @@ Defines the parameters of the **CharacteristicReadReq** event received by the se
| serviceUuid | string | Yes | No | UUID of the service, for example, **00001888-0000-1000-8000-00805f9b34fb**.|
-## CharacteristicWriteReq
+## CharacteristicWriteReq(deprecated)
Defines the parameters of the **CharacteristicWriteReq** event received by the server.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.CharacteristicWriteRequest](js-apis-bluetoothManager.md#characteristicwriterequest).
+
**System capability**: SystemCapability.Communication.Bluetooth.Core
| Name | Type | Readable | Writable | Description |
@@ -3437,10 +3428,13 @@ Defines the parameters of the **CharacteristicWriteReq** event received by the s
| serviceUuid | string | Yes | No | UUID of the service, for example, **00001888-0000-1000-8000-00805f9b34fb**.|
-## DescriptorReadReq
+## DescriptorReadReq(deprecated)
Defines the parameters of the **DescriptorReadReq** event received by the server.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.DescriptorReadRequest](js-apis-bluetoothManager.md#descriptorreadrequest).
+
**System capability**: SystemCapability.Communication.Bluetooth.Core
| Name | Type | Readable | Writable | Description |
@@ -3453,10 +3447,13 @@ Defines the parameters of the **DescriptorReadReq** event received by the server
| serviceUuid | string | Yes | No | UUID of the service, for example, **00001888-0000-1000-8000-00805f9b34fb**.|
-## DescriptorWriteReq
+## DescriptorWriteReq(deprecated)
Defines the parameters of the **DescriptorWriteReq** event received by the server.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.DescriptorWriteRequest](js-apis-bluetoothManager.md#descriptorwriterequest).
+
**System capability**: SystemCapability.Communication.Bluetooth.Core
| Name | Type | Readable | Writable | Description |
@@ -3472,10 +3469,13 @@ Defines the parameters of the **DescriptorWriteReq** event received by the serve
| serviceUuid | string | Yes | No | UUID of the service, for example, **00001888-0000-1000-8000-00805f9b34fb**.|
-## ServerResponse
+## ServerResponse(deprecated)
Defines the parameters of the server's response to the GATT client's read/write request.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.ServerResponse](js-apis-bluetoothManager.md#serverresponse).
+
**System capability**: SystemCapability.Communication.Bluetooth.Core
| Name | Type | Readable | Writable | Description |
@@ -3487,10 +3487,13 @@ Defines the parameters of the server's response to the GATT client's read/write
| value | ArrayBuffer | Yes | No | Binary data in the response. |
-## BLEConnectChangedState
+## BLEConnectChangedState(deprecated)
Defines the parameters of **BLEConnectChangedState**.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.BLEConnectChangedState](js-apis-bluetoothManager.md#bleconnectchangedstate).
+
**System capability**: SystemCapability.Communication.Bluetooth.Core
| Name | Type | Readable| Writable| Description |
@@ -3499,10 +3502,13 @@ Defines the parameters of **BLEConnectChangedState**.
| state | [ProfileConnectionState](#profileconnectionstate) | Yes | Yes | BLE connection state. |
-## ProfileConnectionState
+## ProfileConnectionState(deprecated)
Enumerates the profile connection states.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.ProfileConnectionState](js-apis-bluetoothManager.md#profileconnectionstate).
+
**System capability**: SystemCapability.Communication.Bluetooth.Core
| Name | Value | Description |
@@ -3513,10 +3519,13 @@ Enumerates the profile connection states.
| STATE_DISCONNECTING | 3 | Disconnecting.|
-## ScanFilter
+## ScanFilter(deprecated)
Defines the scan filter parameters.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.ScanFilter](js-apis-bluetoothManager.md#scanfilter).
+
**System capability**: SystemCapability.Communication.Bluetooth.Core
| Name | Type | Readable| Writable| Description |
@@ -3524,20 +3533,15 @@ Defines the scan filter parameters.
| deviceId | string | Yes | Yes | Address of the BLE device to filter, for example, XX:XX:XX:XX:XX:XX. |
| name | string | Yes | Yes | Name of the BLE device to filter. |
| serviceUuid | string | Yes | Yes | Service UUID of the device to filter, for example, **00001888-0000-1000-8000-00805f9b34fb**.|
-| serviceUuidMask9+ | string | Yes | Yes | Service UUID mask of the device to filter, for example, **FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF**.|
-| serviceSolicitationUuid9+ | string | Yes | Yes | Service solicitation UUID of the device to filter, for example, **00001888-0000-1000-8000-00805F9B34FB**.|
-| serviceSolicitationUuidMask9+ | string | Yes | Yes | Service solicitation UUID mask of the device to filter, for example, **FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF**.|
-| serviceData9+ | ArrayBuffer | Yes | Yes | Service data of the device to filter, for example, **[0x90, 0x00, 0xF1, 0xF2]**.|
-| serviceDataMask9+ | ArrayBuffer | Yes | Yes | Service data mask of the device to filter, for example, **[0xFF,0xFF,0xFF,0xFF]**.|
-| manufactureId9+ | number | Yes | Yes | Manufacturer ID of the device to filter, for example, **0x0006**. |
-| manufactureData9+ | ArrayBuffer | Yes | Yes | Manufacturer data of the device to filter, for example, **[0x1F,0x2F,0x3F]**.|
-| manufactureDataMask9+ | ArrayBuffer | Yes | Yes | Manufacturer data mask of the device to filter, for example, **[0xFF, 0xFF, 0xFF]**.|
-## ScanOptions
+## ScanOptions(deprecated)
Defines the scan configuration parameters.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.ScanOptions](js-apis-bluetoothManager.md#scanoptions).
+
**System capability**: SystemCapability.Communication.Bluetooth.Core
| Name | Type | Readable | Writable | Description |
@@ -3547,10 +3551,13 @@ Defines the scan configuration parameters.
| matchMode | [MatchMode](#matchmode) | Yes | Yes | Hardware filtering match mode. The default value is **MATCH_MODE_AGGRESSIVE**.|
-## ScanDuty
+## ScanDuty(deprecated)
Enumerates the scan duty options.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.ScanDuty](js-apis-bluetoothManager.md#scanduty).
+
**System capability**: SystemCapability.Communication.Bluetooth.Core
| Name | Value | Description |
@@ -3560,10 +3567,13 @@ Enumerates the scan duty options.
| SCAN_MODE_LOW_LATENCY | 2 | Low-latency mode. |
-## MatchMode
+## MatchMode(deprecated)
Enumerates the hardware match modes of BLE scan filters.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.MatchMode](js-apis-bluetoothManager.md#matchmode).
+
**System capability**: SystemCapability.Communication.Bluetooth.Core
| Name | Value | Description |
@@ -3572,10 +3582,13 @@ Enumerates the hardware match modes of BLE scan filters.
| MATCH_MODE_STICKY | 2 | Hardware reports the scan result with a higher threshold of signal strength and sightings. |
-## ScanResult
+## ScanResult(deprecated)
Defines the scan result.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.ScanResult](js-apis-bluetoothManager.md#scanresult).
+
**System capability**: SystemCapability.Communication.Bluetooth.Core
| Name | Type | Readable | Writable | Description |
@@ -3585,10 +3598,13 @@ Defines the scan result.
| data | ArrayBuffer | Yes | No | Advertisement packets sent by the device. |
-## BluetoothState
+## BluetoothState(deprecated)
Enumerates the Bluetooth states.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.BluetoothState](js-apis-bluetoothManager.md#bluetoothstate).
+
**System capability**: SystemCapability.Communication.Bluetooth.Core
| Name | Value | Description |
@@ -3602,10 +3618,13 @@ Enumerates the Bluetooth states.
| STATE_BLE_TURNING_OFF | 6 | The LE-only mode is being turned off for Bluetooth.|
-## AdvertiseSetting
+## AdvertiseSetting(deprecated)
Defines the BLE advertising parameters.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.AdvertiseSetting](js-apis-bluetoothManager.md#advertisesetting).
+
**System capability**: SystemCapability.Communication.Bluetooth.Core
| Name | Type | Readable | Writable | Description |
@@ -3615,10 +3634,13 @@ Defines the BLE advertising parameters.
| connectable | boolean | Yes | Yes | Whether the advertisement is connectable. The default value is **true**. |
-## AdvertiseData
+## AdvertiseData(deprecated)
Defines the content of a BLE advertisement packet.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.AdvertiseData](js-apis-bluetoothManager.md#advertisedata).
+
**System capability**: SystemCapability.Communication.Bluetooth.Core
| Name | Type | Readable | Writable | Description |
@@ -3628,10 +3650,13 @@ Defines the content of a BLE advertisement packet.
| serviceData | Array<[ServiceData](#servicedata)> | Yes | Yes | List of service data to broadcast. |
-## ManufactureData
+## ManufactureData(deprecated)
Defines the content of a BLE advertisement packet.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.ManufactureData](js-apis-bluetoothManager.md#manufacturedata).
+
**System capability**: SystemCapability.Communication.Bluetooth.Core
| Name | Type | Readable | Writable | Description |
@@ -3640,10 +3665,13 @@ Defines the content of a BLE advertisement packet.
| manufactureValue | ArrayBuffer | Yes | Yes | Manufacturer data. |
-## ServiceData
+## ServiceData(deprecated)
Defines the service data contained in an advertisement packet.
+> **NOTE**
+> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.ServiceData](js-apis-bluetoothManager.md#servicedata).
+
**System capability**: SystemCapability.Communication.Bluetooth.Core
| Name | Type | Readable | Writable | Description |
@@ -3652,10 +3680,13 @@ Defines the service data contained in an advertisement packet.
| serviceValue | ArrayBuffer | Yes | Yes | Service data. |
-## PinRequiredParam8+
+## PinRequiredParam8+(deprecated)
Defines the pairing request parameters.
+> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.PinRequiredParam](js-apis-bluetoothManager.md#pinrequiredparam).
+
**System capability**: SystemCapability.Communication.Bluetooth.Core
| Name | Type | Readable | Writable | Description |
@@ -3664,10 +3695,13 @@ Defines the pairing request parameters.
| pinCode | string | Yes | No | Key for the device pairing. |
-## BondStateParam8+
+## BondStateParam8+(deprecated)
Defines the pairing state parameters.
+> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.BondStateParam](js-apis-bluetoothManager.md#bondstateparam).
+
**System capability**: SystemCapability.Communication.Bluetooth.Core
| Name | Type | Readable | Writable | Description |
@@ -3676,10 +3710,13 @@ Defines the pairing state parameters.
| state | BondState | Yes | No | State of the device.|
-## StateChangeParam8+
+## StateChangeParam8+(deprecated)
Defines the profile state change parameters.
+> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.StateChangeParam](js-apis-bluetoothManager.md#statechangeparam).
+
**System capability**: SystemCapability.Communication.Bluetooth.Core
| Name | Type | Readable| Writable| Description |
@@ -3688,10 +3725,13 @@ Defines the profile state change parameters.
| state | [ProfileConnectionState](#profileconnectionstate) | Yes | No | Profile connection state of the device.|
-## DeviceClass8+
+## DeviceClass8+(deprecated)
Defines the class of a Bluetooth device.
+> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.DeviceClass](js-apis-bluetoothManager.md#deviceclass).
+
**System capability**: SystemCapability.Communication.Bluetooth.Core
| Name | Type | Readable | Writable | Description |
@@ -3702,10 +3742,13 @@ Defines the class of a Bluetooth device.
-## MajorClass8+
+## MajorClass8+(deprecated)
Enumerates the major classes of Bluetooth devices.
+> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.MajorClass](js-apis-bluetoothManager.md#majorclass).
+
**System capability**: SystemCapability.Communication.Bluetooth.Core
| Name | Value | Description |
@@ -3723,10 +3766,13 @@ Enumerates the major classes of Bluetooth devices.
| MAJOR_UNCATEGORIZED | 0x1F00 | Unclassified device. |
-## MajorMinorClass8+
+## MajorMinorClass8+(deprecated)
Enumerates the major and minor classes of Bluetooth devices.
+> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.MajorMinorClass](js-apis-bluetoothManager.md#majorminorclass).
+
**System capability**: SystemCapability.Communication.Bluetooth.Core
| Name | Value | Description |
@@ -3819,10 +3865,13 @@ Enumerates the major and minor classes of Bluetooth devices.
| HEALTH_PERSONAL_MOBILITY_DEVICE | 0x093C | Personal mobility device. |
-## PlayingState8+
+## PlayingState8+(deprecated)
Enumerates the A2DP playing states.
+> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.PlayingState](js-apis-bluetoothManager.md#playingstate).
+
**System capability**: SystemCapability.Communication.Bluetooth.Core
| Name | Value | Description |
@@ -3831,15 +3880,16 @@ Enumerates the A2DP playing states.
| STATE_PLAYING | 0x0001 | Playing.|
-## ProfileId8+
+## ProfileId8+(deprecated)
Enumerates the Bluetooth profiles. API version 9 is added with **PROFILE_HID_HOST** and **PROFILE_PAN_NETWORK**.
+> **NOTE**
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.ProfileId](js-apis-bluetoothManager.md#profileid).
+
**System capability**: SystemCapability.Communication.Bluetooth.Core
| Name | Value | Description |
| -------------------------------- | ------ | --------------- |
| PROFILE_A2DP_SOURCE | 1 | A2DP profile.|
| PROFILE_HANDS_FREE_AUDIO_GATEWAY | 4 | HFP profile. |
-| PROFILE_HID_HOST9+ | 6 | Human Interface Device (HID) profile. |
-| PROFILE_PAN_NETWORK9+ | 7 | PAN profile. |
diff --git a/en/application-dev/reference/apis/js-apis-bluetoothManager.md b/en/application-dev/reference/apis/js-apis-bluetoothManager.md
new file mode 100644
index 0000000000000000000000000000000000000000..9711dd232291c9863725c5ed3dba6a64f654cea7
--- /dev/null
+++ b/en/application-dev/reference/apis/js-apis-bluetoothManager.md
@@ -0,0 +1,4491 @@
+# @ohos.bluetoothManager (Bluetooth)
+
+The **Bluetooth** module provides classic Bluetooth capabilities and Bluetooth Low Energy (BLE) scan and advertising.
+
+> **NOTE**
+>
+> The initial APIs of this module are supported since API version 9. Newly added APIs will be marked with a superscript to indicate their earliest API version.
+
+
+
+## Modules to Import
+
+```js
+import bluetoothManager from '@ohos.bluetoothManager';
+```
+
+
+## bluetoothManager.enableBluetooth
+
+enableBluetooth(): void
+
+Enables Bluetooth.
+
+**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+try {
+ bluetoothManager.enableBluetooth();
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+## bluetoothManager.disableBluetooth
+
+disableBluetooth(): void
+
+Disables Bluetooth.
+
+**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+try {
+ bluetoothManager.disableBluetooth();
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+## bluetoothManager.getLocalName
+
+getLocalName(): string
+
+Obtains the name of the local Bluetooth device.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Return value**
+
+| Type | Description |
+| ------ | --------- |
+| string | Name of the local Bluetooth device obtained.|
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+try {
+ let localName = bluetoothManager.getLocalName();
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+## bluetoothManager.getState
+
+getState(): BluetoothState
+
+Obtains the Bluetooth state.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Return value**
+
+| Type | Description |
+| --------------------------------- | --------- |
+| [BluetoothState](#bluetoothstate) | Bluetooth state obtained.|
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+try {
+ let state = bluetoothManager.getState();
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+## bluetoothManager.getBtConnectionState
+
+getBtConnectionState(): ProfileConnectionState
+
+Obtains the local profile connection status.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Return value**
+
+| Type | Description |
+| ---------------------------------------- | ------------------- |
+| [ProfileConnectionState](#profileconnectionstate) | Profile connection state obtained.|
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2900003 | Bluetooth switch is off. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+try {
+ let connectionState = bluetoothManager.getBtConnectionState();
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+## bluetoothManager.setLocalName
+
+setLocalName(name: string): void
+
+Sets the name of the local Bluetooth device.
+
+**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| ---- | ------ | ---- | --------------------- |
+| name | string | Yes | Bluetooth device name to set. It cannot exceed 248 bytes.|
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2900003 | Bluetooth switch is off. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+try {
+ bluetoothManager.setLocalName('device_name');
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+## bluetoothManager.pairDevice
+
+pairDevice(deviceId: string): void
+
+Initiates Bluetooth pairing.
+
+**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| -------- | ------ | ---- | ----------------------------------- |
+| deviceId | string | Yes | Address of the remote device to pair, for example, XX:XX:XX:XX:XX:XX.|
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2900003 | Bluetooth switch is off. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+try {
+ // The address can be scanned.
+ bluetoothManager.pairDevice("XX:XX:XX:XX:XX:XX");
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+## bluetoothManager.getProfileConnectionState
+
+getProfileConnectionState(profileId: ProfileId): ProfileConnectionState
+
+Obtains the connection status of the specified profile.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| --------- | --------- | ---- | ------------------------------------- |
+| ProfileId | profileId | Yes | ID of the profile to obtain, for example, **PROFILE_A2DP_SOURCE**.|
+
+**Return value**
+
+| Type | Description |
+| ------------------------------------------------- | ------------------- |
+| [ProfileConnectionState](#profileconnectionstate) | Profile connection state obtained.|
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2900003 | Bluetooth switch is off. |
+|2900004 | Profile is not supported. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+try {
+ let result = bluetoothManager.getProfileConnectionState(bluetoothManager.ProfileId.PROFILE_A2DP_SOURCE);
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+## bluetoothManager.cancelPairedDevice
+
+cancelPairedDevice(deviceId: string): void
+
+Cancels a paired remote device.
+
+**System API**: This is a system API.
+
+**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| -------- | ------ | ---- | ------------------------------------- |
+| deviceId | string | Yes | Address of the remote device to cancel, for example, XX:XX:XX:XX:XX:XX.|
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2900003 | Bluetooth switch is off. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+try {
+ bluetoothManager.cancelPairedDevice("XX:XX:XX:XX:XX:XX");
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+## bluetoothManager.getRemoteDeviceName
+
+getRemoteDeviceName(deviceId: string): string
+
+Obtains the name of the remote Bluetooth device.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| -------- | ------ | ---- | --------------------------------- |
+| deviceId | string | Yes | Address of the target remote device, for example, XX:XX:XX:XX:XX:XX.|
+
+**Return value**
+
+| Type | Description |
+| ------ | ------------- |
+| string | Device name (a string) obtained.|
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2900003 | Bluetooth switch is off. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+try {
+ let remoteDeviceName = bluetoothManager.getRemoteDeviceName("XX:XX:XX:XX:XX:XX");
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+## bluetoothManager.getRemoteDeviceClass
+
+getRemoteDeviceClass(deviceId: string): DeviceClass
+
+Obtains the class of the remote Bluetooth device.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| -------- | ------ | ---- | --------------------------------- |
+| deviceId | string | Yes | Address of the target remote device, for example, XX:XX:XX:XX:XX:XX.|
+
+**Return value**
+
+| Type | Description |
+| --------------------------- | -------- |
+| [DeviceClass](#deviceclass) | Class of the remote device obtained.|
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2900003 | Bluetooth switch is off. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+try {
+ let remoteDeviceClass = bluetoothManager.getRemoteDeviceClass("XX:XX:XX:XX:XX:XX");
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+## bluetoothManager.getPairedDevices
+
+getPairedDevices(): Array<string>
+
+Obtains the paired devices.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Return value**
+
+| Type | Description |
+| ------------------- | ------------- |
+| Array<string> | Addresses of the paired Bluetooth devices.|
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2900003 | Bluetooth switch is off. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+try {
+ let devices = bluetoothManager.getPairedDevices();
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+## bluetoothManager.setBluetoothScanMode
+
+setBluetoothScanMode(mode: ScanMode, duration: number): void
+
+Sets the Bluetooth scan mode so that the device can be discovered by a remote device.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| -------- | --------------------- | ---- | ---------------------------- |
+| mode | [ScanMode](#scanmode) | Yes | Bluetooth scan mode to set. |
+| duration | number | Yes | Duration (in ms) in which the device can be discovered. The value **0** indicates unlimited time.|
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2900003 | Bluetooth switch is off. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+try {
+ // The device can be discovered and connected only when the discoverable and connectable mode is used.
+ bluetoothManager.setBluetoothScanMode(bluetoothManager.ScanMode.SCAN_MODE_CONNECTABLE_GENERAL_DISCOVERABLE, 100);
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+## bluetoothManager.getBluetoothScanMode
+
+getBluetoothScanMode(): ScanMode
+
+Obtains the Bluetooth scan mode.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Return value**
+
+| Type | Description |
+| --------------------- | ------- |
+| [ScanMode](#scanmode) | Bluetooth scan mode to set.|
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2900003 | Bluetooth switch is off. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+try {
+ let scanMode = bluetoothManager.getBluetoothScanMode();
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+## bluetoothManager.startBluetoothDiscovery
+
+startBluetoothDiscovery(): void
+
+Starts Bluetooth scan to discover remote devices.
+
+**Rquired permissions**: ohos.permission.DISCOVER_BLUETOOTH and ohos.permission.LOCATION and ohos.permission.APPROXIMATELY_LOCATION
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2900003 | Bluetooth switch is off. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+let deviceId;
+function onReceiveEvent(data) {
+ deviceId = data;
+}
+try {
+ bluetoothManager.on('bluetoothDeviceFind', onReceiveEvent);
+ bluetoothManager.startBluetoothDiscovery();
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+## bluetoothManager.stopBluetoothDiscovery
+
+stopBluetoothDiscovery(): void
+
+Stops Bluetooth scan.
+
+**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2900003 | Bluetooth switch is off. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+try {
+ bluetoothManager.stopBluetoothDiscovery();
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+## bluetoothManager.setDevicePairingConfirmation
+
+setDevicePairingConfirmation(device: string, accept: boolean): void
+
+Sets the device pairing confirmation.
+
+**Required permissions**: ohos.permission.MANAGE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| ------ | ------- | ---- | -------------------------------- |
+| device | string | Yes | Address of the remote device, for example, XX:XX:XX:XX:XX:XX.|
+| accept | boolean | Yes | Whether to accept the pairing request. The value **true** means to accept the pairing request, and the value **false** means the opposite. |
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2900003 | Bluetooth switch is off. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+
+try {
+ // Subscribe to the pinRequired event and configure the pairing confirmation after receiving a pairing request from the remote device.
+ function onReceivePinRequiredEvent(data) { // data is the input parameter for the pairing request.
+ console.info('pin required = '+ JSON.stringify(data));
+ bluetoothManager.setDevicePairingConfirmation(data.deviceId, true);
+ }
+ bluetoothManager.on("pinRequired", onReceivePinRequiredEvent);
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+## bluetoothManager.on('bluetoothDeviceFind')
+
+on(type: "bluetoothDeviceFind", callback: Callback<Array<string>>): void
+
+Subscribes to the Bluetooth device discovery events.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| -------- | ----------------------------------- | ---- | -------------------------------------- |
+| type | string | Yes | Event type. The value **bluetoothDeviceFind** indicates an event reported when a Bluetooth device is discovered.|
+| callback | Callback<Array<string>> | Yes | Callback invoked to return the discovered devices. You need to implement this callback. |
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+function onReceiveEvent(data) { // data is a set of Bluetooth device addresses.
+ console.info('bluetooth device find = '+ JSON.stringify(data));
+}
+try {
+ bluetoothManager.on('bluetoothDeviceFind', onReceiveEvent);
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+## bluetoothManager.off('bluetoothDeviceFind')
+
+off(type: "bluetoothDeviceFind", callback?: Callback<Array<string>>): void
+
+Unsubscribes from the Bluetooth device discovery events.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| -------- | ----------------------------------- | ---- | ---------------------------------------- |
+| type | string | Yes | Event type. The value **bluetoothDeviceFind** indicates an event reported when a Bluetooth device is discovered. |
+| callback | Callback<Array<string>> | No | Callback for the **bluetoothDeviceFind** event. If this parameter is not set, this method unsubscribes from all callbacks corresponding to **type**.|
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+function onReceiveEvent(data) {
+ console.info('bluetooth device find = '+ JSON.stringify(data));
+}
+try {
+ bluetoothManager.on('bluetoothDeviceFind', onReceiveEvent);
+ bluetoothManager.off('bluetoothDeviceFind', onReceiveEvent);
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+## bluetoothManager.on('pinRequired')
+
+on(type: "pinRequired", callback: Callback<PinRequiredParam>): void
+
+Subscribes to the pairing request events of the remote Bluetooth device.
+
+**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| -------- | ---------------------------------------- | ---- | -------------------------------- |
+| type | string | Yes | Event type. The value **pinRequired** indicates a pairing request event. |
+| callback | Callback<[PinRequiredParam](#pinrequiredparam)> | Yes | Callback invoked to return the pairing request. You need to implement this callback.|
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+function onReceiveEvent(data) { // data is the pairing request parameter.
+ console.info('pin required = '+ JSON.stringify(data));
+}
+try {
+ bluetoothManager.on('pinRequired', onReceiveEvent);
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+## bluetoothManager.off('pinRequired')
+
+off(type: "pinRequired", callback?: Callback<PinRequiredParam>): void
+
+Unsubscribes from the pairing request events of the remote Bluetooth device.
+
+**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| -------- | ---------------------------------------- | ---- | ---------------------------------------- |
+| type | string | Yes | Event type. The value **pinRequired** indicates a pairing request event. |
+| callback | Callback<[PinRequiredParam](#pinrequiredparam)> | No | Callback for the Bluetooth pairing request event. The input parameter is the pairing request parameter. If this parameter is not set, this method unsubscribes from all callbacks corresponding to **type**.|
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+function onReceiveEvent(data) {
+ console.info('pin required = '+ JSON.stringify(data));
+}
+try {
+ bluetoothManager.on('pinRequired', onReceiveEvent);
+ bluetoothManager.off('pinRequired', onReceiveEvent);
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+## bluetoothManager.on('bondStateChange')
+
+on(type: "bondStateChange", callback: Callback<BondStateParam>): void
+
+Subscribes to the Bluetooth pairing state change events.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| -------- | ---------------------------------------- | ---- | ------------------------------------ |
+| type | string | Yes | Event type. The value **bondStateChange** indicates a Bluetooth pairing state change event.|
+| callback | Callback<[BondStateParam](#BondStateParam)> | Yes | Callback invoked to return the pairing state. You need to implement this callback. |
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+function onReceiveEvent(data) { // data, as the input parameter of the callback, indicates the pairing state.
+ console.info('pair state = '+ JSON.stringify(data));
+}
+try {
+ bluetoothManager.on('bondStateChange', onReceiveEvent);
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+## bluetoothManager.off('bondStateChange')
+
+off(type: "bondStateChange", callback?: Callback<BondStateParam>): void
+
+Unsubscribes from the Bluetooth pairing state change events.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| -------- | ---------------------------------------- | ---- | ---------------------------------------- |
+| type | string | Yes | Event type. The value **bondStateChange** indicates a Bluetooth pairing state change event. |
+| callback | Callback<[BondStateParam](#BondStateParam)> | No | Callback for the change of the Bluetooth pairing state. If this parameter is not set, this method unsubscribes from all callbacks corresponding to **type**.|
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+function onReceiveEvent(data) {
+ console.info('bond state = '+ JSON.stringify(data));
+}
+try {
+ bluetoothManager.on('bondStateChange', onReceiveEvent);
+ bluetoothManager.off('bondStateChange', onReceiveEvent);
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+## bluetoothManager.on('stateChange')
+
+on(type: "stateChange", callback: Callback<BluetoothState>): void
+
+Subscribes to the Bluetooth connection state change events.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| -------- | ---------------------------------------- | ---- | -------------------------------- |
+| type | string | Yes | Event type. The value **stateChange** indicates a Bluetooth connection state change event. |
+| callback | Callback<[BluetoothState](#bluetoothstate)> | Yes | Callback invoked to return the Bluetooth connection state. You need to implement this callback.|
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+function onReceiveEvent(data) {
+ console.info('bluetooth state = '+ JSON.stringify(data));
+}
+try {
+ bluetoothManager.on('stateChange', onReceiveEvent);
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+## bluetoothManager.off('stateChange')
+
+off(type: "stateChange", callback?: Callback<BluetoothState>): void
+
+Unsubscribes from the Bluetooth connection state change events.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| -------- | ---------------------------------------- | ---- | ---------------------------------------- |
+| type | string | Yes | Event type. The value **stateChange** indicates a Bluetooth connection state change event. |
+| callback | Callback<[BluetoothState](#bluetoothstate)> | No | Callback for the Bluetooth connection state change event. If this parameter is not set, this method unsubscribes from all callbacks corresponding to **type**.|
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+function onReceiveEvent(data) {
+ console.info('bluetooth state = '+ JSON.stringify(data));
+}
+try {
+ bluetoothManager.on('stateChange', onReceiveEvent);
+ bluetoothManager.off('stateChange', onReceiveEvent);
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+## bluetoothManager.sppListen
+
+sppListen(name: string, option: SppOption, callback: AsyncCallback<number>): void
+
+Creates a server listening socket.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| -------- | --------------------------- | ---- | ----------------------- |
+| name | string | Yes | Name of the service. |
+| option | [SppOption](#sppoption) | Yes | Serial port profile (SPP) listening configuration. |
+| callback | AsyncCallback<number> | Yes | Callback invoked to return the server socket ID.|
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2900003 | Bluetooth switch is off. |
+|2900004 | Profile is not supported. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+let serverNumber = -1;
+function serverSocket(code, number) {
+ console.log('bluetooth error code: ' + code.code);
+ if (code.code == 0) {
+ console.log('bluetooth serverSocket Number: ' + number);
+ serverNumber = number;
+ }
+}
+
+let sppOption = {uuid: '00001810-0000-1000-8000-00805F9B34FB', secure: false, type: 0};
+try {
+ bluetoothManager.sppListen('server1', sppOption, serverSocket);
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+## bluetoothManager.sppAccept
+
+sppAccept(serverSocket: number, callback: AsyncCallback<number>): void
+
+Listens for a connection to be made to this socket from the client and accepts it.
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| ------------ | --------------------------- | ---- | ----------------------- |
+| serverSocket | number | Yes | Server socket ID. |
+| callback | AsyncCallback<number> | Yes | Callback invoked to return the client socket ID.|
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2900003 | Bluetooth switch is off. |
+|2900004 | Profile is not supported. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+let serverNumber = -1;
+function serverSocket(code, number) {
+ console.log('bluetooth error code: ' + code.code);
+ if (code.code == 0) {
+ console.log('bluetooth serverSocket Number: ' + number);
+ serverNumber = number;
+ }
+}
+let clientNumber = -1;
+function acceptClientSocket(code, number) {
+ console.log('bluetooth error code: ' + code.code);
+ if (code.code == 0) {
+ console.log('bluetooth clientSocket Number: ' + number);
+ // The obtained clientNumber is used as the socket ID for subsequent read/write operations on the server.
+ clientNumber = number;
+ }
+}
+try {
+ bluetoothManager.sppAccept(serverNumber, acceptClientSocket);
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+## bluetoothManager.sppConnect
+
+sppConnect(device: string, option: SppOption, callback: AsyncCallback<number>): void
+
+Initiates an SPP connection to a remote device from the client.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| -------- | --------------------------- | ---- | ------------------------------ |
+| device | string | Yes | Address of the remote device, for example, XX:XX:XX:XX:XX:XX.|
+| option | [SppOption](#sppoption) | Yes | Configuration for connecting to the SPP client. |
+| callback | AsyncCallback<number> | Yes | Callback invoked to return the client socket ID. |
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2900003 | Bluetooth switch is off. |
+|2900004 | Profile is not supported. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+
+let clientNumber = -1;
+function clientSocket(code, number) {
+ if (code.code != 0) {
+ return;
+ }
+ console.log('bluetooth serverSocket Number: ' + number);
+ // The obtained clientNumber is used as the socket ID for subsequent read/write operations on the client.
+ clientNumber = number;
+}
+let sppOption = {uuid: '00001810-0000-1000-8000-00805F9B34FB', secure: false, type: 0};
+try {
+ bluetoothManager.sppConnect('XX:XX:XX:XX:XX:XX', sppOption, clientSocket);
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+## bluetoothManager.sppCloseServerSocket
+
+sppCloseServerSocket(socket: number): void
+
+Closes the listening socket of the server.
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| ------ | ------ | ---- | --------------- |
+| socket | number | Yes | ID of the listening socket on the server. The ID is obtained by **sppListen**.|
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+let serverNumber = -1;
+function serverSocket(code, number) {
+ console.log('bluetooth error code: ' + code.code);
+ if (code.code == 0) {
+ console.log('bluetooth serverSocket Number: ' + number);
+ serverNumber = number;
+ }
+}
+try {
+ bluetoothManager.sppCloseServerSocket(serverNumber);
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+## bluetoothManager.sppCloseClientSocket
+
+sppCloseClientSocket(socket: number): void
+
+Closes the client socket.
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| ------ | ------ | ---- | ------------- |
+| Name | Type | Mandatory | Description |
+| socket | number | Yes | Client socket ID, which is obtained by **sppAccept** or **sppConnect**.|
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+let clientNumber = -1;
+function clientSocket(code, number) {
+ if (code.code != 0) {
+ return;
+ }
+ console.log('bluetooth serverSocket Number: ' + number);
+ // The obtained clientNumber is used as the socket ID for subsequent read/write operations on the client.
+ clientNumber = number;
+}
+try {
+ bluetoothManager.sppCloseClientSocket(clientNumber);
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+## bluetoothManager.sppWrite
+
+sppWrite(clientSocket: number, data: ArrayBuffer): void
+
+Writes data to the remote device through the socket.
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| ------------ | ----------- | ---- | ------------- |
+| clientSocket | number | Yes | Client socket ID, which is obtained by **sppAccept** or **sppConnect**.|
+| data | ArrayBuffer | Yes | Data to write. |
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2901054 | IO error. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+let clientNumber = -1;
+function clientSocket(code, number) {
+ if (code.code != 0) {
+ return;
+ }
+ console.log('bluetooth serverSocket Number: ' + number);
+ // The obtained clientNumber is used as the socket ID for subsequent read/write operations on the client.
+ clientNumber = number;
+}
+let arrayBuffer = new ArrayBuffer(8);
+let data = new Uint8Array(arrayBuffer);
+data[0] = 123;
+try {
+ bluetoothManager.sppWrite(clientNumber, arrayBuffer);
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+## bluetoothManager.on('sppRead')
+
+on(type: "sppRead", clientSocket: number, callback: Callback<ArrayBuffer>): void
+
+Subscribes to the SPP read request events.
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| ------------ | --------------------------- | ---- | -------------------------- |
+| type | string | Yes | Event type. The value **sppRead** indicates an SPP read request event.|
+| clientSocket | number | Yes | Client socket ID, which is obtained by **sppAccept** or **sppConnect**. |
+| callback | Callback<ArrayBuffer> | Yes | Callback invoked to return the data read. |
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2901054 | IO error. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+let clientNumber = -1;
+function clientSocket(code, number) {
+ if (code.code != 0) {
+ return;
+ }
+ console.log('bluetooth serverSocket Number: ' + number);
+ // The obtained clientNumber is used as the socket ID for subsequent read/write operations on the client.
+ clientNumber = number;
+}
+function dataRead(dataBuffer) {
+ let data = new Uint8Array(dataBuffer);
+ console.log('bluetooth data is: ' + data[0]);
+}
+try {
+ bluetoothManager.on('sppRead', clientNumber, dataRead);
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+## bluetoothManager.off('sppRead')
+
+off(type: "sppRead", clientSocket: number, callback?: Callback<ArrayBuffer>): void
+
+Unsubscribes from the SPP read request events.
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| ------------ | --------------------------- | ---- | ---------------------------------------- |
+| type | string | Yes | Event type. The value **sppRead** indicates an SPP read request event. |
+| clientSocket | number | Yes | Client socket ID, which is obtained by **sppAccept** or **sppConnect**. |
+| callback | Callback<ArrayBuffer> | No | Callback for the SPP read request event. If this parameter is not set, this method unsubscribes from all callbacks corresponding to **type**.|
+
+**Example**
+
+```js
+let clientNumber = -1;
+function clientSocket(code, number) {
+ if (code.code != 0) {
+ return;
+ }
+ console.log('bluetooth serverSocket Number: ' + number);
+ // The obtained clientNumber is used as the socket ID for subsequent read/write operations on the client.
+ clientNumber = number;
+}
+try {
+ bluetoothManager.off('sppRead', clientNumber);
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+## bluetoothManager.getProfileInstance
+
+getProfileInstance(profileId: ProfileId): A2dpSourceProfile | HandsFreeAudioGatewayProfile | HidHostProfile | PanProfile
+
+Obtains a profile instance. API version 9 is added with **HidHostProfile** and **PanProfile**.
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| --------- | --------- | ---- | ------------------------------------- |
+| profileId | [ProfileId](#ProfileId) | Yes | ID of the profile to obtain, for example, **PROFILE_A2DP_SOURCE**.|
+
+**Return value**
+
+| Type | Description |
+| ------------------------------------------------------------ | ------------------------------------------------------------ |
+| [A2dpSourceProfile](#a2dpsourceprofile), [HandsFreeAudioGatewayProfile](#handsfreeaudiogatewayprofile), [HidHostProfile](#hidhostprofile), or [PanProfile](#panprofile)| Profile instance obtained, which can be **A2dpSourceProfile**, **HandsFreeAudioGatewayProfile**, **HidHostProfile**, or **PanProfile**.|
+
+**Example**
+
+```js
+try {
+ let hidHost = bluetoothManager.getProfileInstance(bluetoothManager.ProfileId.PROFILE_HID_HOST);
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+## bluetoothManager.BLE
+
+### bluetoothManager.BLE.createGattServer
+
+createGattServer(): GattServer
+
+Creates a **GattServer** instance.
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Return value**
+
+| Type | Description |
+| ------------------------- | ------------------------------------ |
+| [GattServer](#gattserver) | **GattServer** instance created. Before using an API of the server, you must create a **GattSever** instance.|
+
+**Example**
+
+```js
+let gattServer = bluetoothManager.BLE.createGattServer();
+```
+
+
+### bluetoothManager.BLE.createGattClientDevice
+
+createGattClientDevice(deviceId: string): GattClientDevice
+
+Creates a **GattClientDevice** instance.
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| -------- | ------ | ---- | ------------------------------------ |
+| deviceId | string | Yes | Address of the remote device, for example, XX:XX:XX:XX:XX:XX.|
+
+**Return value**
+
+| Type | Description |
+| ------------------------------------- | ------------------------------------ |
+| [GattClientDevice](#gattclientdevice) | **GattClientDevice** instance created. Before using an API of the client, you must create a **GattClientDevice** instance.|
+
+**Example**
+
+```js
+try {
+ let device = bluetoothManager.BLE.createGattClientDevice('XX:XX:XX:XX:XX:XX');
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+### bluetoothManager.BLE.getConnectedBLEDevices
+
+getConnectedBLEDevices(): Array<string>
+
+Obtains the BLE devices connected to this device.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Return value**
+
+| Type | Description |
+| ------------------- | ------------------- |
+| Array<string> | Addresses of the BLE devices connected to this device.|
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2900003 | Bluetooth switch is off. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+try {
+ let result = bluetoothManager.BLE.getConnectedBLEDevices();
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+### bluetoothManager.BLE.startBLEScan
+
+startBLEScan(filters: Array<ScanFilter>, options?: ScanOptions): void
+
+Starts a BLE scan.
+
+**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH, ohos.permission.MANAGE_BLUETOOTH, ohos.permission.LOCATION, and ohos.permission.APPROXIMATELY_LOCATION
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| ------- | -------------------------------------- | ---- | ----------------------------------- |
+| filters | Array<[ScanFilter](#scanfilter)> | Yes | Criteria for filtering the scan result. Set this parameter to **null** if you do not want to filter the scan result.|
+| options | [ScanOptions](#scanoptions) | No | Scan options. |
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2900003 | Bluetooth switch is off. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+function onReceiveEvent(data) {
+ console.info('BLE scan device find result = '+ JSON.stringify(data));
+}
+try {
+ bluetoothManager.BLE.on("BLEDeviceFind", onReceiveEvent);
+ bluetoothManager.BLE.startBLEScan(
+ [{
+ deviceId:"XX:XX:XX:XX:XX:XX",
+ name:"test",
+ serviceUuid:"00001888-0000-1000-8000-00805f9b34fb"
+ }],
+ {
+ interval: 500,
+ dutyMode: bluetoothManager.ScanDuty.SCAN_MODE_LOW_POWER,
+ matchMode: bluetoothManager.MatchMode.MATCH_MODE_AGGRESSIVE,
+ }
+ );
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+### bluetoothManager.BLE.stopBLEScan
+
+stopBLEScan(): void
+
+Stops the BLE scan.
+
+**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2900003 | Bluetooth switch is off. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+try {
+ bluetoothManager.BLE.stopBLEScan();
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+### bluetoothManager.BLE.on('BLEDeviceFind')
+
+on(type: "BLEDeviceFind", callback: Callback<Array<ScanResult>>): void
+
+Subscribe to the BLE device discovery events.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| -------- | ---------------------------------------- | ---- | ----------------------------------- |
+| type | string | Yes | Event type. The value **BLEDeviceFind** indicates an event reported when a BLE device is discovered. |
+| callback | Callback<Array<[ScanResult](#scanresult)>> | Yes | Callback invoked to return the discovered devices. You need to implement this callback.|
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+function onReceiveEvent(data) {
+ console.info('bluetooth device find = '+ JSON.stringify(data));
+}
+try {
+ bluetoothManager.BLE.on('BLEDeviceFind', onReceiveEvent);
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+### bluetoothManager.BLE.off('BLEDeviceFind')
+
+off(type: "BLEDeviceFind", callback?: Callback<Array<ScanResult>>): void
+
+Unsubscribes from the BLE device discovery events.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| -------- | ---------------------------------------- | ---- | ---------------------------------------- |
+| type | string | Yes | Event type. The value **BLEDeviceFind** indicates an event reported when a BLE device is discovered. |
+| callback | Callback<Array<[ScanResult](#scanresult)>> | No | Callback for the **BLEDeviceFind** event. If this parameter is not set, this method unsubscribes from all callbacks corresponding to **type**.|
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+function onReceiveEvent(data) {
+ console.info('bluetooth device find = '+ JSON.stringify(data));
+}
+try {
+ bluetoothManager.BLE.on('BLEDeviceFind', onReceiveEvent);
+ bluetoothManager.BLE.off('BLEDeviceFind', onReceiveEvent);
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+## BaseProfile
+
+Provides the profile base class.
+
+
+### getConnectionDevices
+
+getConnectionDevices(): Array<string>
+
+Obtains the connected devices.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Return value**
+
+| Type | Description |
+| ------------------- | ------------- |
+| Array<string> | Addresses of the connected devices.|
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2900003 | Bluetooth switch is off. |
+|2900004 | Profile is not supported. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+try {
+ let a2dpSrc = bluetoothManager.getProfileInstance(bluetoothManager.ProfileId.PROFILE_A2DP_SOURCE) as bluetoothManager.A2dpSourceProfile;
+ let retArray = a2dpSrc.getConnectionDevices();
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+### getDeviceState
+
+getDeviceState(device: string): ProfileConnectionState
+
+Obtains the connection state of the profile.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| ------ | ------ | ---- | ------- |
+| device | string | Yes | Address of the target device.|
+
+**Return value**
+
+| Type | Description |
+| ------------------------------------------------- | ----------------------- |
+| [ProfileConnectionState](#profileconnectionstate) | Profile connection state obtained.|
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2900003 | Bluetooth switch is off. |
+|2900004 | Profile is not supported. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+try {
+ let a2dpSrc = bluetoothManager.getProfileInstance(bluetoothManager.ProfileId.PROFILE_A2DP_SOURCE) as bluetoothManager.A2dpSourceProfile;
+ let ret = a2dpSrc.getDeviceState('XX:XX:XX:XX:XX:XX');
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+## A2dpSourceProfile
+
+Before using an API of **A2dpSourceProfile**, you need to create an instance of this class by using **getProfile()**.
+
+
+### connect
+
+connect(device: string): void
+
+Sets up an Advanced Audio Distribution Profile (A2DP) connection.
+
+**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| ------ | ------ | ---- | ------- |
+| device | string | Yes | Address of the target device.|
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2900003 | Bluetooth switch is off. |
+|2900004 | Profile is not supported. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+try {
+ let a2dpSrc = bluetoothManager.getProfileInstance(bluetoothManager.ProfileId.PROFILE_A2DP_SOURCE) as bluetoothManager.A2dpSourceProfile;
+ a2dpSrc.connect('XX:XX:XX:XX:XX:XX');
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+### disconnect
+
+disconnect(device: string): void
+
+Disconnects an A2DP connection.
+
+**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| ------ | ------ | ---- | ------- |
+| device | string | Yes | Address of the target device.|
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2900003 | Bluetooth switch is off. |
+|2900004 | Profile is not supported. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+try {
+ let a2dpSrc = bluetoothManager.getProfileInstance(bluetoothManager.ProfileId.PROFILE_A2DP_SOURCE) as bluetoothManager.A2dpSourceProfile;
+ a2dpSrc.disconnect('XX:XX:XX:XX:XX:XX');
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+### on('connectionStateChange')
+
+on(type: "connectionStateChange", callback: Callback<[StateChangeParam](#StateChangeParam)>): void
+
+Subscribes to the A2DP connection state change events.
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| -------- | ---------------------------------------- | ---- | ---------------------------------------- |
+| type | string | Yes | Event type. The value **connectionStateChange** indicates an A2DP connection state change event.|
+| callback | Callback<[StateChangeParam](#StateChangeParam)> | Yes | Callback invoked to return the A2DP connection state change event. |
+
+**Return value**
+
+No value is returned.
+
+**Example**
+
+```js
+function onReceiveEvent(data) {
+ console.info('a2dp state = '+ JSON.stringify(data));
+}
+let a2dpSrc = bluetoothManager.getProfileInstance(bluetoothManager.ProfileId.PROFILE_A2DP_SOURCE) as bluetoothManager.A2dpSourceProfile;
+a2dpSrc.on('connectionStateChange', onReceiveEvent);
+```
+
+
+### off('connectionStateChange')
+
+off(type: "connectionStateChange", callback?: Callback<[StateChangeParam](#StateChangeParam)>): void
+
+Unsubscribes from the A2DP connection state change events.
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| -------- | ---------------------------------------- | ---- | ---------------------------------------- |
+| type | string | Yes | Event type. The value **connectionStateChange** indicates an A2DP connection state change event.|
+| callback | Callback<[StateChangeParam](#StateChangeParam)> | No | Callback for the A2DP connection state change event. |
+
+**Return value**
+
+No value is returned.
+
+**Example**
+
+```js
+function onReceiveEvent(data) {
+ console.info('a2dp state = '+ JSON.stringify(data));
+}
+let a2dpSrc = bluetoothManager.getProfileInstance(bluetoothManager.ProfileId.PROFILE_A2DP_SOURCE) as bluetoothManager.A2dpSourceProfile;
+a2dpSrc.on('connectionStateChange', onReceiveEvent);
+a2dpSrc.off('connectionStateChange', onReceiveEvent);
+```
+
+
+### getPlayingState
+
+getPlayingState(device: string): PlayingState
+
+Obtains the playing state of a device.
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| ------ | ------ | ---- | ------- |
+| device | string | Yes | Address of the target device.|
+
+**Return value**
+
+| Type | Description |
+| ----------------------------- | ---------- |
+| [PlayingState](#PlayingState) | Playing state of the remote device obtained.|
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2900003 | Bluetooth switch is off. |
+|2900004 | Profile is not supported. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+try {
+ let a2dpSrc = bluetoothManager.getProfileInstance(bluetoothManager.ProfileId.PROFILE_A2DP_SOURCE) as bluetoothManager.A2dpSourceProfile;
+ let state = a2dpSrc.getPlayingState('XX:XX:XX:XX:XX:XX');
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+## HandsFreeAudioGatewayProfile
+
+Before using an API of **HandsFreeAudioGatewayProfile**, you need to create an instance of this class by using **getProfile()**.
+
+
+### connect
+
+connect(device: string): void
+
+Sets up a Hands-free Profile (HFP) connection of a device.
+
+**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| ------ | ------ | ---- | ------- |
+| device | string | Yes | Address of the target device.|
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2900003 | Bluetooth switch is off. |
+|2900004 | Profile is not supported. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+try {
+ let hfpAg = bluetoothManager.getProfileInstance(bluetoothManager.ProfileId.PROFILE_HANDS_FREE_AUDIO_GATEWAY) as bluetoothManager.HandsFreeAudioGatewayProfile;
+ hfpAg.connect('XX:XX:XX:XX:XX:XX');
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+### disconnect
+
+disconnect(device: string): void
+
+Disconnects the HFP connection of a device.
+
+**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| ------ | ------ | ---- | ------- |
+| device | string | Yes | Address of the target device.|
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2900003 | Bluetooth switch is off. |
+|2900004 | Profile is not supported. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+try {
+ let hfpAg = bluetoothManager.getProfileInstance(bluetoothManager.ProfileId.PROFILE_HANDS_FREE_AUDIO_GATEWAY) as bluetoothManager.HandsFreeAudioGatewayProfile;
+ hfpAg.disconnect('XX:XX:XX:XX:XX:XX');
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+### on('connectionStateChange')
+
+on(type: "connectionStateChange", callback: Callback<[StateChangeParam](#StateChangeParam)>): void
+
+Subscribes to the HFP connection state change events.
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| -------- | ---------------------------------------- | ---- | ---------------------------------------- |
+| type | string | Yes | Event type. The value **connectionStateChange** indicates an HFP connection state change event. |
+| callback | Callback<[StateChangeParam](#StateChangeParam)> | Yes | Callback invoked to return the HFP connection state change event. |
+
+**Example**
+
+```js
+function onReceiveEvent(data) {
+ console.info('hfp state = '+ JSON.stringify(data));
+}
+let hfpAg = bluetoothManager.getProfileInstance(bluetoothManager.ProfileId.PROFILE_HANDS_FREE_AUDIO_GATEWAY) as
+ bluetoothManager.HandsFreeAudioGatewayProfile;
+hfpAg.on('connectionStateChange', onReceiveEvent);
+```
+
+
+### off('connectionStateChange')
+
+off(type: "connectionStateChange", callback?: Callback<[StateChangeParam](#StateChangeParam)>): void
+
+Unsubscribes from the HFP connection state change events.
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| -------- | ---------------------------------------- | ---- | ---------------------------------------- |
+| type | string | Yes | Event type. The value **connectionStateChange** indicates an HFP connection state change event. |
+| callback | Callback<[StateChangeParam](#StateChangeParam)> | No | Callback for the HFP connection state change event. |
+
+**Example**
+
+```js
+function onReceiveEvent(data) {
+ console.info('hfp state = '+ JSON.stringify(data));
+}
+let hfpAg = bluetoothManager.getProfileInstance(bluetoothManager.ProfileId.PROFILE_HANDS_FREE_AUDIO_GATEWAY) as
+ bluetoothManager.HandsFreeAudioGatewayProfile;
+hfpAg.on('connectionStateChange', onReceiveEvent);
+hfpAg.off('connectionStateChange', onReceiveEvent);
+```
+
+
+## HidHostProfile
+
+Before using an API of **HidHostProfile**, you need to create an instance of this class by using **getProfile()**.
+
+
+### connect
+
+connect(device: string): void
+
+Connects to the HidHost service of a device.
+
+**System API**: This is a system API.
+
+**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| ------ | ------ | ---- | ------- |
+| device | string | Yes | Address of the target device.|
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2900003 | Bluetooth switch is off. |
+|2900004 | Profile is not supported. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+try {
+ let hidHostProfile = bluetoothManager.getProfileInst(bluetoothManager.ProfileId.PROFILE_HID_HOST) as bluetoothManager.HidHostProfile;
+ hidHostProfile.connect('XX:XX:XX:XX:XX:XX');
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+### disconnect
+
+disconnect(device: string): void
+
+Disconnects from the HidHost service of a device.
+
+**System API**: This is a system API.
+
+**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| ------ | ------ | ---- | ------- |
+| device | string | Yes | Address of the target device.|
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2900003 | Bluetooth switch is off. |
+|2900004 | Profile is not supported. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+try {
+ let hidHostProfile = bluetoothManager.getProfileInst(bluetoothManager.ProfileId.PROFILE_HID_HOST) as bluetoothManager.HidHostProfile;
+ hidHostProfile.disconnect('XX:XX:XX:XX:XX:XX');
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+### on('connectionStateChange')
+
+on(type: "connectionStateChange", callback: Callback<[StateChangeParam](#StateChangeParam)>): void
+
+Subscribes to the HidHost connection state change events.
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| -------- | ---------------------------------------- | ---- | ---------------------------------------- |
+| type | string | Yes | Event type. The value **connectionStateChange** indicates a HidHost connection state change event. |
+| callback | Callback<[StateChangeParam](#StateChangeParam)> | Yes | Callback invoked to return the HidHost connection state change event. |
+
+**Example**
+
+```js
+function onReceiveEvent(data) {
+ console.info('hidHost state = '+ JSON.stringify(data));
+}
+let hidHost = bluetoothManager.getProfileInst(bluetoothManager.ProfileId.PROFILE_HID_HOST) as bluetoothManager.HidHostProfile;
+hidHost.on('connectionStateChange', onReceiveEvent);
+```
+
+
+### off('connectionStateChange')
+
+off(type: "connectionStateChange", callback?: Callback<[StateChangeParam](#StateChangeParam)>): void
+
+Unsubscribes from the HidHost connection state change events.
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory| Description |
+| -------- | ----------------------------------------------------- | ---- | --------------------------------------------------------- |
+| type | string | Yes | Event type. The value **connectionStateChange** indicates a HidHost connection state change event. |
+| callback | Callback<[StateChangeParam](#StateChangeParam)> | No | Callback for the HidHost connection state change event. |
+
+**Example**
+
+```js
+function onReceiveEvent(data) {
+ console.info('hidHost state = '+ JSON.stringify(data));
+}
+let hidHost = bluetoothManager.getProfileInst(bluetoothManager.ProfileId.PROFILE_HID_HOST) as bluetoothManager.HidHostProfile;
+hidHost.on('connectionStateChange', onReceiveEvent);
+hidHost.off('connectionStateChange', onReceiveEvent);
+```
+
+
+## PanProfile
+
+Before using an API of **PanProfile**, you need to create an instance of this class by using **getProfile()**.
+
+
+### disconnect
+
+disconnect(device: string): void
+
+Disconnects from the Personal Area Network (PAN) service of a device.
+
+**System API**: This is a system API.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| ------ | ------ | ---- | ------- |
+| device | string | Yes | Address of the target device.|
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2900003 | Bluetooth switch is off. |
+|2900004 | Profile is not supported. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+try {
+ let panProfile = bluetoothManager.getProfileInst(bluetoothManager.ProfileId.PROFILE_PAN_NETWORK) as bluetoothManager.PanProfile;
+ panProfile.disconnect('XX:XX:XX:XX:XX:XX');
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+### on('connectionStateChange')
+
+on(type: "connectionStateChange", callback: Callback<[StateChangeParam](#StateChangeParam)>): void
+
+Subscribes to the PAN connection state change events.
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| -------- | ---------------------------------------- | ---- | ---------------------------------------- |
+| type | string | Yes | Event type. The value **connectionStateChange** indicates a PAN connection state change event. |
+| callback | Callback<[StateChangeParam](#StateChangeParam)> | Yes | Callback invoked to return the PAN connection state change event. |
+
+**Example**
+
+```js
+function onReceiveEvent(data) {
+ console.info('pan state = '+ JSON.stringify(data));
+}
+let panProfile = bluetoothManager.getProfileInst(bluetoothManager.ProfileId.PROFILE_PAN_NETWORK) as bluetoothManager.PanProfile;
+panProfile.on('connectionStateChange', onReceiveEvent);
+```
+
+
+### off('connectionStateChange')
+
+off(type: "connectionStateChange", callback?: Callback<[StateChangeParam](#StateChangeParam)>): void
+
+Unsubscribes from the PAN connection state change events.
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory| Description |
+| -------- | ----------------------------------------------------- | ---- | --------------------------------------------------------- |
+| type | string | Yes | Event type. The value **connectionStateChange** indicates a PAN connection state change event. |
+| callback | Callback<[StateChangeParam](#StateChangeParam)> | No | Callback for the PAN connection state change event. |
+
+**Example**
+
+```js
+function onReceiveEvent(data) {
+ console.info('pan state = '+ JSON.stringify(data));
+}
+let panProfile = bluetoothManager.getProfileInst(bluetoothManager.ProfileId.PROFILE_PAN_NETWORK) as bluetoothManager.PanProfile;
+panProfile.on('connectionStateChange', onReceiveEvent);
+panProfile.off('connectionStateChange', onReceiveEvent);
+```
+
+
+### setTethering
+
+setTethering(enable: boolean): void
+
+Sets tethering.
+
+**System API**: This is a system API.
+
+**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| ------ | ------ | ---- | ------- |
+| value | boolean | Yes | Whether to set tethering over a Bluetooth PAN.|
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2900003 | Bluetooth switch is off. |
+|2900004 | Profile is not supported. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+try {
+ let panProfile = bluetoothManager.getProfileInst(bluetoothManager.ProfileId.PROFILE_PAN_NETWORK) as bluetoothManager.PanProfile;
+ panProfile.setTethering(true);
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+### isTetheringOn
+
+isTetheringOn(): boolean
+
+Obtains the network sharing status.
+
+**System API**: This is a system API.
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Return value**
+
+| Type | Description |
+| --------------------- | --------------------------------- |
+| boolean | Returns **true** if tethering is available over a Bluetooth PAN; return **false** otherwise.|
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2900003 | Bluetooth switch is off. |
+|2900004 | Profile is not supported. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+try {
+ let panProfile = bluetoothManager.getProfileInst(bluetoothManager.ProfileId.PROFILE_PAN_NETWORK) as bluetoothManager.PanProfile;
+ let ret = panProfile.isTetheringOn();
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+## GattServer
+
+Implements the Generic Attribute Profile (GATT) server. Before using an API of this class, you need to create a **GattServer** instance using **createGattServer()**.
+
+
+### startAdvertising
+
+startAdvertising(setting: AdvertiseSetting, advData: AdvertiseData, advResponse?: AdvertiseData): void
+
+Starts BLE advertising.
+
+**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| ----------- | ------------------------------------- | ---- | -------------- |
+| setting | [AdvertiseSetting](#advertisesetting) | Yes | Settings related to BLE advertising. |
+| advData | [AdvertiseData](#advertisedata) | Yes | Content of the BLE advertisement packet. |
+| advResponse | [AdvertiseData](#advertisedata) | No | Response to the BLE scan request.|
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2900003 | Bluetooth switch is off. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+let manufactureValueBuffer = new Uint8Array(4);
+manufactureValueBuffer[0] = 1;
+manufactureValueBuffer[1] = 2;
+manufactureValueBuffer[2] = 3;
+manufactureValueBuffer[3] = 4;
+
+let serviceValueBuffer = new Uint8Array(4);
+serviceValueBuffer[0] = 4;
+serviceValueBuffer[1] = 6;
+serviceValueBuffer[2] = 7;
+serviceValueBuffer[3] = 8;
+console.info('manufactureValueBuffer = '+ JSON.stringify(manufactureValueBuffer));
+console.info('serviceValueBuffer = '+ JSON.stringify(serviceValueBuffer));
+let gattServer = bluetoothManager.BLE.createGattServer();
+try {
+ gattServer.startAdvertising({
+ interval:150,
+ txPower:60,
+ connectable:true,
+ },{
+ serviceUuids:["00001888-0000-1000-8000-00805f9b34fb"],
+ manufactureData:[{
+ manufactureId:4567,
+ manufactureValue:manufactureValueBuffer.buffer
+ }],
+ serviceData:[{
+ serviceUuid:"00001888-0000-1000-8000-00805f9b34fb",
+ serviceValue:serviceValueBuffer.buffer
+ }],
+ },{
+ serviceUuids:["00001889-0000-1000-8000-00805f9b34fb"],
+ manufactureData:[{
+ manufactureId:1789,
+ manufactureValue:manufactureValueBuffer.buffer
+ }],
+ serviceData:[{
+ serviceUuid:"00001889-0000-1000-8000-00805f9b34fb",
+ serviceValue:serviceValueBuffer.buffer
+ }],
+ });
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+### stopAdvertising
+
+stopAdvertising(): void
+
+Stops BLE advertising.
+
+**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2900003 | Bluetooth switch is off. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+let server = bluetoothManager.BLE.createGattServer();
+try {
+ server.stopAdvertising();
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+### addService
+
+addService(service: GattService): void
+
+Adds a service to this GATT server.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| ------- | --------------------------- | ---- | ------------------------ |
+| service | [GattService](#gattservice) | Yes | Service to add. Settings related to BLE advertising.|
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2900003 | Bluetooth switch is off. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+// Create descriptors.
+let descriptors = [];
+let arrayBuffer = new ArrayBuffer(8);
+let descV = new Uint8Array(arrayBuffer);
+descV[0] = 11;
+let descriptor = {serviceUuid: '00001810-0000-1000-8000-00805F9B34FB',
+ characteristicUuid: '00001820-0000-1000-8000-00805F9B34FB',
+ descriptorUuid: '00002902-0000-1000-8000-00805F9B34FB', descriptorValue: arrayBuffer};
+descriptors[0] = descriptor;
+
+// Create characteristics.
+let characteristics = [];
+let arrayBufferC = new ArrayBuffer(8);
+let cccV = new Uint8Array(arrayBufferC);
+cccV[0] = 1;
+let characteristic = {serviceUuid: '00001810-0000-1000-8000-00805F9B34FB',
+ characteristicUuid: '00001820-0000-1000-8000-00805F9B34FB', characteristicValue: arrayBufferC, descriptors:descriptors};
+let characteristicN = {serviceUuid: '00001810-0000-1000-8000-00805F9B34FB',
+ characteristicUuid: '00001821-0000-1000-8000-00805F9B34FB', characteristicValue: arrayBufferC, descriptors:descriptors};
+characteristics[0] = characteristic;
+
+// Create a gattService instance.
+let gattService = {serviceUuid:'00001810-0000-1000-8000-00805F9B34FB', isPrimary: true, characteristics:characteristics, includeServices:[]};
+
+let gattServer = bluetoothManager.BLE.createGattServer();
+try {
+ gattServer.addService(gattService);
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+### removeService
+
+removeService(serviceUuid: string): void
+
+Removes a service from this GATT server.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| ----------- | ------ | ---- | ---------------------------------------- |
+| serviceUuid | string | Yes | Universally unique identifier (UUID) of the service to remove, for example, **00001810-0000-1000-8000-00805F9B34FB**.|
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2900003 | Bluetooth switch is off. |
+|2900004 | Profile is not supported. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+let server = bluetoothManager.BLE.createGattServer();
+try {
+ server.removeService('00001810-0000-1000-8000-00805F9B34FB');
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+### close
+
+close(): void
+
+Closes this GATT server to unregister it from the protocol stack. After this method is called, this [GattServer](#gattserver) cannot be used.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2900003 | Bluetooth switch is off. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+let server = bluetoothManager.BLE.createGattServer();
+try {
+ server.close();
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+### notifyCharacteristicChanged
+
+notifyCharacteristicChanged(deviceId: string, notifyCharacteristic: NotifyCharacteristic): void
+
+Notifies the connected client device when a characteristic value changes.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| -------------------- | ---------------------------------------- | ---- | --------------------------------------- |
+| deviceId | string | Yes | Address of the client that receives notifications, for example, XX:XX:XX:XX:XX:XX.|
+| notifyCharacteristic | [NotifyCharacteristic](#notifycharacteristic) | Yes | New characteristic value. |
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2900003 | Bluetooth switch is off. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+// Create descriptors.
+let descriptors = [];
+let arrayBuffer = new ArrayBuffer(8);
+let descV = new Uint8Array(arrayBuffer);
+descV[0] = 11;
+let descriptor = {serviceUuid: '00001810-0000-1000-8000-00805F9B34FB',
+ characteristicUuid: '00001820-0000-1000-8000-00805F9B34FB',
+ descriptorUuid: '00002902-0000-1000-8000-00805F9B34FB', descriptorValue: arrayBuffer};
+descriptors[0] = descriptor;
+let arrayBufferC = new ArrayBuffer(8);
+let characteristic = {serviceUuid: '00001810-0000-1000-8000-00805F9B34FB',
+ characteristicUuid: '00001820-0000-1000-8000-00805F9B34FB', characteristicValue: arrayBufferC, descriptors:descriptors};
+let notifyCharacteristic = {serviceUuid: '00001810-0000-1000-8000-00805F9B34FB',
+ characteristicUuid: '00001821-0000-1000-8000-00805F9B34FB', characteristicValue: characteristic.characteristicValue, confirm: false};
+let server = bluetoothManager.BLE.createGattServer();
+try {
+ server.notifyCharacteristicChanged('XX:XX:XX:XX:XX:XX', notifyCharacteristic);
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+### sendResponse
+
+sendResponse(serverResponse: ServerResponse): void
+
+Sends a response to a read or write request from the GATT client.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| -------------- | --------------------------------- | ---- | --------------- |
+| serverResponse | [ServerResponse](#serverresponse) | Yes | Response returned by the GATT server.|
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2900003 | Bluetooth switch is off. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+/* send response */
+let arrayBufferCCC = new ArrayBuffer(8);
+let cccValue = new Uint8Array(arrayBufferCCC);
+cccValue[0] = 1123;
+let serverResponse = {
+ "deviceId": "XX:XX:XX:XX:XX:XX",
+ "transId": 0,
+ "status": 0,
+ "offset": 0,
+ "value": arrayBufferCCC,
+};
+
+let gattServer = bluetoothManager.BLE.createGattServer();
+try {
+ gattServer.sendResponse(serverResponse);
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+### on('characteristicRead')
+
+on(type: "characteristicRead", callback: Callback<CharacteristicReadRequest>): void
+
+Subscribes to the characteristic read request events.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| -------- | ---------------------------------------- | ---- | ------------------------------------- |
+| type | string | Yes | Event type. The value **characteristicRead** indicates a characteristic read request event.|
+| callback | Callback<[CharacteristicReadRequest](#characteristicreadrequest)> | Yes | Callback invoked to return a characteristic read request event from the GATT client. |
+
+**Example**
+
+```js
+let arrayBufferCCC = new ArrayBuffer(8);
+let cccValue = new Uint8Array(arrayBufferCCC);
+cccValue[0] = 1123;
+function ReadCharacteristicReq(CharacteristicReadRequest) {
+ let deviceId = CharacteristicReadRequest.deviceId;
+ let transId = CharacteristicReadRequest.transId;
+ let offset = CharacteristicReadRequest.offset;
+ let characteristicUuid = CharacteristicReadRequest.characteristicUuid;
+
+ let serverResponse = {deviceId: deviceId, transId: transId, status: 0, offset: offset, value:arrayBufferCCC};
+
+ try {
+ gattServer.sendResponse(serverResponse);
+ } catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+ }
+}
+
+let gattServer = bluetoothManager.BLE.createGattServer();
+gattServer.on("characteristicRead", ReadCharacteristicReq);
+```
+
+
+### off('characteristicRead')
+
+off(type: "characteristicRead", callback?: Callback<CharacteristicReadRequest>): void
+
+Unsubscribes from the characteristic read request events.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| -------- | ---------------------------------------- | ---- | ---------------------------------------- |
+| type | string | Yes | Event type. The value **characteristicRead** indicates a characteristic read request event. |
+| callback | Callback<[CharacteristicReadRequest](#characteristicreadrequest)> | No | Callback for the characteristic read request event. If this parameter is not set, this method unsubscribes from all callbacks corresponding to **type**.|
+
+**Example**
+
+```js
+let gattServer = bluetoothManager.BLE.createGattServer();
+gattServer.off("characteristicRead");
+```
+
+
+### on('characteristicWrite')
+
+on(type: "characteristicWrite", callback: Callback<CharacteristicWriteRequest>): void
+
+Subscribes to the characteristic write request events.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| -------- | ---------------------------------------- | ---- | -------------------------------------- |
+| type | string | Yes | Event type. The value **characteristicWrite** indicates a characteristic write request event.|
+| callback | Callback<[CharacteristicWriteRequest](#characteristicwriterequest)> | Yes | Callback invoked to return a characteristic write request from the GATT client. |
+
+**Example**
+
+```js
+let arrayBufferCCC = new ArrayBuffer(8);
+let cccValue = new Uint8Array(arrayBufferCCC);
+function WriteCharacteristicReq(CharacteristicWriteRequest) {
+ let deviceId = CharacteristicWriteRequest.deviceId;
+ let transId = CharacteristicWriteRequest.transId;
+ let offset = CharacteristicWriteRequest.offset;
+ let isPrep = CharacteristicWriteRequest.isPrep;
+ let needRsp = CharacteristicWriteRequest.needRsp;
+ let value = new Uint8Array(CharacteristicWriteRequest.value);
+ let characteristicUuid = CharacteristicWriteRequest.characteristicUuid;
+
+ cccValue[0] = value[0];
+ let serverResponse = {deviceId: deviceId, transId: transId, status: 0, offset: offset, value:arrayBufferCCC};
+
+ try {
+ gattServer.sendResponse(serverResponse);
+ } catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+ }
+}
+
+let gattServer = bluetoothManager.BLE.createGattServer();
+gattServer.on("characteristicWrite", WriteCharacteristicReq);
+```
+
+
+### off('characteristicWrite')
+
+off(type: "characteristicWrite", callback?: Callback<CharacteristicWriteRequest>): void
+
+Unsubscribes from the characteristic write request events.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| -------- | ---------------------------------------- | ---- | ---------------------------------------- |
+| type | string | Yes | Event type. The value **characteristicWrite** indicates a characteristic write request event. |
+| callback | Callback<[CharacteristicWriteRequest](#characteristicwriterequest)> | No | Callback for the characteristic write request event. If this parameter is not set, this method unsubscribes from all callbacks corresponding to **type**.|
+
+**Example**
+
+```js
+let gattServer = bluetoothManager.BLE.createGattServer();
+gattServer.off("characteristicWrite");
+```
+
+
+### on('descriptorRead')
+
+on(type: "descriptorRead", callback: Callback<DescriptorReadRequest>): void
+
+Subscribes to the descriptor read request events.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| -------- | ---------------------------------------- | ---- | --------------------------------- |
+| type | string | Yes | Event type. The value **descriptorRead** indicates a descriptor read request event.|
+| callback | Callback<[DescriptorReadRequest](#descriptorreadrequest)> | Yes | Callback invoked to return a descriptor read request event from the GATT client. |
+
+**Example**
+
+```js
+let arrayBufferDesc = new ArrayBuffer(8);
+let descValue = new Uint8Array(arrayBufferDesc);
+descValue[0] = 1101;
+function ReadDescriptorReq(DescriptorReadRequest) {
+ let deviceId = DescriptorReadRequest.deviceId;
+ let transId = DescriptorReadRequest.transId;
+ let offset = DescriptorReadRequest.offset;
+ let descriptorUuid = DescriptorReadRequest.descriptorUuid;
+
+ let serverResponse = {deviceId: deviceId, transId: transId, status: 0, offset: offset, value:arrayBufferDesc};
+
+ try {
+ gattServer.sendResponse(serverResponse);
+ } catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+ }
+}
+
+let gattServer = bluetoothManager.BLE.createGattServer();
+gattServer.on("descriptorRead", ReadDescriptorReq);
+```
+
+
+### off('descriptorRead')
+
+off(type: "descriptorRead", callback?: Callback<DescriptorReadRequest>): void
+
+Unsubscribes from the descriptor read request events.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| -------- | ---------------------------------------- | ---- | ---------------------------------------- |
+| type | string | Yes | Event type. The value **descriptorRead** indicates a descriptor read request event. |
+| callback | Callback<[DescriptorReadRequest](#descriptorreadrequest)> | No | Callback for the descriptor read request event. If this parameter is not set, this method unsubscribes from all callbacks corresponding to **type**.|
+
+**Example**
+
+```js
+let gattServer = bluetoothManager.BLE.createGattServer();
+gattServer.off("descriptorRead");
+```
+
+
+### on('descriptorWrite')
+
+on(type: "descriptorWrite", callback: Callback<DescriptorWriteRequest>): void
+
+Subscribes to the descriptor write request events.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| -------- | ---------------------------------------- | ---- | ---------------------------------- |
+| type | string | Yes | Event type. The value **descriptorWrite** indicates a descriptor write request event.|
+| callback | Callback<[DescriptorWriteRequest](#descriptorwriterequest)> | Yes | Callback invoked to return a descriptor write request from the GATT client. |
+
+**Example**
+
+```js
+let arrayBufferDesc = new ArrayBuffer(8);
+let descValue = new Uint8Array(arrayBufferDesc);
+function WriteDescriptorReq(DescriptorWriteRequest) {
+ let deviceId = DescriptorWriteRequest.deviceId;
+ let transId = DescriptorWriteRequest.transId;
+ let offset = DescriptorWriteRequest.offset;
+ let isPrep = DescriptorWriteRequest.isPrep;
+ let needRsp = DescriptorWriteRequest.needRsp;
+ let value = new Uint8Array(DescriptorWriteRequest.value);
+ let descriptorUuid = DescriptorWriteRequest.descriptorUuid;
+
+ descValue[0] = value[0];
+ let serverResponse = {deviceId: deviceId, transId: transId, status: 0, offset: offset, value:arrayBufferDesc};
+
+ try {
+ gattServer.sendResponse(serverResponse);
+ } catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+ }
+}
+
+let gattServer = bluetoothManager.BLE.createGattServer();
+gattServer.on("descriptorRead", WriteDescriptorReq);
+```
+
+
+### off('descriptorWrite')
+
+off(type: "descriptorWrite", callback?: Callback<DescriptorWriteRequest>): void
+
+Unsubscribes from the descriptor write request events.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| -------- | ---------------------------------------- | ---- | ---------------------------------------- |
+| type | string | Yes | Event type. The value **descriptorWrite** indicates a descriptor write request event. |
+| callback | Callback<[DescriptorWriteRequest](#descriptorwriterequest)> | No | Callback for the descriptor write request event. If this parameter is not set, this method unsubscribes from all callbacks corresponding to **type**.|
+
+**Example**
+
+```js
+let gattServer = bluetoothManager.BLE.createGattServer();
+gattServer.off("descriptorWrite");
+```
+
+
+### on('connectStateChange')
+
+on(type: "connectStateChange", callback: Callback<BLEConnectChangedState>): void
+
+Subscribes to the BLE connection state change events.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| -------- | ---------------------------------------- | ---- | ---------------------------------------- |
+| type | string | Yes | Event type. The value **connectStateChange** indicates a BLE connection state change event.|
+| callback | Callback<[BLEConnectChangedState](#bleconnectchangedstate)> | Yes | Callback invoked to return the BLE connection state. |
+
+**Example**
+
+```js
+function Connected(BLEConnectChangedState) {
+ let deviceId = BLEConnectChangedState.deviceId;
+ let status = BLEConnectChangedState.state;
+}
+
+let gattServer = bluetoothManager.BLE.createGattServer();
+gattServer.on("connectStateChange", Connected);
+```
+
+
+### off('connectStateChange')
+
+off(type: "connectStateChange", callback?: Callback<BLEConnectChangedState>): void
+
+Unsubscribes from the BLE connection state change events.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| -------- | ---------------------------------------- | ---- | ---------------------------------------- |
+| type | string | Yes | Event type. The value **connectStateChange** indicates a BLE connection state change event.|
+| callback | Callback<[BLEConnectChangedState](#bleconnectchangedstate)> | No | Callback for the BLE connection state change event. If this parameter is not set, this method unsubscribes from all callbacks corresponding to **type**.|
+
+**Example**
+
+```js
+let gattServer = bluetoothManager.BLE.createGattServer();
+gattServer.off("connectStateChange");
+```
+
+
+## GattClientDevice
+
+Implements the GATT client. Before using an API of this class, you must create a **GattClientDevice** instance using **createGattClientDevice(deviceId: string)**.
+
+
+### connect
+
+connect(): void
+
+Initiates a connection to the remote BLE device.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2900003 | Bluetooth switch is off. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+try {
+ let device = bluetoothManager.BLE.createGattClientDevice('XX:XX:XX:XX:XX:XX');
+ device.connect();
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+### disconnect
+
+disconnect(): void
+
+Disconnects from the remote BLE device.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2900003 | Bluetooth switch is off. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+try {
+ let device = bluetoothManager.BLE.createGattClientDevice('XX:XX:XX:XX:XX:XX');
+ device.disconnect();
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+### close
+
+close(): void
+
+Closes this GATT client to unregister it from the protocol stack. After this method is called, this [GattClientDevice](#gattclientdevice) instance cannot be used.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2900003 | Bluetooth switch is off. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+try {
+ let device = bluetoothManager.BLE.createGattClientDevice('XX:XX:XX:XX:XX:XX');
+ device.close();
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+
+
+### getServices
+
+getServices(callback: AsyncCallback<Array<GattService>>): void
+
+Obtains all services of the remote BLE device. This API uses an asynchronous callback to return the result.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| -------- | ---------------------------------------- | ---- | ------------------------ |
+| callback | AsyncCallback<Array<[GattService](#gattservice)>> | Yes | Callback invoked to return the services obtained.|
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+// Callback
+function getServices(code, gattServices) {
+ if (code.code == 0) {
+ let services = gattServices;
+ console.log('bluetooth code is ' + code.code);
+ console.log("bluetooth services size is ", services.length);
+
+ for (let i = 0; i < services.length; i++) {
+ console.log('bluetooth serviceUuid is ' + services[i].serviceUuid);
+ }
+ }
+}
+
+try {
+ let device = bluetoothManager.BLE.createGattClientDevice('XX:XX:XX:XX:XX:XX');
+ device.connect();
+ device.getServices(getServices);
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+### getServices
+
+getServices(): Promise<Array<GattService>>
+
+Obtains all services of the remote BLE device. This API uses a promise to return the result.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Return value**
+
+| Type | Description |
+| ---------------------------------------- | --------------------------- |
+| Promise<Array<[GattService](#gattservice)>> | Promise used to return the services obtained.|
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+// Promise
+try {
+ let device = bluetoothManager.BLE.createGattClientDevice('XX:XX:XX:XX:XX:XX');
+ device.connect();
+ device.getServices().then(result => {
+ console.info("getServices successfully:" + JSON.stringify(result));
+ });
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+### readCharacteristicValue
+
+readCharacteristicValue(characteristic: BLECharacteristic, callback: AsyncCallback<BLECharacteristic>): void
+
+Reads the characteristic value of the specific service of the remote BLE device. This API uses an asynchronous callback to return the result.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| -------------- | ---------------------------------------- | ---- | ----------------------- |
+| characteristic | [BLECharacteristic](#blecharacteristic) | Yes | Characteristic value to read. |
+| callback | AsyncCallback<[BLECharacteristic](#blecharacteristic)> | Yes | Callback invoked to return the characteristic value read.|
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2901000 | Read forbidden. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+function readCcc(code, BLECharacteristic) {
+ if (code.code != 0) {
+ return;
+ }
+ console.log('bluetooth characteristic uuid: ' + BLECharacteristic.characteristicUuid);
+ let value = new Uint8Array(BLECharacteristic.characteristicValue);
+ console.log('bluetooth characteristic value: ' + value[0] +','+ value[1]+','+ value[2]+','+ value[3]);
+}
+
+let descriptors = [];
+let bufferDesc = new ArrayBuffer(8);
+let descV = new Uint8Array(bufferDesc);
+descV[0] = 11;
+let descriptor = {serviceUuid: '00001810-0000-1000-8000-00805F9B34FB',
+characteristicUuid: '00001820-0000-1000-8000-00805F9B34FB',
+descriptorUuid: '00002903-0000-1000-8000-00805F9B34FB', descriptorValue: bufferDesc};
+descriptors[0] = descriptor;
+
+let bufferCCC = new ArrayBuffer(8);
+let cccV = new Uint8Array(bufferCCC);
+cccV[0] = 1;
+let characteristic = {serviceUuid: '00001810-0000-1000-8000-00805F9B34FB',
+characteristicUuid: '00001820-0000-1000-8000-00805F9B34FB',
+characteristicValue: bufferCCC, descriptors:descriptors};
+
+try {
+ let device = bluetoothManager.BLE.createGattClientDevice('XX:XX:XX:XX:XX:XX');
+ device.readCharacteristicValue(characteristic, readCcc);
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+### readCharacteristicValue
+
+readCharacteristicValue(characteristic: BLECharacteristic): Promise<BLECharacteristic>
+
+Reads the characteristic value of the specific service of the remote BLE device. This API uses an asynchronous callback to return the result.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| -------------- | --------------------------------------- | ---- | -------- |
+| characteristic | [BLECharacteristic](#blecharacteristic) | Yes | Characteristic value to read.|
+
+**Return value**
+
+| Type | Description |
+| ---------------------------------------- | -------------------------- |
+| Promise<[BLECharacteristic](#blecharacteristic)> | Promise used to return the characteristic value read.|
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2901000 | Read forbidden. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+let descriptors = [];
+let bufferDesc = new ArrayBuffer(8);
+let descV = new Uint8Array(bufferDesc);
+descV[0] = 11;
+let descriptor = {serviceUuid: '00001810-0000-1000-8000-00805F9B34FB',
+characteristicUuid: '00001820-0000-1000-8000-00805F9B34FB',
+descriptorUuid: '00002903-0000-1000-8000-00805F9B34FB', descriptorValue: bufferDesc};
+descriptors[0] = descriptor;
+
+let bufferCCC = new ArrayBuffer(8);
+let cccV = new Uint8Array(bufferCCC);
+cccV[0] = 1;
+let characteristic = {serviceUuid: '00001810-0000-1000-8000-00805F9B34FB',
+characteristicUuid: '00001820-0000-1000-8000-00805F9B34FB',
+characteristicValue: bufferCCC, descriptors:descriptors};
+
+try {
+ let device = bluetoothManager.BLE.createGattClientDevice('XX:XX:XX:XX:XX:XX');
+ device.readCharacteristicValue(characteristic);
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+### readDescriptorValue
+
+readDescriptorValue(descriptor: BLEDescriptor, callback: AsyncCallback<BLEDescriptor>): void
+
+Reads the descriptor contained in the specific characteristic of the remote BLE device. This API uses an asynchronous callback to return the result.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| ---------- | ---------------------------------------- | ---- | ----------------------- |
+| descriptor | [BLEDescriptor](#bledescriptor) | Yes | Descriptor to read. |
+| callback | AsyncCallback<[BLEDescriptor](#bledescriptor)> | Yes | Callback invoked to return the descriptor read.|
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2901000 | Read forbidden. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+function readDesc(code, BLEDescriptor) {
+ if (code.code != 0) {
+ return;
+ }
+ console.log('bluetooth descriptor uuid: ' + BLEDescriptor.descriptorUuid);
+ let value = new Uint8Array(BLEDescriptor.descriptorValue);
+ console.log('bluetooth descriptor value: ' + value[0] +','+ value[1]+','+ value[2]+','+ value[3]);
+}
+
+let bufferDesc = new ArrayBuffer(8);
+let descV = new Uint8Array(bufferDesc);
+descV[0] = 11;
+let descriptor = {
+ serviceUuid: '00001810-0000-1000-8000-00805F9B34FB',
+ characteristicUuid: '00001820-0000-1000-8000-00805F9B34FB',
+ descriptorUuid: '00002903-0000-1000-8000-00805F9B34FB',
+ descriptorValue: bufferDesc
+};
+try {
+ let device = bluetoothManager.BLE.createGattClientDevice('XX:XX:XX:XX:XX:XX');
+ device.readDescriptorValue(descriptor, readDesc);
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+### readDescriptorValue
+
+readDescriptorValue(descriptor: BLEDescriptor): Promise<BLEDescriptor>
+
+Reads the descriptor contained in the specific characteristic of the remote BLE device. This API uses an asynchronous callback to return the result.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| ---------- | ------------------------------- | ---- | -------- |
+| descriptor | [BLEDescriptor](#bledescriptor) | Yes | Descriptor to read.|
+
+**Return value**
+
+| Type | Description |
+| ---------------------------------------- | -------------------------- |
+| Promise<[BLEDescriptor](#bledescriptor)> | Promise used to return the descriptor read.|
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2901000 | Read forbidden. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+let bufferDesc = new ArrayBuffer(8);
+let descV = new Uint8Array(bufferDesc);
+descV[0] = 11;
+let descriptor = {
+ serviceUuid: '00001810-0000-1000-8000-00805F9B34FB',
+ characteristicUuid: '00001820-0000-1000-8000-00805F9B34FB',
+ descriptorUuid: '00002903-0000-1000-8000-00805F9B34FB',
+ descriptorValue: bufferDesc
+};
+try {
+ let device = bluetoothManager.BLE.createGattClientDevice('XX:XX:XX:XX:XX:XX');
+ device.readDescriptorValue(descriptor);
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+### writeCharacteristicValue
+
+writeCharacteristicValue(characteristic: BLECharacteristic): void
+
+Writes a characteristic value to the remote BLE device.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| -------------- | --------------------------------------- | ---- | ------------------- |
+| characteristic | [BLECharacteristic](#blecharacteristic) | Yes | Binary value and other parameters of the BLE device characteristic.|
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2901001 | Write forbidden. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+let descriptors = [];
+let bufferDesc = new ArrayBuffer(8);
+let descV = new Uint8Array(bufferDesc);
+descV[0] = 11;
+let descriptor = {serviceUuid: '00001810-0000-1000-8000-00805F9B34FB',
+ characteristicUuid: '00001820-0000-1000-8000-00805F9B34FB',
+ descriptorUuid: '00002903-0000-1000-8000-00805F9B34FB', descriptorValue: bufferDesc};
+descriptors[0] = descriptor;
+
+let bufferCCC = new ArrayBuffer(8);
+let cccV = new Uint8Array(bufferCCC);
+cccV[0] = 1;
+let characteristic = {serviceUuid: '00001810-0000-1000-8000-00805F9B34FB',
+ characteristicUuid: '00001820-0000-1000-8000-00805F9B34FB',
+ characteristicValue: bufferCCC, descriptors:descriptors};
+try {
+ let device = bluetoothManager.BLE.createGattClientDevice('XX:XX:XX:XX:XX:XX');
+ device.writeCharacteristicValue(characteristic);
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+### writeDescriptorValue
+
+writeDescriptorValue(descriptor: BLEDescriptor): void
+
+Writes binary data to the specific descriptor of the remote BLE device.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| ---------- | ------------------------------- | ---- | ------------------ |
+| descriptor | [BLEDescriptor](#bledescriptor) | Yes | Binary value and other parameters of the BLE device descriptor.|
+| boolean | Returns **true** if the operation is successful; returns **false** otherwise.|
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2901001 | Write forbidden. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+let bufferDesc = new ArrayBuffer(8);
+let descV = new Uint8Array(bufferDesc);
+descV[0] = 22;
+let descriptor = {
+ serviceUuid: '00001810-0000-1000-8000-00805F9B34FB',
+ characteristicUuid: '00001820-0000-1000-8000-00805F9B34FB',
+ descriptorUuid: '00002903-0000-1000-8000-00805F9B34FB',
+ descriptorValue: bufferDesc
+};
+try {
+ let device = bluetoothManager.BLE.createGattClientDevice('XX:XX:XX:XX:XX:XX');
+ device.writeDescriptorValue(descriptor);
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+### setBLEMtuSize
+
+setBLEMtuSize(mtu: number): void
+
+Sets the maximum transmission unit (MTU) that can be transmitted between the GATT client and its remote BLE device. This API can be used only after a connection is set up by calling [connect](#connect).
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| ---- | ------ | ---- | -------------- |
+| mtu | number | Yes | MTU to set, which ranges from 22 to 512 bytes.|
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+try {
+ let device = bluetoothManager.BLE.createGattClientDevice('XX:XX:XX:XX:XX:XX');
+ device.setBLEMtuSize(128);
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+### setNotifyCharacteristicChanged
+
+setNotifyCharacteristicChanged(characteristic: BLECharacteristic, enable: boolean): void
+
+Sets the function of notifying the GATT client when the characteristic value of the remote BLE device changes.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| -------------- | --------------------------------------- | ---- | ----------------------------- |
+| characteristic | [BLECharacteristic](#blecharacteristic) | Yes | BLE characteristic to listen for. |
+| enable | boolean | Yes | Whether to enable the notify function. The value **true** means to enable the notify function, and the value **false** means the opposite.|
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+// Create descriptors.
+let descriptors = [];
+let arrayBuffer = new ArrayBuffer(8);
+let descV = new Uint8Array(arrayBuffer);
+descV[0] = 11;
+let descriptor = {serviceUuid: '00001810-0000-1000-8000-00805F9B34FB',
+ characteristicUuid: '00001820-0000-1000-8000-00805F9B34FB',
+ descriptorUuid: '00002902-0000-1000-8000-00805F9B34FB', descriptorValue: arrayBuffer};
+descriptors[0] = descriptor;
+let arrayBufferC = new ArrayBuffer(8);
+let characteristic = {serviceUuid: '00001810-0000-1000-8000-00805F9B34FB',
+ characteristicUuid: '00001820-0000-1000-8000-00805F9B34FB', characteristicValue: arrayBufferC, descriptors:descriptors};
+try {
+ let device = bluetoothManager.BLE.createGattClientDevice('XX:XX:XX:XX:XX:XX');
+ device.setNotifyCharacteristicChanged(characteristic, false);
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+
+```
+
+
+### on('BLECharacteristicChange')
+
+on(type: "BLECharacteristicChange", callback: Callback<BLECharacteristic>): void
+
+Subscribes to the BLE characteristic change events. The client can receive a notification from the server only after the **setNotifyCharacteristicChanged** method is called.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| -------- | ---------------------------------------- | ---- | ---------------------------------------- |
+| type | string | Yes | Event type. The value **BLECharacteristicChange** indicates a characteristic value change event.|
+| callback | Callback<[BLECharacteristic](#blecharacteristic)> | Yes | Callback invoked to return the characteristic value changes. |
+
+**Example**
+
+```js
+function CharacteristicChange(CharacteristicChangeReq) {
+ let serviceUuid = CharacteristicChangeReq.serviceUuid;
+ let characteristicUuid = CharacteristicChangeReq.characteristicUuid;
+ let value = new Uint8Array(CharacteristicChangeReq.characteristicValue);
+}
+try {
+ let device = bluetoothManager.BLE.createGattClientDevice('XX:XX:XX:XX:XX:XX');
+ device.on('BLECharacteristicChange', CharacteristicChange);
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+### off('BLECharacteristicChange')
+
+off(type: "BLECharacteristicChange", callback?: Callback<BLECharacteristic>): void
+
+Unsubscribes from the BLE characteristic change events.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| -------- | ---------------------------------------- | ---- | ---------------------------------------- |
+| type | string | Yes | Event type. The value **BLECharacteristicChange** indicates a characteristic value change event.|
+| callback | Callback<[BLECharacteristic](#blecharacteristic)> | No | Callback for the characteristic value change event. If this parameter is not set, this method unsubscribes from all callbacks corresponding to **type**.|
+
+**Example**
+
+```js
+try {
+ let device = bluetoothManager.BLE.createGattClientDevice('XX:XX:XX:XX:XX:XX');
+ device.off('BLECharacteristicChange');
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+### on('BLEConnectionStateChange')
+
+on(type: "BLEConnectionStateChange", callback: Callback<BLEConnectChangedState>): void
+
+Subscribes to the BLE connection state change events.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| -------- | ---------------------------------------- | ---- | ---------------------------------------- |
+| type | string | Yes | Event type. The value **BLEConnectionStateChange** indicates a BLE connection state change event.|
+| callback | Callback<[BLEConnectChangedState](#bleconnectchangedstate)> | Yes | Callback invoked to return the BLE connection state. |
+
+**Example**
+
+```js
+function ConnectStateChanged(state) {
+ console.log('bluetooth connect state changed');
+ let connectState = state.state;
+}
+try {
+ let device = bluetoothManager.BLE.createGattClientDevice('XX:XX:XX:XX:XX:XX');
+ device.on('BLEConnectionStateChange', ConnectStateChanged);
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+### off('BLEConnectionStateChange')
+
+off(type: "BLEConnectionStateChange", callback?: Callback<BLEConnectChangedState>): void
+
+Unsubscribes from the BLE connection state change events.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| -------- | ---------------------------------------- | ---- | ---------------------------------------- |
+| type | string | Yes | Event type. The value **BLEConnectionStateChange** indicates a BLE connection state change event.|
+| callback | Callback<[BLEConnectChangedState](#bleconnectchangedstate)> | No | Callback for the BLE connection state change event. If this parameter is not set, this method unsubscribes from all callbacks corresponding to **type**.|
+
+**Example**
+
+```js
+try {
+ let device = bluetoothManager.BLE.createGattClientDevice('XX:XX:XX:XX:XX:XX');
+ device.off('BLEConnectionStateChange');
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+### getDeviceName
+
+getDeviceName(callback: AsyncCallback<string>): void
+
+Obtains the name of the remote BLE device. This API uses an asynchronous callback to return the result.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| -------- | --------------------------- | ---- | ------------------------------- |
+| callback | AsyncCallback<string> | Yes | Callback invoked to return the remote BLE device name obtained.|
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+// callback
+try {
+ let gattClient = bluetoothManager.BLE.createGattClientDevice("XX:XX:XX:XX:XX:XX");
+ gattClient.connect();
+ let deviceName = gattClient.getDeviceName((err, data)=> {
+ console.info('device name err ' + JSON.stringify(err));
+ console.info('device name' + JSON.stringify(data));
+ })
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+### getDeviceName
+
+getDeviceName(): Promise<string>
+
+Obtains the name of the remote BLE device. This API uses a promise to return the result.
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Return value**
+
+| Type | Description |
+| --------------------- | ---------------------------------- |
+| Promise<string> | Promise used to return the remote BLE device name.|
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+// promise
+try {
+ let gattClient = bluetoothManager.BLE.createGattClientDevice("XX:XX:XX:XX:XX:XX");
+ gattClient.connect();
+ let deviceName = gattClient.getDeviceName().then((data) => {
+ console.info('device name' + JSON.stringify(data));
+ })
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+### getRssiValue
+
+getRssiValue(callback: AsyncCallback<number>): void
+
+Obtains the received signal strength indication (RSSI) of the remote BLE device. This API uses an asynchronous callback to return the result. It can be used only after a connection is set up by calling [connect](#connect).
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Parameters**
+
+| Name | Type | Mandatory | Description |
+| -------- | --------------------------- | ---- | ------------------------------ |
+| callback | AsyncCallback<number> | Yes | Callback invoked to return the RSSI, in dBm.|
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+// callback
+try {
+ let gattClient = bluetoothManager.BLE.createGattClientDevice("XX:XX:XX:XX:XX:XX");
+ gattClient.connect();
+ let rssi = gattClient.getRssiValue((err, data)=> {
+ console.info('rssi err ' + JSON.stringify(err));
+ console.info('rssi value' + JSON.stringify(data));
+ })
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+### getRssiValue
+
+getRssiValue(): Promise<number>
+
+Obtains the RSSI of the remote BLE device. This API uses a promise to return the result. It can be used only after a connection is set up by calling [connect](#connect).
+
+**Required permissions**: ohos.permission.USE_BLUETOOTH
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+**Return value**
+
+| Type | Description |
+| --------------------- | --------------------------------- |
+| Promise<number> | Promise used to return the RSSI, in dBm.|
+
+**Error codes**
+
+For details about the error codes, see [Bluetooth Error Codes](../errorcodes/errorcode-bluetoothManager.md).
+
+| ID| Error Message|
+| -------- | ---------------------------- |
+|2900099 | Operation failed. |
+
+**Example**
+
+```js
+// promise
+try {
+ let gattClient = bluetoothManager.BLE.createGattClientDevice("XX:XX:XX:XX:XX:XX");
+ let rssi = gattClient.getRssiValue().then((data) => {
+ console.info('rssi' + JSON.stringify(data));
+ })
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+## ScanMode
+
+Enumerates the scan modes.
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+| Name | Value | Description |
+| ---------------------------------------- | ---- | --------------- |
+| SCAN_MODE_NONE | 0 | No scan mode. |
+| SCAN_MODE_CONNECTABLE | 1 | Connectable mode. |
+| SCAN_MODE_GENERAL_DISCOVERABLE | 2 | General discoverable mode. |
+| SCAN_MODE_LIMITED_DISCOVERABLE | 3 | Limited discoverable mode. |
+| SCAN_MODE_CONNECTABLE_GENERAL_DISCOVERABLE | 4 | General connectable and discoverable mode.|
+| SCAN_MODE_CONNECTABLE_LIMITED_DISCOVERABLE | 5 | Limited connectable and discoverable mode.|
+
+## BondState
+
+Enumerates the pairing states.
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+| Name | Value | Description |
+| ------------------ | ---- | ------ |
+| BOND_STATE_INVALID | 0 | Invalid pairing.|
+| BOND_STATE_BONDING | 1 | Pairing. |
+| BOND_STATE_BONDED | 2 | Paired. |
+
+
+## SppOption
+
+Defines the SPP configuration parameters.
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+| Name | Type | Readable | Writable | Description |
+| ------ | ------------------- | ---- | ---- | ----------- |
+| uuid | string | Yes | Yes | UUID of the SPP.|
+| secure | boolean | Yes | Yes | Whether it is a secure channel. |
+| type | [SppType](#spptype) | Yes | Yes | Type of the SPP link. |
+
+
+## SppType
+
+Enumerates the SPP link types.
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+| Name | Value | Description |
+| ---------- | ---- | ------------- |
+| SPP_RFCOMM | 0 | Radio frequency communication (RFCOMM) link type.|
+
+
+## GattService
+
+Defines the GATT service API parameters.
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+| Name | Type | Readable | Writable | Description |
+| --------------- | ---------------------------------------- | ---- | ---- | ---------------------------------------- |
+| serviceUuid | string | Yes | Yes | UUID of the service, for example, **00001888-0000-1000-8000-00805f9b34fb**.|
+| isPrimary | boolean | Yes | Yes | Whether the service is a primary service. The value **true** means a primary service. |
+| characteristics | Array<[BLECharacteristic](#blecharacteristic)> | Yes | Yes | List of characteristics of the service. |
+| includeServices | Array<[GattService](#gattservice)> | Yes | Yes | Services on which the service depends. |
+
+
+## BLECharacteristic
+
+Defines the characteristic API parameters.
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+| Name | Type | Readable | Writable | Description |
+| ------------------- | ---------------------------------------- | ---- | ---- | ---------------------------------------- |
+| serviceUuid | string | Yes | Yes | UUID of the service, for example, **00001888-0000-1000-8000-00805f9b34fb**.|
+| characteristicUuid | string | Yes | Yes | UUID of the characteristic, for example, **00002a11-0000-1000-8000-00805f9b34fb**.|
+| characteristicValue | ArrayBuffer | Yes | Yes | Binary value of the characteristic. |
+| descriptors | Array<[BLEDescriptor](#bledescriptor)> | Yes | Yes | List of descriptors of the characteristic. |
+
+
+## BLEDescriptor
+
+Defines the descriptor API parameters.
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+| Name | Type | Readable | Writable | Description |
+| ------------------ | ----------- | ---- | ---- | ---------------------------------------- |
+| serviceUuid | string | Yes | Yes | UUID of the service, for example, **00001888-0000-1000-8000-00805f9b34fb**.|
+| characteristicUuid | string | Yes | Yes | UUID of the characteristic, for example, **00002a11-0000-1000-8000-00805f9b34fb**.|
+| descriptorUuid | string | Yes | Yes | UUID of the descriptor, for example, **00002902-0000-1000-8000-00805f9b34fb**.|
+| descriptorValue | ArrayBuffer | Yes | Yes | Binary value of the descriptor. |
+
+
+## NotifyCharacteristic
+
+Defines the parameters in the notifications sent when the server characteristic value changes.
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+| Name | Type | Readable | Writable | Description |
+| ------------------- | ----------- | ---- | ---- | ---------------------------------------- |
+| serviceUuid | string | Yes | Yes | UUID of the service, for example, **00001888-0000-1000-8000-00805f9b34fb**.|
+| characteristicUuid | string | Yes | Yes | UUID of the characteristic, for example, **00002a11-0000-1000-8000-00805f9b34fb**.|
+| characteristicValue | ArrayBuffer | Yes | Yes | Binary value of the characteristic. |
+| confirm | boolean | Yes | Yes | Whether the notification needs to be confirmed by the remote end. For a notification, set it to **true**. In this case, the remote end must confirm the receipt of the notification. For an indication, set it to **false**. In this case, the remote end does not need to confirm the receipt of the notification.|
+
+
+## CharacteristicReadRequest
+
+Defines the parameters of the **CharacteristicReadReq** event received by the server.
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+| Name | Type | Readable | Writable | Description |
+| ------------------ | ------ | ---- | ---- | ---------------------------------------- |
+| deviceId | string | Yes | No | Address of the remote device that sends the **CharacteristicReadReq** event, for example, XX:XX:XX:XX:XX:XX.|
+| transId | number | Yes | No | Transmission ID of the read request. The response returned by the server must use the same transmission ID. |
+| offset | number | Yes | No | Position from which the characteristic value is read. For example, **k** means to read from the kth byte. The response returned by the server must use the same offset.|
+| characteristicUuid | string | Yes | No | UUID of the characteristic, for example, **00002a11-0000-1000-8000-00805f9b34fb**.|
+| serviceUuid | string | Yes | No | UUID of the service, for example, **00001888-0000-1000-8000-00805f9b34fb**.|
+
+
+## CharacteristicWriteRequest
+
+Defines the parameters of the **CharacteristicWriteReq** event received by the server.
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+| Name | Type | Readable | Writable | Description |
+| ------------------ | ------ | ---- | ---- | ---------------------------------------- |
+| deviceId | string | Yes | No | Address of the remote device that sends the **CharacteristicWriteReq** event, for example, XX:XX:XX:XX:XX:XX.|
+| transId | number | Yes | No | Transmission ID of the write request. The response returned by the server must use the same transmission ID. |
+| offset | number | Yes | No | Start position for writing the characteristic value. For example, **k** means to write from the kth byte. The response returned by the server must use the same offset.|
+| descriptorUuid | string | Yes | No | UUID of the descriptor, for example, **00002902-0000-1000-8000-00805f9b34fb**.|
+| characteristicUuid | string | Yes | No | UUID of the characteristic, for example, **00002a11-0000-1000-8000-00805f9b34fb**.|
+| serviceUuid | string | Yes | No | UUID of the service, for example, **00001888-0000-1000-8000-00805f9b34fb**.|
+
+
+## DescriptorReadRequest
+
+Defines the parameters of the **DescriptorReadReq** event received by the server.
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+| Name | Type | Readable | Writable | Description |
+| ------------------ | ------ | ---- | ---- | ---------------------------------------- |
+| deviceId | string | Yes | No | Address of the remote device that sends a **DescriptorReadReq** event, for example, XX:XX:XX:XX:XX:XX.|
+| transId | number | Yes | No | Transmission ID of the read request. The response returned by the server must use the same transmission ID. |
+| offset | number | Yes | No | Position from which the descriptor is read. For example, **k** means to read from the kth byte. The response returned by the server must use the same offset.|
+| descriptorUuid | string | Yes | No | UUID of the descriptor, for example, **00002902-0000-1000-8000-00805f9b34fb**.|
+| characteristicUuid | string | Yes | No | UUID of the characteristic, for example, **00002a11-0000-1000-8000-00805f9b34fb**.|
+| serviceUuid | string | Yes | No | UUID of the service, for example, **00001888-0000-1000-8000-00805f9b34fb**.|
+
+
+## DescriptorWriteRequest
+
+Defines the parameters of the **DescriptorWriteReq** event received by the server.
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+| Name | Type | Readable | Writable | Description |
+| ------------------ | ----------- | ---- | ---- | ---------------------------------------- |
+| deviceId | string | Yes | No | Address of the remote device that sends a **DescriptorWriteReq** event, for example, XX:XX:XX:XX:XX:XX.|
+| transId | number | Yes | No | Transmission ID of the write request. The response returned by the server must use the same transmission ID. |
+| offset | number | Yes | No | Start position for writing the descriptor. For example, **k** means to write from the kth byte. The response returned by the server must use the same offset.|
+| isPrep | boolean | Yes | No | Whether the write request is executed immediately. |
+| needRsp | boolean | Yes | No | Whether to send a response to the GATT client. |
+| value | ArrayBuffer | Yes | No | Binary value of the descriptor to write. |
+| descriptorUuid | string | Yes | No | UUID of the descriptor, for example, **00002902-0000-1000-8000-00805f9b34fb**.|
+| characteristicUuid | string | Yes | No | UUID of the characteristic, for example, **00002a11-0000-1000-8000-00805f9b34fb**.|
+| serviceUuid | string | Yes | No | UUID of the service, for example, **00001888-0000-1000-8000-00805f9b34fb**.|
+
+
+## ServerResponse
+
+Defines the parameters of the server's response to the GATT client's read/write request.
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+| Name | Type | Readable | Writable | Description |
+| -------- | ----------- | ---- | ---- | -------------------------------------- |
+| deviceId | string | Yes | No | Address of the remote device, for example, XX:XX:XX:XX:XX:XX. |
+| transId | number | Yes | No | Transmission ID of the request. The value must be the same as the ID carried in the read/write request received. |
+| status | number | Yes | No | Response state. Set this parameter to **0**, which indicates a normal response. |
+| offset | number | Yes | No | Start read/write position. The value must be the same as the offset carried in the read/write request.|
+| value | ArrayBuffer | Yes | No | Binary data in the response. |
+
+
+## BLEConnectChangedState
+
+Defines the parameters of **BLEConnectChangedState**.
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+| Name | Type | Readable| Writable| Description |
+| -------- | ------------------------------------------------- | ---- | ---- | --------------------------------------------- |
+| deviceId | string | Yes | No | Address of the remote device, for example, XX:XX:XX:XX:XX:XX.|
+| state | [ProfileConnectionState](#profileconnectionstate) | Yes | Yes | BLE connection state. |
+
+
+## ProfileConnectionState
+
+Enumerates the profile connection states.
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+| Name | Value | Description |
+| ------------------- | ---- | -------------- |
+| STATE_DISCONNECTED | 0 | Disconnected. |
+| STATE_CONNECTING | 1 | Connecting.|
+| STATE_CONNECTED | 2 | Connected. |
+| STATE_DISCONNECTING | 3 | Disconnecting.|
+
+
+## ScanFilter
+
+Defines the scan filter parameters.
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+| Name | Type | Readable| Writable| Description |
+| ---------------------------------------- | ----------- | ---- | ---- | ------------------------------------------------------------ |
+| deviceId | string | Yes | Yes | Address of the BLE device to filter, for example, XX:XX:XX:XX:XX:XX. |
+| name | string | Yes | Yes | Name of the BLE device to filter. |
+| serviceUuid | string | Yes | Yes | Service UUID of the device to filter, for example, **00001888-0000-1000-8000-00805f9b34fb**.|
+| serviceUuidMask | string | Yes | Yes | Service UUID mask of the device to filter, for example, **FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF**.|
+| serviceSolicitationUuid | string | Yes | Yes | Service solicitation UUID of the device to filter, for example, **00001888-0000-1000-8000-00805F9B34FB**.|
+| serviceSolicitationUuidMask | string | Yes | Yes | Service solicitation UUID mask of the device to filter, for example, **FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF**.|
+| serviceData | ArrayBuffer | Yes | Yes | Service data of the device to filter, for example, **[0x90, 0x00, 0xF1, 0xF2]**.|
+| serviceDataMask | ArrayBuffer | Yes | Yes | Service data mask of the device to filter, for example, **[0xFF,0xFF,0xFF,0xFF]**.|
+| manufactureId | number | Yes | Yes | Manufacturer ID of the device to filter, for example, **0x0006**. |
+| manufactureData | ArrayBuffer | Yes | Yes | Manufacturer data of the device to filter, for example, **[0x1F,0x2F,0x3F]**.|
+| manufactureDataMask | ArrayBuffer | Yes | Yes | Manufacturer data mask of the device to filter, for example, **[0xFF, 0xFF, 0xFF]**.|
+
+
+## ScanOptions
+
+Defines the scan configuration parameters.
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+| Name | Type | Readable | Writable | Description |
+| --------- | ----------------------- | ---- | ---- | -------------------------------------- |
+| interval | number | Yes | Yes | Delay in reporting the scan result. The default value is **0**. |
+| dutyMode | [ScanDuty](#scanduty) | Yes | Yes | Scan duty. The default value is SCAN_MODE_LOW_POWER. |
+| matchMode | [MatchMode](#matchmode) | Yes | Yes | Hardware filtering match mode. The default value is **MATCH_MODE_AGGRESSIVE**.|
+
+
+## ScanDuty
+
+Enumerates the scan duty options.
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+| Name | Value | Description |
+| --------------------- | ---- | ------------ |
+| SCAN_MODE_LOW_POWER | 0 | Low-power mode, which is the default value.|
+| SCAN_MODE_BALANCED | 1 | Balanced mode. |
+| SCAN_MODE_LOW_LATENCY | 2 | Low-latency mode. |
+
+
+## MatchMode
+
+Enumerates the hardware match modes of BLE scan filters.
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+| Name | Value | Description |
+| --------------------- | ---- | ---------------------------------------- |
+| MATCH_MODE_AGGRESSIVE | 1 | Hardware reports the scan result with a lower threshold of signal strength and few number of matches in a duration. This is the default value.|
+| MATCH_MODE_STICKY | 2 | Hardware reports the scan result with a higher threshold of signal strength and sightings. |
+
+
+## ScanResult
+
+Defines the scan result.
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+| Name | Type | Readable | Writable | Description |
+| -------- | ----------- | ---- | ---- | ---------------------------------- |
+| deviceId | string | Yes | No | Address of the scanned device, for example, XX:XX:XX:XX:XX:XX.|
+| rssi | number | Yes | No | RSSI of the device. |
+| data | ArrayBuffer | Yes | No | Advertisement packets sent by the device. |
+
+
+## BluetoothState
+
+Enumerates the Bluetooth states.
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+| Name | Value | Description |
+| --------------------- | ---- | ------------------ |
+| STATE_OFF | 0 | Bluetooth is turned off. |
+| STATE_TURNING_ON | 1 | Bluetooth is being turned on. |
+| STATE_ON | 2 | Bluetooth is turned on. |
+| STATE_TURNING_OFF | 3 | Bluetooth is being turned off. |
+| STATE_BLE_TURNING_ON | 4 | The LE-only mode is being turned on for Bluetooth.|
+| STATE_BLE_ON | 5 | Bluetooth is in LE-only mode. |
+| STATE_BLE_TURNING_OFF | 6 | The LE-only mode is being turned off for Bluetooth.|
+
+
+## AdvertiseSetting
+
+Defines the BLE advertising parameters.
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+| Name | Type | Readable | Writable | Description |
+| ----------- | ------- | ---- | ---- | ---------------------------------------- |
+| interval | number | Yes | Yes | Interval for BLE advertising. The minimum value is **32** slots (20 ms). The maximum value is **16384** slots. The default value is **1600** slots (1s).|
+| txPower | number | Yes | Yes | Transmit power, in dBm. The value range is -127 to 1. The default value is **-7**. |
+| connectable | boolean | Yes | Yes | Whether the advertisement is connectable. The default value is **true**. |
+
+
+## AdvertiseData
+
+Defines the content of a BLE advertisement packet.
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+| Name | Type | Readable | Writable | Description |
+| --------------- | ---------------------------------------- | ---- | ---- | --------------------------- |
+| serviceUuids | Array<string> | Yes | Yes | List of service UUIDs to broadcast.|
+| manufactureData | Array<[ManufactureData](#manufacturedata)> | Yes | Yes | List of manufacturers to broadcast. |
+| serviceData | Array<[ServiceData](#servicedata)> | Yes | Yes | List of service data to broadcast. |
+
+
+## ManufactureData
+
+Defines the content of a BLE advertisement packet.
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+| Name | Type | Readable | Writable | Description |
+| ---------------- | ------------------- | ---- | ---- | ------------------ |
+| manufactureId | number | Yes | Yes | Manufacturer ID allocated by the Bluetooth SIG.|
+| manufactureValue | ArrayBuffer | Yes | Yes | Manufacturer data. |
+
+
+## ServiceData
+
+Defines the service data contained in an advertisement packet.
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+| Name | Type | Readable | Writable | Description |
+| ------------ | ----------- | ---- | ---- | ---------- |
+| serviceUuid | string | Yes | Yes | Service UUID.|
+| serviceValue | ArrayBuffer | Yes | Yes | Service data. |
+
+
+## PinRequiredParam
+
+Defines the pairing request parameters.
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+| Name | Type | Readable | Writable | Description |
+| -------- | ------ | ---- | ---- | ----------- |
+| deviceId | string | Yes | No | ID of the device to pair.|
+| pinCode | string | Yes | No | Key for the device pairing. |
+
+
+## BondStateParam
+
+Defines the pairing state parameters.
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+| Name | Type | Readable | Writable | Description |
+| -------- | ------ | ---- | ---- | ----------- |
+| deviceId | string | Yes | No | ID of the device to pair.|
+| state | BondState | Yes | No | State of the device.|
+
+
+## StateChangeParam
+
+Defines the profile state change parameters.
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+| Name | Type | Readable| Writable| Description |
+| -------- | ------------------------------------------------- | ---- | ---- | ------------------------------- |
+| deviceId | string | Yes | No | Address of a Bluetooth device. |
+| state | [ProfileConnectionState](#profileconnectionstate) | Yes | No | Profile connection state of the device.|
+
+
+## DeviceClass
+
+Defines the class of a Bluetooth device.
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+| Name | Type | Readable | Writable | Description |
+| --------------- | ----------------------------------- | ---- | ---- | ---------------- |
+| majorClass | [MajorClass](#majorclass) | Yes | No | Major classes of Bluetooth devices. |
+| majorMinorClass | [MajorMinorClass](#majorminorclass) | Yes | No | Major and minor classes of Bluetooth devices.|
+| classOfDevice | number | Yes | No | Class of the device. |
+
+
+
+## MajorClass
+
+Enumerates the major classes of Bluetooth devices.
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+| Name | Value | Description |
+| ------------------- | ------ | ---------- |
+| MAJOR_MISC | 0x0000 | Miscellaneous device. |
+| MAJOR_COMPUTER | 0x0100 | Computer. |
+| MAJOR_PHONE | 0x0200 | Mobile phone. |
+| MAJOR_NETWORKING | 0x0300 | Network device. |
+| MAJOR_AUDIO_VIDEO | 0x0400 | Audio or video device.|
+| MAJOR_PERIPHERAL | 0x0500 | Peripheral device. |
+| MAJOR_IMAGING | 0x0600 | Imaging device. |
+| MAJOR_WEARABLE | 0x0700 | Wearable device. |
+| MAJOR_TOY | 0x0800 | Toy. |
+| MAJOR_HEALTH | 0x0900 | Health device. |
+| MAJOR_UNCATEGORIZED | 0x1F00 | Unclassified device. |
+
+
+## MajorMinorClass
+
+Enumerates the major and minor classes of Bluetooth devices.
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+| Name | Value | Description |
+| ---------------------------------------- | ------ | --------------- |
+| COMPUTER_UNCATEGORIZED | 0x0100 | Unclassified computer. |
+| COMPUTER_DESKTOP | 0x0104 | Desktop computer. |
+| COMPUTER_SERVER | 0x0108 | Server. |
+| COMPUTER_LAPTOP | 0x010C | Laptop. |
+| COMPUTER_HANDHELD_PC_PDA | 0x0110 | Hand-held computer. |
+| COMPUTER_PALM_SIZE_PC_PDA | 0x0114 | Palmtop computer. |
+| COMPUTER_WEARABLE | 0x0118 | Wearable computer. |
+| COMPUTER_TABLET | 0x011C | Tablet. |
+| PHONE_UNCATEGORIZED | 0x0200 | Unclassified mobile phone. |
+| PHONE_CELLULAR | 0x0204 | Portable phone. |
+| PHONE_CORDLESS | 0x0208 | Cordless phone. |
+| PHONE_SMART | 0x020C | Smartphone. |
+| PHONE_MODEM_OR_GATEWAY | 0x0210 | Modem or gateway phone.|
+| PHONE_ISDN | 0x0214 | ISDN phone. |
+| NETWORK_FULLY_AVAILABLE | 0x0300 | Device with network fully available. |
+| NETWORK_1_TO_17_UTILIZED | 0x0320 | Device used on network 1 to 17. |
+| NETWORK_17_TO_33_UTILIZED | 0x0340 | Device used on network 17 to 33. |
+| NETWORK_33_TO_50_UTILIZED | 0x0360 | Device used on network 33 to 50. |
+| NETWORK_60_TO_67_UTILIZED | 0x0380 | Device used on network 60 to 67. |
+| NETWORK_67_TO_83_UTILIZED | 0x03A0 | Device used on network 67 to 83. |
+| NETWORK_83_TO_99_UTILIZED | 0x03C0 | Device used on network 83 to 99. |
+| NETWORK_NO_SERVICE | 0x03E0 | Device without network service |
+| AUDIO_VIDEO_UNCATEGORIZED | 0x0400 | Unclassified audio or video device. |
+| AUDIO_VIDEO_WEARABLE_HEADSET | 0x0404 | Wearable audio or video headset. |
+| AUDIO_VIDEO_HANDSFREE | 0x0408 | Hands-free audio or video device. |
+| AUDIO_VIDEO_MICROPHONE | 0x0410 | Audio or video microphone. |
+| AUDIO_VIDEO_LOUDSPEAKER | 0x0414 | Audio or video loudspeaker. |
+| AUDIO_VIDEO_HEADPHONES | 0x0418 | Audio or video headphones. |
+| AUDIO_VIDEO_PORTABLE_AUDIO | 0x041C | Portable audio or video device. |
+| AUDIO_VIDEO_CAR_AUDIO | 0x0420 | In-vehicle audio or video device. |
+| AUDIO_VIDEO_SET_TOP_BOX | 0x0424 | Audio or video STB device. |
+| AUDIO_VIDEO_HIFI_AUDIO | 0x0428 | High-fidelity speaker device. |
+| AUDIO_VIDEO_VCR | 0x042C | Video cassette recording (VCR) device. |
+| AUDIO_VIDEO_VIDEO_CAMERA | 0x0430 | Camera. |
+| AUDIO_VIDEO_CAMCORDER | 0x0434 | Camcorder |
+| AUDIO_VIDEO_VIDEO_MONITOR | 0x0438 | Audio or video monitor. |
+| AUDIO_VIDEO_VIDEO_DISPLAY_AND_LOUDSPEAKER | 0x043C | Video display or loudspeaker. |
+| AUDIO_VIDEO_VIDEO_CONFERENCING | 0x0440 | Video conferencing device. |
+| AUDIO_VIDEO_VIDEO_GAMING_TOY | 0x0448 | Audio or video gaming toy. |
+| PERIPHERAL_NON_KEYBOARD_NON_POINTING | 0x0500 | Non-keyboard or non-pointing peripheral device. |
+| PERIPHERAL_KEYBOARD | 0x0540 | Keyboard device. |
+| PERIPHERAL_POINTING_DEVICE | 0x0580 | Pointing peripheral device. |
+| PERIPHERAL_KEYBOARD_POINTING | 0x05C0 | Keyboard pointing device. |
+| PERIPHERAL_UNCATEGORIZED | 0x0500 | Unclassified peripheral device. |
+| PERIPHERAL_JOYSTICK | 0x0504 | Peripheral joystick. |
+| PERIPHERAL_GAMEPAD | 0x0508 | Peripheral game pad |
+| PERIPHERAL_REMOTE_CONTROL | 0x05C0 | Peripheral remote control device |
+| PERIPHERAL_SENSING_DEVICE | 0x0510 | Peripheral sensing device. |
+| PERIPHERAL_DIGITIZER_TABLET | 0x0514 | Peripheral digitizer tablet.|
+| PERIPHERAL_CARD_READER | 0x0518 | Peripheral card reader. |
+| PERIPHERAL_DIGITAL_PEN | 0x051C | Peripheral digital pen. |
+| PERIPHERAL_SCANNER_RFID | 0x0520 | Peripheral RFID scanner. |
+| PERIPHERAL_GESTURAL_INPUT | 0x0522 | Gesture input device. |
+| IMAGING_UNCATEGORIZED | 0x0600 | Unclassified imaging device. |
+| IMAGING_DISPLAY | 0x0610 | Imaging display device. |
+| IMAGING_CAMERA | 0x0620 | Imaging camera device. |
+| IMAGING_SCANNER | 0x0640 | Imaging scanner. |
+| IMAGING_PRINTER | 0x0680 | Imaging printer. |
+| WEARABLE_UNCATEGORIZED | 0x0700 | Unclassified wearable device. |
+| WEARABLE_WRIST_WATCH | 0x0704 | Smart watch. |
+| WEARABLE_PAGER | 0x0708 | Wearable pager. |
+| WEARABLE_JACKET | 0x070C | Smart jacket. |
+| WEARABLE_HELMET | 0x0710 | Wearable helmet. |
+| WEARABLE_GLASSES | 0x0714 | Wearable glasses. |
+| TOY_UNCATEGORIZED | 0x0800 | Unclassified toy. |
+| TOY_ROBOT | 0x0804 | Toy robot. |
+| TOY_VEHICLE | 0x0808 | Toy vehicle. |
+| TOY_DOLL_ACTION_FIGURE | 0x080C | Humanoid toy doll. |
+| TOY_CONTROLLER | 0x0810 | Toy controller. |
+| TOY_GAME | 0x0814 | Toy gaming device. |
+| HEALTH_UNCATEGORIZED | 0x0900 | Unclassified health devices. |
+| HEALTH_BLOOD_PRESSURE | 0x0904 | Blood pressure device. |
+| HEALTH_THERMOMETER | 0x0908 | Thermometer |
+| HEALTH_WEIGHING | 0x090C | Body scale. |
+| HEALTH_GLUCOSE | 0x0910 | Blood glucose monitor. |
+| HEALTH_PULSE_OXIMETER | 0x0914 | Pulse oximeter. |
+| HEALTH_PULSE_RATE | 0x0918 | Heart rate monitor. |
+| HEALTH_DATA_DISPLAY | 0x091C | Health data display. |
+| HEALTH_STEP_COUNTER | 0x0920 | Step counter. |
+| HEALTH_BODY_COMPOSITION_ANALYZER | 0x0924 | Body composition analyzer. |
+| HEALTH_PEAK_FLOW_MONITOR | 0x0928 | Hygrometer. |
+| HEALTH_MEDICATION_MONITOR | 0x092C | Medication monitor. |
+| HEALTH_KNEE_PROSTHESIS | 0x0930 | Prosthetic knee. |
+| HEALTH_ANKLE_PROSTHESIS | 0x0934 | Prosthetic ankle. |
+| HEALTH_GENERIC_HEALTH_MANAGER | 0x0938 | Generic health management device. |
+| HEALTH_PERSONAL_MOBILITY_DEVICE | 0x093C | Personal mobility device. |
+
+
+## PlayingState
+
+Enumerates the A2DP playing states.
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+| Name | Value | Description |
+| ----------------- | ------ | ------- |
+| STATE_NOT_PLAYING | 0x0000 | Not playing. |
+| STATE_PLAYING | 0x0001 | Playing.|
+
+
+## ProfileId
+
+Enumerates the Bluetooth profiles. API version 9 is added with **PROFILE_HID_HOST** and **PROFILE_PAN_NETWORK**.
+
+**System capability**: SystemCapability.Communication.Bluetooth.Core
+
+| Name | Value | Description |
+| -------------------------------- | ------ | --------------- |
+| PROFILE_A2DP_SOURCE | 1 | A2DP profile.|
+| PROFILE_HANDS_FREE_AUDIO_GATEWAY | 4 | HFP profile. |
+| PROFILE_HID_HOST | 6 | Human Interface Device (HID) profile. |
+| PROFILE_PAN_NETWORK | 7 | PAN profile. |
diff --git a/en/application-dev/reference/apis/js-apis-fileio.md b/en/application-dev/reference/apis/js-apis-fileio.md
index 181a68d508ac6a52903f2fa33c13bc24a94cee88..4d69af5ec5184989ae3a79c45693297fae5b1c66 100644
--- a/en/application-dev/reference/apis/js-apis-fileio.md
+++ b/en/application-dev/reference/apis/js-apis-fileio.md
@@ -3,9 +3,9 @@
The **fileio** module provides APIs for file storage and management, including basic file management, directory management, file information statistics, and stream read and write.
> **NOTE**
->
+>
> - The initial APIs of this module are supported since API version 6. Newly added APIs will be marked with a superscript to indicate their earliest API version.
-> - The APIs provided by this module are deprecated since API version 9. You are advised to use [@ohos.file.fs](./js-apis-file-fs.md).
+> - The APIs provided by this module are deprecated since API version 9. You are advised to use [@ohos.file.fs](js-apis-file-fs.md).
## Modules to Import
@@ -18,7 +18,7 @@ import fileio from '@ohos.fileio';
Before using the APIs provided by this module to perform operations on files or directories, obtain the path of the application sandbox as follows:
-Stage Model
+**Stage Model**
```js
import UIAbility from '@ohos.app.ability.UIAbility';
@@ -31,9 +31,9 @@ export default class EntryAbility extends UIAbility {
}
```
- For details about how to obtain the stage model context, see [AbilityContext](js-apis-ability-context.md#abilitycontext).
+ For details about how to obtain the stage model context, see [UIAbilityContext](js-apis-inner-application-uiAbilityContext.md).
-FA Model
+**FA Model**
```js
import featureAbility from '@ohos.ability.featureAbility';
@@ -62,9 +62,9 @@ Obtains file information. This API uses a promise to return the result.
**Return value**
-| Type | Description |
-| ---------------------------- | ---------- |
-| Promise<[Stat](#stat)> | Promise used to return the file information obtained.|
+ | Type | Description |
+ | ---------------------------- | ---------- |
+ | Promise<[Stat](#stat)> | Promise used to return the file information obtained.|
**Example**
@@ -119,9 +119,9 @@ Synchronously obtains file information.
**Return value**
-| Type | Description |
-| ------------- | ---------- |
-| [Stat](#stat) | File information obtained.|
+ | Type | Description |
+ | ------------- | ---------- |
+ | [Stat](#stat) | File information obtained.|
**Example**
@@ -147,9 +147,9 @@ Opens a file directory. This API uses a promise to return the result.
**Return value**
-| Type | Description |
-| -------------------------- | -------- |
-| Promise<[Dir](#dir)> | Promise used to return the **Dir** object.|
+ | Type | Description |
+ | -------------------------- | -------- |
+ | Promise<[Dir](#dir)> | Promise used to return the **Dir** object.|
**Example**
@@ -205,9 +205,9 @@ Synchronously opens a directory.
**Return value**
-| Type | Description |
-| ----------- | -------- |
-| [Dir](#dir) | A **Dir** instance corresponding to the directory.|
+ | Type | Description |
+ | ----------- | -------- |
+ | [Dir](#dir) | A **Dir** instance corresponding to the directory.|
**Example**
@@ -231,13 +231,13 @@ Checks whether the current process can access a file. This API uses a promise to
| Name| Type | Mandatory| Description |
| ------ | ------ | ---- | ------------------------------------------------------------ |
| path | string | Yes | Application sandbox path of the file. |
-| mode | number | No | Options for accessing the file. You can specify multiple options, separated with a bitwise OR operator (|). The default value is **0**.
The options are as follows:
- **0**: check whether the file exists.
- **1**: check whether the current process has the execute permission on the file.
- **2**: check whether the current process has the write permission on the file.
- **4**: check whether the current process has the read permission on the file.|
+| mode | number | No | Options for accessing the file. You can specify multiple options, separated with a bitwise OR operator (|). The default value is **0**.
The options are as follows:
- **0**: Check whether the file exists.
- **1**: Check whether the process has the execute permission on the file.
- **2**: Check whether the process has the write permission on the file.
- **4**: Check whether the process has the read permission on the file. |
**Return value**
-| Type | Description |
-| ------------------- | ---------------------------- |
-| Promise<void> | Promise that returns no value.|
+ | Type | Description |
+ | ------------------- | ---------------------------- |
+ | Promise<void> | Promise that returns no value.|
**Example**
@@ -264,7 +264,7 @@ Checks whether the current process can access a file. This API uses an asynchron
| Name | Type | Mandatory| Description |
| -------- | ------------------------- | ---- | ------------------------------------------------------------ |
| path | string | Yes | Application sandbox path of the file. |
-| mode | number | No | Options for accessing the file. You can specify multiple options, separated with a bitwise OR operator (|). The default value is **0**.
The options are as follows:
- **0**: check whether the file exists.
- **1**: check whether the current process has the execute permission on the file.
- **2**: check whether the current process has the write permission on the file.
- **4**: check whether the current process has the read permission on the file.|
+| mode | number | No | Options for accessing the file. You can specify multiple options, separated with a bitwise OR operator (|). The default value is **0**.
The options are as follows:
- **0**: Check whether the file exists.
- **1**: Check whether the process has the execute permission on the file.
- **2**: Check whether the process has the write permission on the file.
- **4**: Check whether the process has the read permission on the file. |
| callback | AsyncCallback<void> | Yes | Callback invoked when the file is asynchronously checked. |
**Example**
@@ -290,7 +290,7 @@ Synchronously checks whether the current process can access the specified file.
| Name| Type | Mandatory| Description |
| ------ | ------ | ---- | ------------------------------------------------------------ |
| path | string | Yes | Application sandbox path of the file. |
-| mode | number | No | Options for accessing the file. You can specify multiple options, separated with a bitwise OR operator (|). The default value is **0**.
The options are as follows:
- **0**: check whether the file exists.
- **1**: check whether the current process has the execute permission on the file.
- **2**: check whether the current process has the write permission on the file.
- **4**: check whether the current process has the read permission on the file.|
+| mode | number | No | Options for accessing the file. You can specify multiple options, separated with a bitwise OR operator (|). The default value is **0**.
The options are as follows:
- **0**: Check whether the file exists.
- **1**: Check whether the process has the execute permission on the file.
- **2**: Check whether the process has the write permission on the file.
- **4**: Check whether the process has the read permission on the file. |
**Example**
@@ -314,15 +314,15 @@ Closes a file. This API uses a promise to return the result.
**Parameters**
-| Name | Type | Mandatory | Description |
-| ---- | ------ | ---- | ------------ |
-| fd | number | Yes | File descriptor of the file to close.|
+ | Name | Type | Mandatory | Description |
+ | ---- | ------ | ---- | ------------ |
+ | fd | number | Yes | File descriptor of the file to close.|
**Return value**
-| Type | Description |
-| ------------------- | ---------------------------- |
-| Promise<void> | Promise that returns no value.|
+ | Type | Description |
+ | ------------------- | ---------------------------- |
+ | Promise<void> | Promise that returns no value.|
**Example**
@@ -347,10 +347,10 @@ Closes a file. This API uses an asynchronous callback to return the result.
**Parameters**
-| Name | Type | Mandatory | Description |
-| -------- | ------------------------- | ---- | ------------ |
-| fd | number | Yes | File descriptor of the file to close.|
-| callback | AsyncCallback<void> | Yes | Callback invoked when the file is closed asynchronously.|
+ | Name | Type | Mandatory | Description |
+ | -------- | ------------------------- | ---- | ------------ |
+ | fd | number | Yes | File descriptor of the file to close.|
+ | callback | AsyncCallback<void> | Yes | Callback invoked when the file is closed asynchronously.|
**Example**
@@ -373,9 +373,9 @@ Synchronously closes a file.
**Parameters**
-| Name | Type | Mandatory | Description |
-| ---- | ------ | ---- | ------------ |
-| fd | number | Yes | File descriptor of the file to close.|
+ | Name | Type | Mandatory | Description |
+ | ---- | ------ | ---- | ------------ |
+ | fd | number | Yes | File descriptor of the file to close.|
**Example**
@@ -396,17 +396,17 @@ Copies a file. This API uses a promise to return the result.
**Parameters**
-| Name | Type | Mandatory | Description |
-| ---- | -------------------------- | ---- | ---------------------------------------- |
-| src | string\|number | Yes | Path or file descriptor of the file to copy. |
-| dest | string\|number | Yes | Path or file descriptor of the new file. |
-| mode | number | No | Option for overwriting the file of the same name in the destination path. The default value is **0**, which is the only value supported.
**0**: Completely overwrite the file with the same name and truncate the part that is not overwritten.|
+ | Name | Type | Mandatory | Description |
+ | ---- | -------------------------- | ---- | ---------------------------------------- |
+ | src | string\|number | Yes | Path or file descriptor of the file to copy. |
+ | dest | string\|number | Yes | Path or file descriptor of the new file. |
+ | mode | number | No | Option for overwriting the file of the same name in the destination path. The default value is **0**, which is the only value supported.
**0**: Completely overwrite the file with the same name and truncate the part that is not overwritten.|
**Return value**
-| Type | Description |
-| ------------------- | ---------------------------- |
-| Promise<void> | Promise that returns no value.|
+ | Type | Description |
+ | ------------------- | ---------------------------- |
+ | Promise<void> | Promise that returns no value.|
**Example**
@@ -431,12 +431,12 @@ Copies a file. This API uses an asynchronous callback to return the result.
**Parameters**
-| Name | Type | Mandatory | Description |
-| -------- | -------------------------- | ---- | ---------------------------------------- |
-| src | string\|number | Yes | Path or file descriptor of the file to copy. |
-| dest | string\|number | Yes | Path or file descriptor of the new file. |
-| mode | number | No | Option for overwriting the file of the same name in the destination path. The default value is **0**, which is the only value supported.
**0**: Completely overwrite the file with the same name and truncate the part that is not overwritten.|
-| callback | AsyncCallback<void> | Yes | Callback invoked when the file is copied asynchronously. |
+ | Name | Type | Mandatory | Description |
+ | -------- | -------------------------- | ---- | ---------------------------------------- |
+ | src | string\|number | Yes | Path or file descriptor of the file to copy. |
+ | dest | string\|number | Yes | Path or file descriptor of the new file. |
+ | mode | number | No | Option for overwriting the file of the same name in the destination path. The default value is **0**, which is the only value supported.
**0**: Completely overwrite the file with the same name and truncate the part that is not overwritten.|
+ | callback | AsyncCallback<void> | Yes | Callback invoked when the file is copied asynchronously. |
**Example**
@@ -459,11 +459,11 @@ Synchronously copies a file.
**Parameters**
-| Name | Type | Mandatory | Description |
-| ---- | -------------------------- | ---- | ---------------------------------------- |
-| src | string\|number | Yes | Path or file descriptor of the file to copy. |
-| dest | string\|number | Yes | Path or file descriptor of the new file. |
-| mode | number | No | Option for overwriting the file of the same name in the destination path. The default value is **0**, which is the only value supported.
**0**: Completely overwrite the file with the same name and truncate the part that is not overwritten.|
+ | Name | Type | Mandatory | Description |
+ | ---- | -------------------------- | ---- | ---------------------------------------- |
+ | src | string\|number | Yes | Path or file descriptor of the file to copy. |
+ | dest | string\|number | Yes | Path or file descriptor of the new file. |
+ | mode | number | No | Option for overwriting the file of the same name in the destination path. The default value is **0**, which is the only value supported.
**0**: Completely overwrite the file with the same name and truncate the part that is not overwritten.|
**Example**
@@ -487,13 +487,13 @@ Creates a directory. This API uses a promise to return the result.
| Name| Type | Mandatory| Description |
| ------ | ------ | ---- | ------------------------------------------------------------ |
| path | string | Yes | Application sandbox path of the directory. |
-| mode | number | No | Permission on the directory to create. You can specify multiple permissions, separated using a bitwise OR operator (|). The default value is **0o775**.
- **0o775**: The owner has the read, write, and execute permissions, and other users have the read and execute permissions.
- **0o700**: The owner has the read, write, and execute permissions.
- **0o400**: The owner has the read permission.
- **0o200**: The owner has the write permission.
- **0o100**: The owner has the execute permission.
- **0o070**: The user group has the read, write, and execute permissions.
- **0o040**: The user group has the read permission.
- **0o020**: The user group has the write permission.
- **0o010**: The user group has the execute permission.
- **0o007**: Other users have the read, write, and execute permissions.
- **0o004**: Other users have the read permission.
- **0o002**: Other users have the write permission.
- **0o001**: Other users have the execute permission.|
+| mode | number | No | Permission on the directory to create. You can specify multiple permissions, separated using a bitwise OR operator (|). The default value is **0o775**.
- **0o775**: The owner has the read, write, and execute permissions, and other users have the read and execute permissions.
- **0o700**: The owner has the read, write, and execute permissions.
- **0o400**: The owner has the read permission.
- **0o200**: The owner has the write permission.
- **0o100**: The owner has the execute permission.
- **0o070**: The user group has the read, write, and execute permissions.
- **0o040**: The user group has the read permission.
- **0o020**: The user group has the write permission.
- **0o010**: The user group has the execute permission.
- **0o007**: Other users have the read, write, and execute permissions.
- **0o004**: Other users have the read permission.
- **0o002**: Other users have the write permission.
- **0o001**: Other users have the execute permission. |
**Return value**
-| Type | Description |
-| ------------------- | ---------------------------- |
-| Promise<void> | Promise that returns no value.|
+ | Type | Description |
+ | ------------------- | ---------------------------- |
+ | Promise<void> | Promise that returns no value.|
**Example**
@@ -520,7 +520,7 @@ Creates a directory. This API uses an asynchronous callback to return the result
| Name | Type | Mandatory| Description |
| -------- | ------------------------- | ---- | ------------------------------------------------------------ |
| path | string | Yes | Application sandbox path of the directory. |
-| mode | number | No | Permission on the directory to create. You can specify multiple permissions, separated using a bitwise OR operator (|). The default value is **0o775**.
- **0o775**: The owner has the read, write, and execute permissions, and other users have the read and execute permissions.
- **0o700**: The owner has the read, write, and execute permissions.
- **0o400**: The owner has the read permission.
- **0o200**: The owner has the write permission.
- **0o100**: The owner has the execute permission.
- **0o070**: The user group has the read, write, and execute permissions.
- **0o040**: The user group has the read permission.
- **0o020**: The user group has the write permission.
- **0o010**: The user group has the execute permission.
- **0o007**: Other users have the read, write, and execute permissions.
- **0o004**: Other users have the read permission.
- **0o002**: Other users have the write permission.
- **0o001**: Other users have the execute permission.|
+| mode | number | No | Permission on the directory to create. You can specify multiple permissions, separated using a bitwise OR operator (|). The default value is **0o775**.
- **0o775**: The owner has the read, write, and execute permissions, and other users have the read and execute permissions.
- **0o700**: The owner has the read, write, and execute permissions.
- **0o400**: The owner has the read permission.
- **0o200**: The owner has the write permission.
- **0o100**: The owner has the execute permission.
- **0o070**: The user group has the read, write, and execute permissions.
- **0o040**: The user group has the read permission.
- **0o020**: The user group has the write permission.
- **0o010**: The user group has the execute permission.
- **0o007**: Other users have the read, write, and execute permissions.
- **0o004**: Other users have the read permission.
- **0o002**: Other users have the write permission.
- **0o001**: Other users have the execute permission. |
| callback | AsyncCallback<void> | Yes | Callback invoked when the directory is created asynchronously. |
**Example**
@@ -546,7 +546,7 @@ Synchronously creates a directory.
| Name| Type | Mandatory| Description |
| ------ | ------ | ---- | ------------------------------------------------------------ |
| path | string | Yes | Application sandbox path of the directory. |
-| mode | number | No | Permission on the directory to create. You can specify multiple permissions, separated using a bitwise OR operator (|). The default value is **0o775**.
- **0o775**: The owner has the read, write, and execute permissions, and other users have the read and execute permissions.
- **0o700**: The owner has the read, write, and execute permissions.
- **0o400**: The owner has the read permission.
- **0o200**: The owner has the write permission.
- **0o100**: The owner has the execute permission.
- **0o070**: The user group has the read, write, and execute permissions.
- **0o040**: The user group has the read permission.
- **0o020**: The user group has the write permission.
- **0o010**: The user group has the execute permission.
- **0o007**: Other users have the read, write, and execute permissions.
- **0o004**: Other users have the read permission.
- **0o002**: Other users have the write permission.
- **0o001**: Other users have the execute permission.|
+| mode | number | No | Permission on the directory to create. You can specify multiple permissions, separated using a bitwise OR operator (|). The default value is **0o775**.
- **0o775**: The owner has the read, write, and execute permissions, and other users have the read and execute permissions.
- **0o700**: The owner has the read, write, and execute permissions.
- **0o400**: The owner has the read permission.
- **0o200**: The owner has the write permission.
- **0o100**: The owner has the execute permission.
- **0o070**: The user group has the read, write, and execute permissions.
- **0o040**: The user group has the read permission.
- **0o020**: The user group has the write permission.
- **0o010**: The user group has the execute permission.
- **0o007**: Other users have the read, write, and execute permissions.
- **0o004**: Other users have the read permission.
- **0o002**: Other users have the write permission.
- **0o001**: Other users have the execute permission. |
**Example**
@@ -569,14 +569,14 @@ Opens a file. This API uses a promise to return the result.
| Name| Type | Mandatory| Description |
| ------ | ------ | ---- | ------------------------------------------------------------ |
| path | string | Yes | Application sandbox path of the file. |
-| flags | number | No | Option for opening the file. You must specify one of the following options. By default, the file is open in read-only mode.
- **0o0**: Open the file in read-only mode.
- **0o1**: Open the file in write-only mode.
- **0o2**: Open the file in read/write mode.
In addition, you can specify the following options, separated using a bitwise OR operator (|). By default, no additional option is specified.
- **0o100**: If the file does not exist, create it. If you use this option, you must also specify **mode**.
- **0o200**: If **0o100** is added and the file already exists, throw an exception.
- **0o1000**: If the file exists and is open in write-only or read/write mode, truncate the file length to 0.
- **0o2000**: Open the file in append mode. New data will be appended to the file (added to the end of the file).
- **0o4000**: If **path** points to a named pipe (also known as a FIFO), block special file, or character special file, perform non-blocking operations on the open file and in subsequent I/Os.
- **0o200000**: If **path** does not point to a directory, throw an exception.
- **0o400000**: If **path** points to a symbolic link, throw an exception.
- **0o4010000**: Open the file in synchronous I/O mode.|
-| mode | number | No | Permissions on the file. You can specify multiple permissions, separated using a bitwise OR operator (|). The default value is **0o666**.
- **0o666**: The owner, user group, and other users have the read and write permissions on the file.
- **0o700**: The owner has the read, write, and execute permissions.
- **0o400**: The owner has the read permission.
- **0o200**: The owner has the write permission.
- **0o100**: The owner has the execute permission.
- **0o070**: The user group has the read, write, and execute permissions.
- **0o040**: The user group has the read permission.
- **0o020**: The user group has the write permission.
- **0o010**: The user group has the execute permission.
- **0o007**: Other users have the read, write, and execute permissions.
- **0o004**: Other users have the read permission.
- **0o002**: Other users have the write permission.
- **0o001**: Other users have the execute permission.|
+| flags | number | No | Option for opening the file. You must specify one of the following options. By default, the file is open in read-only mode.
- **0o0**: Open the file in read-only mode.
- **0o1**: Open the file in write-only mode.
- **0o2**: Open the file in read/write mode.
In addition, you can specify the following options, separated using a bitwise OR operator (|). By default, no additional option is specified.
- **0o100**: If the file does not exist, create a file. The third parameter **mode** must also be specified.
- **0o200**: If **0o100** is added and the file already exists, throw an exception.
- **0o1000**: If the file exists and is open in write-only or read/write mode, truncate the file length to 0.
- **0o2000**: Open the file in append mode. New data will be appended to the file (written to the end of the file).
- **0o4000**: If **path** points to a named pipe (also known as a FIFO), block special file, or character special file, perform non-blocking operations on the open file and in subsequent I/Os.
- **0o200000**: If **path** does not point to a directory, throw an exception.
- **0o400000**: If **path** points to a symbolic link, throw an exception.
- **0o4010000**: Open the file in synchronous I/O mode.|
+| mode | number | No | Permissions on the file. You can specify multiple permissions, separated using a bitwise OR operator (|). The default value is **0o666**.
- **0o666**: The owner, user group, and other users have the read and write permissions.
- **0o700**: The owner has the read, write, and execute permissions.
- **0o400**: The owner has the read permission.
- **0o200**: The owner has the write permission.
- **0o100**: The owner has the execute permission.
- **0o070**: The user group has the read, write, and execute permissions.
- **0o040**: The user group has the read permission.
- **0o020**: The user group has the write permission.
- **0o010**: The user group has the execute permission.
- **0o007**: Other users have the read, write, and execute permissions.
- **0o004**: Other users have the read permission.
- **0o002**: Other users have the write permission.
- **0o001**: Other users have the execute permission. |
**Return value**
-| Type | Description |
-| --------------------- | ----------- |
-| Promise<number> | Promise used to return the file descriptor of the file opened.|
+ | Type | Description |
+ | --------------------- | ----------- |
+ | Promise<number> | Promise used to return the file descriptor of the file opened.|
**Example**
@@ -603,8 +603,8 @@ Opens a file. This API uses an asynchronous callback to return the result.
| Name | Type | Mandatory| Description |
| -------- | ------------------------------- | ---- | ------------------------------------------------------------ |
| path | string | Yes | Application sandbox path of the file. |
-| flags | number | No | Option for opening the file. You must specify one of the following options. By default, the file is open in read-only mode.
- **0o0**: Open the file in read-only mode.
- **0o1**: Open the file in write-only mode.
- **0o2**: Open the file in read/write mode.
In addition, you can specify the following options, separated using a bitwise OR operator (|). By default, no additional option is specified.
- **0o100**: If the file does not exist, create it. If you use this option, you must also specify **mode**.
- **0o200**: If **0o100** is added and the file already exists, throw an exception.
- **0o1000**: If the file exists and is open in write-only or read/write mode, truncate the file length to 0.
- **0o2000**: Open the file in append mode. New data will be appended to the file (added to the end of the file).
- **0o4000**: If **path** points to a named pipe (also known as a FIFO), block special file, or character special file, perform non-blocking operations on the open file and in subsequent I/Os.
- **0o200000**: If **path** does not point to a directory, throw an exception.
- **0o400000**: If **path** points to a symbolic link, throw an exception.
- **0o4010000**: Open the file in synchronous I/O mode.|
-| mode | number | No | Permissions on the file. You can specify multiple permissions, separated using a bitwise OR operator (|). The default value is **0o666**.
- **0o666**: The owner, user group, and other users have the read and write permissions on the file.
- **0o700**: The owner has the read, write, and execute permissions.
- **0o400**: The owner has the read permission.
- **0o200**: The owner has the write permission.
- **0o100**: The owner has the execute permission.
- **0o070**: The user group has the read, write, and execute permissions.
- **0o040**: The user group has the read permission.
- **0o020**: The user group has the write permission.
- **0o010**: The user group has the execute permission.
- **0o007**: Other users have the read, write, and execute permissions.
- **0o004**: Other users have the read permission.
- **0o002**: Other users have the write permission.
- **0o001**: Other users have the execute permission.|
+| flags | number | No | Option for opening the file. You must specify one of the following options. By default, the file is open in read-only mode.
- **0o0**: Open the file in read-only mode.
- **0o1**: Open the file in write-only mode.
- **0o2**: Open the file in read/write mode.
In addition, you can specify the following options, separated using a bitwise OR operator (|). By default, no additional option is specified.
- **0o100**: If the file does not exist, create a file. The third parameter **mode** must also be specified.
- **0o200**: If **0o100** is added and the file already exists, throw an exception.
- **0o1000**: If the file exists and is open in write-only or read/write mode, truncate the file length to 0.
- **0o2000**: Open the file in append mode. New data will be appended to the file (written to the end of the file).
- **0o4000**: If **path** points to a named pipe (also known as a FIFO), block special file, or character special file, perform non-blocking operations on the open file and in subsequent I/Os.
- **0o200000**: If **path** does not point to a directory, throw an exception.
- **0o400000**: If **path** points to a symbolic link, throw an exception.
- **0o4010000**: Open the file in synchronous I/O mode.|
+| mode | number | No | Permissions on the file. You can specify multiple permissions, separated using a bitwise OR operator (|). The default value is **0o666**.
- **0o666**: The owner, user group, and other users have the read and write permissions.
- **0o700**: The owner has the read, write, and execute permissions.
- **0o400**: The owner has the read permission.
- **0o200**: The owner has the write permission.
- **0o100**: The owner has the execute permission.
- **0o070**: The user group has the read, write, and execute permissions.
- **0o040**: The user group has the read permission.
- **0o020**: The user group has the write permission.
- **0o010**: The user group has the execute permission.
- **0o007**: Other users have the read, write, and execute permissions.
- **0o004**: Other users have the read permission.
- **0o002**: Other users have the write permission.
- **0o001**: Other users have the execute permission. |
| callback | AsyncCallback<number> | Yes | Callback invoked when the file is open asynchronously. |
**Example**
@@ -630,14 +630,14 @@ Synchronously opens a file.
| Name| Type | Mandatory| Description |
| ------ | ------ | ---- | ------------------------------------------------------------ |
| path | string | Yes | Application sandbox path of the file. |
-| flags | number | No | Option for opening the file. You must specify one of the following options. By default, the file is open in read-only mode.
- **0o0**: Open the file in read-only mode.
- **0o1**: Open the file in write-only mode.
- **0o2**: Open the file in read/write mode.
In addition, you can specify the following options, separated using a bitwise OR operator (|). By default, no additional option is specified.
- **0o100**: If the file does not exist, create it. If you use this option, you must also specify **mode**.
- **0o200**: If **0o100** is added and the file already exists, throw an exception.
- **0o1000**: If the file exists and is open in write-only or read/write mode, truncate the file length to 0.
- **0o2000**: Open the file in append mode. New data will be appended to the file (added to the end of the file).
- **0o4000**: If **path** points to a named pipe (also known as a FIFO), block special file, or character special file, perform non-blocking operations on the open file and in subsequent I/Os.
- **0o200000**: If **path** does not point to a directory, throw an exception.
- **0o400000**: If **path** points to a symbolic link, throw an exception.
- **0o4010000**: Open the file in synchronous I/O mode.|
-| mode | number | No | Permissions on the file. You can specify multiple permissions, separated using a bitwise OR operator (|). The default value is **0o666**.
- **0o666**: The owner, user group, and other users have the read and write permissions on the file.
- **0o640**: The owner has the read and write permissions, and the user group has the read permission.
- **0o700**: The owner has the read, write, and execute permissions.
- **0o400**: The owner has the read permission.
- **0o200**: The owner has the write permission.
- **0o100**: The owner has the execute permission.
- **0o070**: The user group has the read, write, and execute permissions.
- **0o040**: The user group has the read permission.
- **0o020**: The user group has the write permission.
- **0o010**: The user group has the execute permission.
- **0o007**: Other users have the read, write, and execute permissions.
- **0o004**: Other users have the read permission.
- **0o002**: Other users have the write permission.
- **0o001**: Other users have the execute permission.
The file permissions on newly created files are affected by umask, which is set as the process starts. Currently, the modification of umask is not open.|
+| flags | number | No | Option for opening the file. You must specify one of the following options. By default, the file is open in read-only mode.
- **0o0**: Open the file in read-only mode.
- **0o1**: Open the file in write-only mode.
- **0o2**: Open the file in read/write mode.
In addition, you can specify the following options, separated using a bitwise OR operator (|). By default, no additional option is specified.
- **0o100**: If the file does not exist, create a file. The third parameter **mode** must also be specified.
- **0o200**: If **0o100** is added and the file already exists, throw an exception.
- **0o1000**: If the file exists and is open in write-only or read/write mode, truncate the file length to 0.
- **0o2000**: Open the file in append mode. New data will be appended to the file (written to the end of the file).
- **0o4000**: If **path** points to a named pipe (also known as a FIFO), block special file, or character special file, perform non-blocking operations on the open file and in subsequent I/Os.
- **0o200000**: If **path** does not point to a directory, throw an exception.
- **0o400000**: If **path** points to a symbolic link, throw an exception.
- **0o4010000**: Open the file in synchronous I/O mode.|
+| mode | number | No | Permissions on the file. You can specify multiple permissions, separated using a bitwise OR operator (|). The default value is **0o666**.
- **0o666**: The owner, user group, and other users have the read and write permissions.
- **0o640**: The owner has the read and write permissions, and the user group has the read permission.
- **0o700**: The owner has the read, write, and execute permissions.
- **0o400**: The owner has the read permission.
- **0o200**: The owner has the write permission.
- **0o100**: The owner has the execute permission.
- **0o070**: The user group has the read, write, and execute permissions.
- **0o040**: The user group has the read permission.
- **0o020**: The user group has the write permission.
- **0o010**: The user group has the execute permission.
- **0o007**: Other users have the read, write, and execute permissions.
- **0o004**: Other users have the read permission.
- **0o002**: Other users have the write permission.
- **0o001**: Other users have the execute permission.
The file permissions on newly created files are affected by umask, which is set as the process starts. Currently, the modification of umask is not open. |
**Return value**
-| Type | Description |
-| ------ | ----------- |
-| number | File descriptor of the file opened.|
+ | Type | Description |
+ | ------ | ----------- |
+ | number | File descriptor of the file opened.|
**Example**
@@ -670,13 +670,13 @@ Reads data from a file. This API uses a promise to return the result.
| ------- | ----------- | ---- | ------------------------------------------------------------ |
| fd | number | Yes | File descriptor of the file to read. |
| buffer | ArrayBuffer | Yes | Buffer used to store the file data read. |
-| options | Object | No | The options are as follows:
- **offset** (number): position to store the data read in the buffer in reference to the start address of the buffer. The default value is **0**.
- **length** (number): length of the data to read. The default value is the buffer length minus the offset.
- **position** (number): position of the data to read in the file. By default, data is read from the current position.
Constraints: offset + length <= Buffer size|
+| options | Object | No | The options are as follows:
- **offset** (number): position to store the data read in the buffer in reference to the start address of the buffer. The default value is **0**.
- **length** (number): length of the data to read. The default value is the buffer length minus the offset.
- **position** (number): position of the data to read in the file. By default, data is read from the current position.
Constraints: offset + length <= Buffer size|
**Return value**
-| Type | Description |
-| ---------------------------------- | ------ |
-| Promise<[ReadOut](#readout)> | Promise used to return the data read.|
+ | Type | Description |
+ | ---------------------------------- | ------ |
+ | Promise<[ReadOut](#readout)> | Promise used to return the data read.|
**Example**
@@ -703,12 +703,12 @@ Reads data from a file. This API uses an asynchronous callback to return the res
**Parameters**
-| Name | Type | Mandatory | Description |
-| -------- | ---------------------------------------- | ---- | ---------------------------------------- |
-| fd | number | Yes | File descriptor of the file to read. |
-| buffer | ArrayBuffer | Yes | Buffer used to store the file data read. |
-| options | Object | No | The options are as follows:
- **offset** (number): position to store the data read in the buffer in reference to the start address of the buffer. The default value is **0**.
- **length** (number): length of the data to read. The default value is the buffer length minus the offset.
- **position** (number): position of the data to read in the file. By default, data is read from the current position.
Constraints: offset + length <= Buffer size |
-| callback | AsyncCallback<[ReadOut](#readout)> | Yes | Callback invoked when the data is read asynchronously. |
+ | Name | Type | Mandatory | Description |
+ | -------- | ---------------------------------------- | ---- | ---------------------------------------- |
+ | fd | number | Yes | File descriptor of the file to read. |
+ | buffer | ArrayBuffer | Yes | Buffer used to store the file data read. |
+ | options | Object | No | The options are as follows:
- **offset** (number): position to store the data read in the buffer in reference to the start address of the buffer. The default value is **0**.
- **length** (number): length of the data to read. The default value is the buffer length minus the offset.
- **position** (number): position of the data to read in the file. By default, data is read from the current position.
Constraints: offset + length <= Buffer size |
+ | callback | AsyncCallback<[ReadOut](#readout)> | Yes | Callback invoked when the data is read asynchronously. |
**Example**
@@ -735,17 +735,17 @@ Synchronously reads data from a file.
**Parameters**
-| Name | Type | Mandatory | Description |
-| ------- | ----------- | ---- | ---------------------------------------- |
-| fd | number | Yes | File descriptor of the file to read. |
-| buffer | ArrayBuffer | Yes | Buffer used to store the file data read. |
-| options | Object | No | The options are as follows:
- **offset** (number): position to store the data read in the buffer in reference to the start address of the buffer. The default value is **0**.
- **length** (number): length of the data to read. The default value is the buffer length minus the offset.
- **position** (number): position of the data to read in the file. By default, data is read from the current position.
Constraints: offset + length <= Buffer size |
+ | Name | Type | Mandatory | Description |
+ | ------- | ----------- | ---- | ---------------------------------------- |
+ | fd | number | Yes | File descriptor of the file to read. |
+ | buffer | ArrayBuffer | Yes | Buffer used to store the file data read. |
+ | options | Object | No | The options are as follows:
- **offset** (number): position to store the data read in the buffer in reference to the start address of the buffer. The default value is **0**.
- **length** (number): length of the data to read. The default value is the buffer length minus the offset.
- **position** (number): position of the data to read in the file. By default, data is read from the current position.
Constraints: offset + length <= Buffer size |
**Return value**
-| Type | Description |
-| ------ | -------- |
-| number | Length of the data read.|
+ | Type | Description |
+ | ------ | -------- |
+ | number | Length of the data read.|
**Example**
@@ -773,9 +773,9 @@ Deletes a directory. This API uses a promise to return the result.
**Return value**
-| Type | Description |
-| ------------------- | ---------------------------- |
-| Promise<void> | Promise that returns no value.|
+ | Type | Description |
+ | ------------------- | ---------------------------- |
+ | Promise<void> | Promise that returns no value.|
**Example**
@@ -853,9 +853,9 @@ Deletes a file. This API uses a promise to return the result.
**Return value**
-| Type | Description |
-| ------------------- | ---------------------------- |
-| Promise<void> | Promise that returns no value.|
+ | Type | Description |
+ | ------------------- | ---------------------------- |
+ | Promise<void> | Promise that returns no value.|
**Example**
@@ -926,17 +926,17 @@ Writes data into a file. This API uses a promise to return the result.
**Parameters**
-| Name | Type | Mandatory | Description |
-| ------- | ------------------------------- | ---- | ---------------------------------------- |
-| fd | number | Yes | File descriptor of the file to write. |
-| buffer | ArrayBuffer\|string | Yes | Data to write. It can be a string or data from a buffer. |
-| options | Object | No | The options are as follows:
- **offset** (number): position of the data to write in reference to the start address of the data. The default value is **0**.
- **length** (number): length of the data to write. The default value is the buffer length minus the offset.
- **position** (number): start position to write the data in the file. By default, data is written from the current position.
- **encoding** (string): format of the string to be encoded. The default value is **utf-8**, which is the only value supported.
Constraints: offset + length <= Buffer size|
+ | Name | Type | Mandatory | Description |
+ | ------- | ------------------------------- | ---- | ---------------------------------------- |
+ | fd | number | Yes | File descriptor of the file to write. |
+ | buffer | ArrayBuffer\|string | Yes | Data to write. It can be a string or data from a buffer. |
+ | options | Object | No | The options are as follows:
- **offset** (number): position of the data to write in reference to the start address of the data. The default value is **0**.
- **length** (number): length of the data to write. The default value is the buffer length minus the offset.
- **position** (number): start position to write the data in the file. By default, data is written from the current position.
- **encoding** (string): format of the data to be encoded when the data is a string. The default value is **'utf-8'**, which is the only value supported.
Constraints: offset + length <= Buffer size|
**Return value**
-| Type | Description |
-| --------------------- | -------- |
-| Promise<number> | Promise used to return the length of the data written.|
+ | Type | Description |
+ | --------------------- | -------- |
+ | Promise<number> | Promise used to return the length of the data written.|
**Example**
@@ -961,12 +961,12 @@ Writes data into a file. This API uses an asynchronous callback to return the re
**Parameters**
-| Name | Type | Mandatory | Description |
-| -------- | ------------------------------- | ---- | ---------------------------------------- |
-| fd | number | Yes | File descriptor of the file to write. |
-| buffer | ArrayBuffer\|string | Yes | Data to write. It can be a string or data from a buffer. |
-| options | Object | No | The options are as follows:
- **offset** (number): position of the data to write in reference to the start address of the data. The default value is **0**.
- **length** (number): length of the data to write. The default value is the buffer length minus the offset.
- **position** (number): start position to write the data in the file. By default, data is written from the current position.
- **encoding** (string): format of the string to be encoded. The default value is **utf-8**, which is the only value supported.
Constraints: offset + length <= Buffer size|
-| callback | AsyncCallback<number> | Yes | Callback invoked when the data is written asynchronously. |
+ | Name | Type | Mandatory | Description |
+ | -------- | ------------------------------- | ---- | ---------------------------------------- |
+ | fd | number | Yes | File descriptor of the file to write. |
+ | buffer | ArrayBuffer\|string | Yes | Data to write. It can be a string or data from a buffer. |
+ | options | Object | No | The options are as follows:
- **offset** (number): position of the data to write in reference to the start address of the data. The default value is **0**.
- **length** (number): length of the data to write. The default value is the buffer length minus the offset.
- **position** (number): start position to write the data in the file. By default, data is written from the current position.
- **encoding** (string): format of the data to be encoded when the data is a string. The default value is **'utf-8'**, which is the only value supported.
Constraints: offset + length <= Buffer size|
+ | callback | AsyncCallback<number> | Yes | Callback invoked when the data is written asynchronously. |
**Example**
@@ -991,17 +991,17 @@ Synchronously writes data into a file.
**Parameters**
-| Name | Type | Mandatory | Description |
-| ------- | ------------------------------- | ---- | ---------------------------------------- |
-| fd | number | Yes | File descriptor of the file to write. |
-| buffer | ArrayBuffer\|string | Yes | Data to write. It can be a string or data from a buffer. |
-| options | Object | No | The options are as follows:
- **offset** (number): position of the data to write in reference to the start address of the data. The default value is **0**.
- **length** (number): length of the data to write. The default value is the buffer length minus the offset.
- **position** (number): start position to write the data in the file. By default, data is written from the current position.
- **encoding** (string): format of the string to be encoded. The default value is **utf-8**, which is the only value supported.
Constraints: offset + length <= Buffer size|
+ | Name | Type | Mandatory | Description |
+ | ------- | ------------------------------- | ---- | ---------------------------------------- |
+ | fd | number | Yes | File descriptor of the file to write. |
+ | buffer | ArrayBuffer\|string | Yes | Data to write. It can be a string or data from a buffer. |
+ | options | Object | No | The options are as follows:
- **offset** (number): position of the data to write in reference to the start address of the data. The default value is **0**.
- **length** (number): length of the data to write. The default value is the buffer length minus the offset.
- **position** (number): start position to write the data in the file. By default, data is written from the current position.
- **encoding** (string): format of the data to be encoded when the data is a string. The default value is **'utf-8'**, which is the only value supported.
Constraints: offset + length <= Buffer size|
**Return value**
-| Type | Description |
-| ------ | -------- |
-| number | Length of the data written in the file.|
+ | Type | Description |
+ | ------ | -------- |
+ | number | Length of the data written in the file.|
**Example**
@@ -1029,9 +1029,9 @@ Calculates the hash value of a file. This API uses a promise to return the resul
**Return value**
-| Type | Description |
-| --------------------- | -------------------------- |
-| Promise<string> | Promise used to return the hash value obtained. The hash value is a hexadecimal string consisting of digits and uppercase letters.|
+ | Type | Description |
+ | --------------------- | -------------------------- |
+ | Promise<string> | Promise used to return the hash value obtained. The hash value is a hexadecimal string consisting of digits and uppercase letters.|
**Example**
@@ -1086,13 +1086,13 @@ Changes file permissions. This API uses a promise to return the result.
| Name| Type | Mandatory| Description |
| ------ | ------ | ---- | ------------------------------------------------------------ |
| path | string | Yes | Application sandbox path of the file. |
-| mode | number | Yes | Permissions on the file. You can specify multiple permissions, separated using a bitwise OR operator (|).
- **0o700**: The owner has the read, write, and execute permissions.
- **0o400**: The owner has the read permission.
- **0o200**: The owner has the write permission.
- **0o100**: The owner has the execute permission.
- **0o070**: The user group has the read, write, and execute permissions.
- **0o040**: The user group has the read permission.
- **0o020**: The user group has the write permission.
- **0o010**: The user group has the execute permission.
- **0o007**: Other users have the read, write, and execute permissions.
- **0o004**: Other users have the read permission.
- **0o002**: Other users have the write permission.
- **0o001**: Other users have the execute permission.|
+| mode | number | Yes | Permissions on the file. You can specify multiple permissions, separated using a bitwise OR operator (|).
- **0o700**: The owner has the read, write, and execute permissions.
- **0o400**: The owner has the read permission.
- **0o200**: The owner has the write permission.
- **0o100**: The owner has the execute permission.
- **0o070**: The user group has the read, write, and execute permissions.
- **0o040**: The user group has the read permission.
- **0o020**: The user group has the write permission.
- **0o010**: The user group has the execute permission.
- **0o007**: Other users have the read, write, and execute permissions.
- **0o004**: Other users have the read permission.
- **0o002**: Other users have the write permission.
- **0o001**: Other users have the execute permission. |
**Return value**
-| Type | Description |
-| ------------------- | ---------------------------- |
-| Promise<void> | Promise that returns no value.|
+ | Type | Description |
+ | ------------------- | ---------------------------- |
+ | Promise<void> | Promise that returns no value.|
**Example**
@@ -1119,7 +1119,7 @@ Changes file permissions. This API uses an asynchronous callback to return the r
| Name | Type | Mandatory| Description |
| -------- | ------------------------- | ---- | ------------------------------------------------------------ |
| path | string | Yes | Application sandbox path of the file. |
-| mode | number | Yes | Permissions on the file. You can specify multiple permissions, separated using a bitwise OR operator (|).
- **0o700**: The owner has the read, write, and execute permissions.
- **0o400**: The owner has the read permission.
- **0o200**: The owner has the write permission.
- **0o100**: The owner has the execute permission.
- **0o070**: The user group has the read, write, and execute permissions.
- **0o040**: The user group has the read permission.
- **0o020**: The user group has the write permission.
- **0o010**: The user group has the execute permission.
- **0o007**: Other users have the read, write, and execute permissions.
- **0o004**: Other users have the read permission.
- **0o002**: Other users have the write permission.
- **0o001**: Other users have the execute permission.|
+| mode | number | Yes | Permissions on the file. You can specify multiple permissions, separated using a bitwise OR operator (|).
- **0o700**: The owner has the read, write, and execute permissions.
- **0o400**: The owner has the read permission.
- **0o200**: The owner has the write permission.
- **0o100**: The owner has the execute permission.
- **0o070**: The user group has the read, write, and execute permissions.
- **0o040**: The user group has the read permission.
- **0o020**: The user group has the write permission.
- **0o010**: The user group has the execute permission.
- **0o007**: Other users have the read, write, and execute permissions.
- **0o004**: Other users have the read permission.
- **0o002**: Other users have the write permission.
- **0o001**: Other users have the execute permission. |
| callback | AsyncCallback<void> | Yes | Callback invoked when the file permissions are changed asynchronously. |
**Example**
@@ -1145,7 +1145,7 @@ Synchronously changes file permissions.
| Name| Type | Mandatory| Description |
| ------ | ------ | ---- | ------------------------------------------------------------ |
| path | string | Yes | Application sandbox path of the file. |
-| mode | number | Yes | Permissions on the file. You can specify multiple permissions, separated using a bitwise OR operator (|).
- **0o700**: The owner has the read, write, and execute permissions.
- **0o400**: The owner has the read permission.
- **0o200**: The owner has the write permission.
- **0o100**: The owner has the execute permission.
- **0o070**: The user group has the read, write, and execute permissions.
- **0o040**: The user group has the read permission.
- **0o020**: The user group has the write permission.
- **0o010**: The user group has the execute permission.
- **0o007**: Other users have the read, write, and execute permissions.
- **0o004**: Other users have the read permission.
- **0o002**: Other users have the write permission.
- **0o001**: Other users have the execute permission.|
+| mode | number | Yes | Permissions on the file. You can specify multiple permissions, separated using a bitwise OR operator (|).
- **0o700**: The owner has the read, write, and execute permissions.
- **0o400**: The owner has the read permission.
- **0o200**: The owner has the write permission.
- **0o100**: The owner has the execute permission.
- **0o070**: The user group has the read, write, and execute permissions.
- **0o040**: The user group has the read permission.
- **0o020**: The user group has the write permission.
- **0o010**: The user group has the execute permission.
- **0o007**: Other users have the read, write, and execute permissions.
- **0o004**: Other users have the read permission.
- **0o002**: Other users have the write permission.
- **0o001**: Other users have the execute permission. |
**Example**
@@ -1165,15 +1165,15 @@ Obtains file information based on the file descriptor. This API uses a promise t
**Parameters**
-| Name | Type | Mandatory | Description |
-| ---- | ------ | ---- | ------------ |
-| fd | number | Yes | Descriptor of the target file.|
+ | Name | Type | Mandatory | Description |
+ | ---- | ------ | ---- | ------------ |
+ | fd | number | Yes | Descriptor of the target file.|
**Return value**
-| Type | Description |
-| ---------------------------- | ---------- |
-| Promise<[Stat](#stat)> | Promise used to return the file information.|
+ | Type | Description |
+ | ---------------------------- | ---------- |
+ | Promise<[Stat](#stat)> | Promise used to return the file information obtained.|
**Example**
@@ -1198,10 +1198,10 @@ Obtains file information based on the file descriptor. This API uses an asynchro
**Parameters**
-| Name | Type | Mandatory | Description |
-| -------- | ---------------------------------- | ---- | ---------------- |
-| fd | number | Yes | File descriptor of the target file. |
-| callback | AsyncCallback<[Stat](#stat)> | Yes | Callback invoked to return the file information obtained.|
+ | Name | Type | Mandatory | Description |
+ | -------- | ---------------------------------- | ---- | ---------------- |
+ | fd | number | Yes | File descriptor of the target file. |
+ | callback | AsyncCallback<[Stat](#stat)> | Yes | Callback invoked to return the file information obtained.|
**Example**
@@ -1224,15 +1224,15 @@ Synchronously obtains file information based on the file descriptor.
**Parameters**
-| Name | Type | Mandatory | Description |
-| ---- | ------ | ---- | ------------ |
-| fd | number | Yes | File descriptor of the target file.|
+ | Name | Type | Mandatory | Description |
+ | ---- | ------ | ---- | ------------ |
+ | fd | number | Yes | File descriptor of the target file.|
**Return value**
-| Type | Description |
-| ------------- | ---------- |
-| [Stat](#stat) | File information obtained.|
+ | Type | Description |
+ | ------------- | ---------- |
+ | [Stat](#stat) | File information obtained.|
**Example**
@@ -1253,16 +1253,16 @@ Truncates a file based on the file descriptor. This API uses a promise to return
**Parameters**
-| Name | Type | Mandatory | Description |
-| ---- | ------ | ---- | ---------------- |
-| fd | number | Yes | File descriptor of the file to truncate. |
-| len | number | No | File length, in bytes, after truncation.|
+ | Name | Type | Mandatory | Description |
+ | ---- | ------ | ---- | ---------------- |
+ | fd | number | Yes | File descriptor of the file to truncate. |
+ | len | number | No | File length, in bytes, after truncation.|
**Return value**
-| Type | Description |
-| ------------------- | ---------------------------- |
-| Promise<void> | Promise that returns no value.|
+ | Type | Description |
+ | ------------------- | ---------------------------- |
+ | Promise<void> | Promise that returns no value.|
**Example**
@@ -1287,11 +1287,11 @@ Truncates a file based on the file descriptor. This API uses an asynchronous cal
**Parameters**
-| Name | Type | Mandatory | Description |
-| -------- | ------------------------- | ---- | ---------------- |
-| fd | number | Yes | File descriptor of the file to truncate. |
-| len | number | No | File length, in bytes, after truncation.|
-| callback | AsyncCallback<void> | Yes | Callback that returns no value. |
+ | Name | Type | Mandatory | Description |
+ | -------- | ------------------------- | ---- | ---------------- |
+ | fd | number | Yes | File descriptor of the file to truncate. |
+ | len | number | No | File length, in bytes, after truncation.|
+ | callback | AsyncCallback<void> | Yes | Callback that returns no value. |
**Example**
@@ -1315,10 +1315,10 @@ Synchronously truncates a file based on the file descriptor.
**Parameters**
-| Name | Type | Mandatory | Description |
-| ---- | ------ | ---- | ---------------- |
-| fd | number | Yes | File descriptor of the file to truncate. |
-| len | number | No | File length, in bytes, after truncation.|
+ | Name | Type | Mandatory | Description |
+ | ---- | ------ | ---- | ---------------- |
+ | fd | number | Yes | File descriptor of the file to truncate. |
+ | len | number | No | File length, in bytes, after truncation.|
**Example**
@@ -1347,9 +1347,9 @@ Truncates a file based on the file path. This API uses a promise to return the r
**Return value**
-| Type | Description |
-| ------------------- | ---------------------------- |
-| Promise<void> | Promise that returns no value.|
+ | Type | Description |
+ | ------------------- | ---------------------------- |
+ | Promise<void> | Promise that returns no value.|
**Example**
@@ -1376,7 +1376,7 @@ Truncates a file based on the file path. This API uses an asynchronous callback
| Name | Type | Mandatory| Description |
| -------- | ------------------------- | ---- | -------------------------------- |
-| path | string | Yes | Application sandbox path of the file to truncate.|
+| path | string | Yes | Application sandbox path of the file to truncate. |
| len | number | No | File length, in bytes, after truncation.|
| callback | AsyncCallback<void> | Yes | Callback that returns no value. |
@@ -1403,7 +1403,7 @@ Synchronously truncates a file based on the file path.
| Name| Type | Mandatory| Description |
| ------ | ------ | ---- | -------------------------------- |
-| path | string | Yes | Application sandbox path of the file to truncate.|
+| path | string | Yes | Application sandbox path of the file to truncate. |
| len | number | No | File length, in bytes, after truncation.|
**Example**
@@ -1428,13 +1428,13 @@ Reads the text content of a file. This API uses a promise to return the result.
| Name | Type | Mandatory| Description |
| -------- | ------ | ---- | ------------------------------------------------------------ |
| filePath | string | Yes | Application sandbox path of the file to read. |
-| options | Object | No | The options are as follows:
- **position** (number): position of the data to read in the file. By default, data is read from the current position.
- **length** (number): length of the data to read. The default value is the buffer length minus the offset.
- **encoding** (string): format of the data (string) to be encoded. The default value is **utf-8**, which is the only value supported.|
+| options | Object | No | The options are as follows:
- **position** (number): position of the data to read in the file. By default, data is read from the current position.
- **length** (number): length of the data to read. The default value is the buffer length minus the offset.
- **encoding** (string): format of the string to be encoded. The default value is **'utf-8'**, which is the only value supported.|
**Return value**
-| Type | Description |
-| --------------------- | ---------- |
-| Promise<string> | Promise used to return the content read.|
+ | Type | Description |
+ | --------------------- | ---------- |
+ | Promise<string> | Promise used to return the content read.|
**Example**
@@ -1461,7 +1461,7 @@ Reads the text content of a file. This API uses an asynchronous callback to retu
| Name | Type | Mandatory| Description |
| -------- | --------------------------- | ---- | ------------------------------------------------------------ |
| filePath | string | Yes | Application sandbox path of the file to read. |
-| options | Object | No | The options are as follows:
- **position** (number): position of the data to read in the file. By default, data is read from the current position.
- **length** (number): length of the data to read. The default value is the buffer length minus the offset.
- **encoding**: format of the string to be encoded. The default value is **utf-8**, which is the only value supported.|
+| options | Object | No | The options are as follows:
- **position** (number): position of the data to read in the file. By default, data is read from the current position.
- **length** (number): length of the data to read. The default value is the buffer length minus the offset.
- **encoding** (string): format of the string to be encoded. The default value is **'utf-8'**, which is the only value supported.|
| callback | AsyncCallback<string> | Yes | Callback used to return the content read. |
**Example**
@@ -1487,13 +1487,13 @@ Synchronously reads the text of a file.
| Name | Type | Mandatory| Description |
| -------- | ------ | ---- | ------------------------------------------------------------ |
| filePath | string | Yes | Application sandbox path of the file to read. |
-| options | Object | No | The options are as follows:
- **position** (number): position of the data to read in the file. By default, data is read from the current position.
- **length** (number): length of the data to read. The default value is the buffer length minus the offset.
- **encoding** (string): format of the data (string) to be encoded. The default value is **utf-8**, which is the only value supported.|
+| options | Object | No | The options are as follows:
- **position** (number): position of the data to read in the file. By default, data is read from the current position.
- **length** (number): length of the data to read. The default value is the buffer length minus the offset.
- **encoding** (string): format of the string to be encoded. The default value is **'utf-8'**, which is the only value supported.|
**Return value**
-| Type | Description |
-| ------ | -------------------- |
-| string | Promise used to return the content of the file read.|
+ | Type | Description |
+ | ------ | -------------------- |
+ | string | Promise used to return the content of the file read.|
**Example**
@@ -1519,9 +1519,9 @@ Obtains link information. This API uses a promise to return the result.
**Return value**
-| Type | Description |
-| ---------------------------- | ---------- |
-| Promise<[Stat](#stat)> | Promise used to return the link information obtained. For details, see [Stat](#stat).|
+ | Type | Description |
+ | ---------------------------- | ---------- |
+ | Promise<[Stat](#stat)> | Promise used to return the link information obtained. For details, see [Stat](#stat).|
**Example**
@@ -1576,9 +1576,9 @@ Synchronously obtains the link information.
**Return value**
-| Type | Description |
-| ------------- | ---------- |
-| [Stat](#stat) | Link information obtained.|
+ | Type | Description |
+ | ------------- | ---------- |
+ | [Stat](#stat) | Link information obtained.|
**Example**
@@ -1605,9 +1605,9 @@ Renames a file. This API uses a promise to return the result.
**Return value**
-| Type | Description |
-| ------------------- | ---------------------------- |
-| Promise<void> | Promise that returns no value.|
+ | Type | Description |
+ | ------------------- | ---------------------------- |
+ | Promise<void> | Promise that returns no value.|
**Example**
@@ -1682,15 +1682,15 @@ Flushes data of a file to disk. This API uses a promise to return the result.
**Parameters**
-| Name | Type | Mandatory | Description |
-| ---- | ------ | ---- | ------------ |
-| fd | number | Yes | File descriptor of the file to flush.|
+ | Name | Type | Mandatory | Description |
+ | ---- | ------ | ---- | ------------ |
+ | fd | number | Yes | File descriptor of the file to flush.|
**Return value**
-| Type | Description |
-| ------------------- | ---------------------------- |
-| Promise<void> | Promise that returns no value.|
+ | Type | Description |
+ | ------------------- | ---------------------------- |
+ | Promise<void> | Promise that returns no value.|
**Example**
@@ -1715,10 +1715,10 @@ Flushes data of a file to disk. This API uses an asynchronous callback to return
**Parameters**
-| Name | Type | Mandatory | Description |
-| -------- | ------------------------- | ---- | --------------- |
-| fd | number | Yes | File descriptor of the file to flush. |
-| Callback | AsyncCallback<void> | Yes | Callback invoked when the file is synchronized in asynchronous mode.|
+ | Name | Type | Mandatory | Description |
+ | -------- | ------------------------- | ---- | --------------- |
+ | fd | number | Yes | File descriptor of the file to flush. |
+ | Callback | AsyncCallback<void> | Yes | Callback invoked when the file is synchronized in asynchronous mode.|
**Example**
@@ -1741,9 +1741,9 @@ Flushes data of a file to disk in synchronous mode.
**Parameters**
-| Name | Type | Mandatory | Description |
-| ---- | ------ | ---- | ------------ |
-| fd | number | Yes | File descriptor of the file to flush.|
+ | Name | Type | Mandatory | Description |
+ | ---- | ------ | ---- | ------------ |
+ | fd | number | Yes | File descriptor of the file to flush.|
**Example**
@@ -1764,15 +1764,15 @@ Flushes data of a file to disk. This API uses a promise to return the result. **
**Parameters**
-| Name | Type | Mandatory | Description |
-| ---- | ------ | ---- | ------------ |
-| fd | number | Yes | File descriptor of the file to flush.|
+ | Name | Type | Mandatory | Description |
+ | ---- | ------ | ---- | ------------ |
+ | fd | number | Yes | File descriptor of the file to flush.|
**Return value**
-| Type | Description |
-| ------------------- | ---------------------------- |
-| Promise<void> | Promise that returns no value.|
+ | Type | Description |
+ | ------------------- | ---------------------------- |
+ | Promise<void> | Promise that returns no value.|
**Example**
@@ -1797,10 +1797,10 @@ Flushes data of a file to disk. This API uses an asynchronous callback to return
**Parameters**
-| Name | Type | Mandatory | Description |
-| -------- | ------------------------------- | ---- | ----------------- |
-| fd | number | Yes | File descriptor of the file to synchronize. |
-| callback | AsyncCallback<void> | Yes | Callback invoked when the file data is synchronized in asynchronous mode.|
+ | Name | Type | Mandatory | Description |
+ | -------- | ------------------------------- | ---- | ----------------- |
+ | fd | number | Yes | File descriptor of the file to synchronize. |
+ | callback | AsyncCallback<void> | Yes | Callback invoked when the file data is synchronized in asynchronous mode.|
**Example**
@@ -1823,9 +1823,9 @@ Synchronizes data in a file in synchronous mode.
**Parameters**
-| Name | Type | Mandatory | Description |
-| ---- | ------ | ---- | ------------ |
-| fd | number | Yes | File descriptor of the file to flush.|
+ | Name | Type | Mandatory | Description |
+ | ---- | ------ | ---- | ------------ |
+ | fd | number | Yes | File descriptor of the file to flush.|
**Example**
@@ -1853,9 +1853,9 @@ Creates a symbolic link based on the file path. This API uses a promise to retur
**Return value**
-| Type | Description |
-| ------------------- | ---------------------------- |
-| Promise<void> | Promise that returns no value.|
+ | Type | Description |
+ | ------------------- | ---------------------------- |
+ | Promise<void> | Promise that returns no value.|
**Example**
@@ -1939,9 +1939,9 @@ Changes the file owner based on the file path. This API uses a promise to return
**Return value**
-| Type | Description |
-| ------------------- | ---------------------------- |
-| Promise<void> | Promise that returns no value.|
+ | Type | Description |
+ | ------------------- | ---------------------------- |
+ | Promise<void> | Promise that returns no value.|
**Example**
@@ -2019,15 +2019,15 @@ Creates a temporary directory. This API uses a promise to return the result.
**Parameters**
-| Name | Type | Mandatory | Description |
-| ------ | ------ | ---- | --------------------------- |
-| prefix | string | Yes | A randomly generated string used to replace "XXXXXX" in a directory.|
+ | Name | Type | Mandatory | Description |
+ | ------ | ------ | ---- | --------------------------- |
+ | prefix | string | Yes | A randomly generated string used to replace "XXXXXX" in a directory.|
**Return value**
-| Type | Description |
-| --------------------- | ---------- |
-| Promise<string> | Promise used to return the unique directory generated.|
+ | Type | Description |
+ | --------------------- | ---------- |
+ | Promise<string> | Promise used to return the unique directory generated.|
**Example**
@@ -2050,10 +2050,10 @@ Creates a temporary directory. This API uses an asynchronous callback to return
**Parameters**
-| Name | Type | Mandatory | Description |
-| -------- | --------------------------- | ---- | --------------------------- |
-| prefix | string | Yes | A randomly generated string used to replace "XXXXXX" in a directory.|
-| callback | AsyncCallback<string> | Yes | Callback invoked when a temporary directory is created asynchronously. |
+ | Name | Type | Mandatory | Description |
+ | -------- | --------------------------- | ---- | --------------------------- |
+ | prefix | string | Yes | A randomly generated string used to replace "XXXXXX" in a directory.|
+ | callback | AsyncCallback<string> | Yes | Callback invoked when a temporary directory is created asynchronously. |
**Example**
@@ -2074,15 +2074,15 @@ Synchronously creates a temporary directory.
**Parameters**
-| Name | Type | Mandatory | Description |
-| ------ | ------ | ---- | --------------------------- |
-| prefix | string | Yes | A randomly generated string used to replace "XXXXXX" in a directory.|
+ | Name | Type | Mandatory | Description |
+ | ------ | ------ | ---- | --------------------------- |
+ | prefix | string | Yes | A randomly generated string used to replace "XXXXXX" in a directory.|
**Return value**
-| Type | Description |
-| ------ | ---------- |
-| string | Unique path generated.|
+ | Type | Description |
+ | ------ | ---------- |
+ | string | Unique path generated.|
**Example**
@@ -2101,16 +2101,16 @@ Changes file permissions based on the file descriptor. This API uses a promise t
**Parameters**
-| Name | Type | Mandatory | Description |
-| ---- | ------ | ---- | ---------------------------------------- |
-| fd | number | Yes | File descriptor of the target file. |
-| mode | number | Yes | Permissions on the file. You can specify multiple permissions, separated using a bitwise OR operator (|).
- **0o700**: The owner has the read, write, and execute permissions.
- **0o400**: The owner has the read permission.
- **0o200**: The owner has the write permission.
- **0o100**: The owner has the execute permission.
- **0o070**: The user group has the read, write, and execute permissions.
- **0o040**: The user group has the read permission.
- **0o020**: The user group has the write permission.
- **0o010**: The user group has the execute permission.
- **0o007**: Other users have the read, write, and execute permissions.
- **0o004**: Other users have the read permission.
- **0o002**: Other users have the write permission.
- **0o001**: Other users have the execute permission.|
+ | Name | Type | Mandatory | Description |
+ | ---- | ------ | ---- | ---------------------------------------- |
+ | fd | number | Yes | File descriptor of the target file. |
+| mode | number | Yes | Permissions on the file. You can specify multiple permissions, separated using a bitwise OR operator (|).
- **0o700**: The owner has the read, write, and execute permissions.
- **0o400**: The owner has the read permission.
- **0o200**: The owner has the write permission.
- **0o100**: The owner has the execute permission.
- **0o070**: The user group has the read, write, and execute permissions.
- **0o040**: The user group has the read permission.
- **0o020**: The user group has the write permission.
- **0o010**: The user group has the execute permission.
- **0o007**: Other users have the read, write, and execute permissions.
- **0o004**: Other users have the read permission.
- **0o002**: Other users have the write permission.
- **0o001**: Other users have the execute permission. |
**Return value**
-| Type | Description |
-| ------------------- | ---------------------------- |
-| Promise<void> | Promise that returns no value.|
+ | Type | Description |
+ | ------------------- | ---------------------------- |
+ | Promise<void> | Promise that returns no value.|
**Example**
@@ -2136,11 +2136,11 @@ Changes file permissions based on the file descriptor. This API uses an asynchro
**Parameters**
-| Name | Type | Mandatory | Description |
-| -------- | ------------------------------- | ---- | ---------------------------------------- |
-| fd | number | Yes | File descriptor of the target file. |
-| mode | number | Yes | Permissions on the file. You can specify multiple permissions, separated using a bitwise OR operator (|).
- **0o700**: The owner has the read, write, and execute permissions.
- **0o400**: The owner has the read permission.
- **0o200**: The owner has the write permission.
- **0o100**: The owner has the execute permission.
- **0o070**: The user group has the read, write, and execute permissions.
- **0o040**: The user group has the read permission.
- **0o020**: The user group has the write permission.
- **0o010**: The user group has the execute permission.
- **0o007**: Other users have the read, write, and execute permissions.
- **0o004**: Other users have the read permission.
- **0o002**: Other users have the write permission.
- **0o001**: Other users have the execute permission.|
-| callback | AsyncCallback<void> | Yes | Callback invoked when the file permissions are changed asynchronously. |
+ | Name | Type | Mandatory | Description |
+ | -------- | ------------------------------- | ---- | ---------------------------------------- |
+ | fd | number | Yes | File descriptor of the target file. |
+| mode | number | Yes | Permissions on the file. You can specify multiple permissions, separated using a bitwise OR operator (|).
- **0o700**: The owner has the read, write, and execute permissions.
- **0o400**: The owner has the read permission.
- **0o200**: The owner has the write permission.
- **0o100**: The owner has the execute permission.
- **0o070**: The user group has the read, write, and execute permissions.
- **0o040**: The user group has the read permission.
- **0o020**: The user group has the write permission.
- **0o010**: The user group has the execute permission.
- **0o007**: Other users have the read, write, and execute permissions.
- **0o004**: Other users have the read permission.
- **0o002**: Other users have the write permission.
- **0o001**: Other users have the execute permission. |
+ | callback | AsyncCallback<void> | Yes | Callback invoked when the file permissions are changed asynchronously. |
**Example**
@@ -2164,10 +2164,10 @@ Synchronously changes the file permissions based on the file descriptor.
**Parameters**
-| Name | Type | Mandatory | Description |
-| ---- | ------ | ---- | ---------------------------------------- |
-| fd | number | Yes | File descriptor of the target file. |
-| mode | number | Yes | Permissions on the file. You can specify multiple permissions, separated using a bitwise OR operator (|).
- **0o700**: The owner has the read, write, and execute permissions.
- **0o400**: The owner has the read permission.
- **0o200**: The owner has the write permission.
- **0o100**: The owner has the execute permission.
- **0o070**: The user group has the read, write, and execute permissions.
- **0o040**: The user group has the read permission.
- **0o020**: The user group has the write permission.
- **0o010**: The user group has the execute permission.
- **0o007**: Other users have the read, write, and execute permissions.
- **0o004**: Other users have the read permission.
- **0o002**: Other users have the write permission.
- **0o001**: Other users have the execute permission.|
+ | Name | Type | Mandatory | Description |
+ | ---- | ------ | ---- | ---------------------------------------- |
+ | fd | number | Yes | File descriptor of the target file. |
+| mode | number | Yes | Permissions on the file. You can specify multiple permissions, separated using a bitwise OR operator (|).
- **0o700**: The owner has the read, write, and execute permissions.
- **0o400**: The owner has the read permission.
- **0o200**: The owner has the write permission.
- **0o100**: The owner has the execute permission.
- **0o070**: The user group has the read, write, and execute permissions.
- **0o040**: The user group has the read permission.
- **0o020**: The user group has the write permission.
- **0o010**: The user group has the execute permission.
- **0o007**: Other users have the read, write, and execute permissions.
- **0o004**: Other users have the read permission.
- **0o002**: Other users have the write permission.
- **0o001**: Other users have the execute permission. |
**Example**
@@ -2192,13 +2192,13 @@ Opens a file stream based on the file path. This API uses a promise to return th
| Name| Type | Mandatory| Description |
| ------ | ------ | ---- | ------------------------------------------------------------ |
| path | string | Yes | Application sandbox path of the file. |
-| mode | string | Yes | - **r**: Open a file for reading. The file must exist.
- **r+**: Open a file for both reading and writing. The file must exist.
- **w**: Open a file for writing. If the file exists, clear its content. If the file does not exist, create a file.
- **w+**: Open a file for both reading and writing. If the file exists, clear its content. If the file does not exist, create a file.
- **a**: Open a file in append mode for writing at the end of the file. If the file does not exist, create a file. If the file exists, write data to the end of the file (the original content of the file is reserved).
- **a+**: Open a file in append mode for reading or updating at the end of the file. If the file does not exist, create a file. If the file exists, write data to the end of the file (the original content of the file is reserved).|
+| mode | string | Yes | - **r**: Open a file for reading. The file must exist.
- **r+**: Open a file for both reading and writing. The file must exist.
- **w**: Open a file for writing. If the file exists, clear its content. If the file does not exist, create a file.
- **w+**: Open a file for both reading and writing. If the file exists, clear its content. If the file does not exist, create a file.
- **a**: Open a file in append mode for writing at the end of the file. If the file does not exist, create a file. If the file exists, write data to the end of the file (the original content of the file is reserved).
- **a+**: Open a file in append mode for reading or updating at the end of the file. If the file does not exist, create a file. If the file exists, write data to the end of the file (the original content of the file is reserved).|
**Return value**
-| Type | Description |
-| --------------------------------- | --------- |
-| Promise<[Stream](#stream)> | Promise used to return the result.|
+ | Type | Description |
+ | --------------------------------- | --------- |
+ | Promise<[Stream](#stream)> | Promise used to return the result.|
**Example**
@@ -2225,7 +2225,7 @@ Opens a file stream based on the file path. This API uses an asynchronous callba
| Name | Type | Mandatory| Description |
| -------- | --------------------------------------- | ---- | ------------------------------------------------------------ |
| path | string | Yes | Application sandbox path of the file. |
-| mode | string | Yes | - **r**: Open a file for reading. The file must exist.
- **r+**: Open a file for both reading and writing. The file must exist.
- **w**: Open a file for writing. If the file exists, clear its content. If the file does not exist, create a file.
- **w+**: Open a file for both reading and writing. If the file exists, clear its content. If the file does not exist, create a file.
- **a**: Open a file in append mode for writing at the end of the file. If the file does not exist, create a file. If the file exists, write data to the end of the file (the original content of the file is reserved).
- **a+**: Open a file in append mode for reading or updating at the end of the file. If the file does not exist, create a file. If the file exists, write data to the end of the file (the original content of the file is reserved).|
+| mode | string | Yes | - **r**: Open a file for reading. The file must exist.
- **r+**: Open a file for both reading and writing. The file must exist.
- **w**: Open a file for writing. If the file exists, clear its content. If the file does not exist, create a file.
- **w+**: Open a file for both reading and writing. If the file exists, clear its content. If the file does not exist, create a file.
- **a**: Open a file in append mode for writing at the end of the file. If the file does not exist, create a file. If the file exists, write data to the end of the file (the original content of the file is reserved).
- **a+**: Open a file in append mode for reading or updating at the end of the file. If the file does not exist, create a file. If the file exists, write data to the end of the file (the original content of the file is reserved).|
| callback | AsyncCallback<[Stream](#stream)> | Yes | Callback invoked when the stream is open asynchronously. |
**Example**
@@ -2251,13 +2251,13 @@ Synchronously opens a stream based on the file path.
| Name| Type | Mandatory| Description |
| ------ | ------ | ---- | ------------------------------------------------------------ |
| path | string | Yes | Application sandbox path of the file. |
-| mode | string | Yes | - **r**: Open a file for reading. The file must exist.
- **r+**: Open a file for both reading and writing. The file must exist.
- **w**: Open a file for writing. If the file exists, clear its content. If the file does not exist, create a file.
- **w+**: Open a file for both reading and writing. If the file exists, clear its content. If the file does not exist, create a file.
- **a**: Open a file in append mode for writing at the end of the file. If the file does not exist, create a file. If the file exists, write data to the end of the file (the original content of the file is reserved).
- **a+**: Open a file in append mode for reading or updating at the end of the file. If the file does not exist, create a file. If the file exists, write data to the end of the file (the original content of the file is reserved).|
+| mode | string | Yes | - **r**: Open a file for reading. The file must exist.
- **r+**: Open a file for both reading and writing. The file must exist.
- **w**: Open a file for writing. If the file exists, clear its content. If the file does not exist, create a file.
- **w+**: Open a file for both reading and writing. If the file exists, clear its content. If the file does not exist, create a file.
- **a**: Open a file in append mode for writing at the end of the file. If the file does not exist, create a file. If the file exists, write data to the end of the file (the original content of the file is reserved).
- **a+**: Open a file in append mode for reading or updating at the end of the file. If the file does not exist, create a file. If the file exists, write data to the end of the file (the original content of the file is reserved).|
**Return value**
-| Type | Description |
-| ------------------ | --------- |
-| [Stream](#stream) | Stream opened.|
+ | Type | Description |
+ | ------------------ | --------- |
+ | [Stream](#stream) | Stream opened.|
**Example**
@@ -2277,16 +2277,16 @@ Opens a file stream based on the file descriptor. This API uses a promise to ret
**Parameters**
-| Name | Type | Mandatory | Description |
-| ---- | ------ | ---- | ---------------------------------------- |
-| fd | number | Yes | File descriptor of the target file. |
-| mode | string | Yes | - **r**: Open a file for reading. The file must exist.
- **r+**: Open a file for both reading and writing. The file must exist.
- **w**: Open a file for writing. If the file exists, clear its content. If the file does not exist, create a file.
- **w+**: Open a file for both reading and writing. If the file exists, clear its content. If the file does not exist, create a file.
- **a**: Open a file in append mode for writing at the end of the file. If the file does not exist, create a file. If the file exists, write data to the end of the file (the original content of the file is reserved).
- **a+**: Open a file in append mode for reading or updating at the end of the file. If the file does not exist, create a file. If the file exists, write data to the end of the file (the original content of the file is reserved).|
+ | Name | Type | Mandatory | Description |
+ | ---- | ------ | ---- | ---------------------------------------- |
+ | fd | number | Yes | File descriptor of the target file. |
+ | mode | string | Yes | - **r**: Open a file for reading. The file must exist.
- **r+**: Open a file for both reading and writing. The file must exist.
- **w**: Open a file for writing. If the file exists, clear its content. If the file does not exist, create a file.
- **w+**: Open a file for both reading and writing. If the file exists, clear its content. If the file does not exist, create a file.
- **a**: Open a file in append mode for writing at the end of the file. If the file does not exist, create a file. If the file exists, write data to the end of the file (the original content of the file is reserved).
- **a+**: Open a file in append mode for reading or updating at the end of the file. If the file does not exist, create a file. If the file exists, write data to the end of the file (the original content of the file is reserved).|
**Return value**
-| Type | Description |
-| --------------------------------- | --------- |
-| Promise<[Stream](#stream)> | Promise used to return the result.|
+ | Type | Description |
+ | --------------------------------- | --------- |
+ | Promise<[Stream](#stream)> | Promise used to return the result.|
**Example**
@@ -2311,11 +2311,11 @@ Opens a file stream based on the file descriptor. This API uses an asynchronous
**Parameters**
-| Name | Type | Mandatory | Description |
-| -------- | ---------------------------------------- | ---- | ---------------------------------------- |
-| fd | number | Yes | File descriptor of the target file. |
-| mode | string | Yes | - **r**: Open a file for reading. The file must exist.
- **r+**: Open a file for both reading and writing. The file must exist.
- **w**: Open a file for writing. If the file exists, clear its content. If the file does not exist, create a file.
- **w+**: Open a file for both reading and writing. If the file exists, clear its content. If the file does not exist, create a file.
- **a**: Open a file in append mode for writing at the end of the file. If the file does not exist, create a file. If the file exists, write data to the end of the file (the original content of the file is reserved).
- **a+**: Open a file in append mode for reading or updating at the end of the file. If the file does not exist, create a file. If the file exists, write data to the end of the file (the original content of the file is reserved).|
-| callback | AsyncCallback<[Stream](#stream)> | Yes | Callback invoked when the stream is open asynchronously. |
+ | Name | Type | Mandatory | Description |
+ | -------- | ---------------------------------------- | ---- | ---------------------------------------- |
+ | fd | number | Yes | File descriptor of the target file. |
+ | mode | string | Yes | - **r**: Open a file for reading. The file must exist.
- **r+**: Open a file for both reading and writing. The file must exist.
- **w**: Open a file for writing. If the file exists, clear its content. If the file does not exist, create a file.
- **w+**: Open a file for both reading and writing. If the file exists, clear its content. If the file does not exist, create a file.
- **a**: Open a file in append mode for writing at the end of the file. If the file does not exist, create a file. If the file exists, write data to the end of the file (the original content of the file is reserved).
- **a+**: Open a file in append mode for reading or updating at the end of the file. If the file does not exist, create a file. If the file exists, write data to the end of the file (the original content of the file is reserved).|
+ | callback | AsyncCallback<[Stream](#stream)> | Yes | Callback invoked when the stream is open asynchronously. |
**Example**
@@ -2338,16 +2338,16 @@ Synchronously opens a stream based on the file descriptor.
**Parameters**
-| Name | Type | Mandatory | Description |
-| ---- | ------ | ---- | ---------------------------------------- |
-| fd | number | Yes | File descriptor of the target file. |
-| mode | string | Yes | - **r**: Open a file for reading. The file must exist.
- **r+**: Open a file for both reading and writing. The file must exist.
- **w**: Open a file for writing. If the file exists, clear its content. If the file does not exist, create a file.
- **w+**: Open a file for both reading and writing. If the file exists, clear its content. If the file does not exist, create a file.
- **a**: Open a file in append mode for writing at the end of the file. If the file does not exist, create a file. If the file exists, write data to the end of the file (the original content of the file is reserved).
- **a+**: Open a file in append mode for reading or updating at the end of the file. If the file does not exist, create a file. If the file exists, write data to the end of the file (the original content of the file is reserved).|
+ | Name | Type | Mandatory | Description |
+ | ---- | ------ | ---- | ---------------------------------------- |
+ | fd | number | Yes | File descriptor of the target file. |
+ | mode | string | Yes | - **r**: Open a file for reading. The file must exist.
- **r+**: Open a file for both reading and writing. The file must exist.
- **w**: Open a file for writing. If the file exists, clear its content. If the file does not exist, create a file.
- **w+**: Open a file for both reading and writing. If the file exists, clear its content. If the file does not exist, create a file.
- **a**: Open a file in append mode for writing at the end of the file. If the file does not exist, create a file. If the file exists, write data to the end of the file (the original content of the file is reserved).
- **a+**: Open a file in append mode for reading or updating at the end of the file. If the file does not exist, create a file. If the file exists, write data to the end of the file (the original content of the file is reserved).|
**Return value**
-| Type | Description |
-| ------------------ | --------- |
-| [Stream](#stream) | Stream opened.|
+ | Type | Description |
+ | ------------------ | --------- |
+ | [Stream](#stream) | Stream opened.|
**Example**
@@ -2368,17 +2368,17 @@ Changes the file owner based on the file descriptor. This API uses a promise to
**Parameters**
-| Name | Type | Mandatory | Description |
-| ---- | ------ | ---- | ------------ |
-| fd | number | Yes | File descriptor of the target file.|
-| uid | number | Yes | New UID. |
-| gid | number | Yes | New GID. |
+ | Name | Type | Mandatory | Description |
+ | ---- | ------ | ---- | ------------ |
+ | fd | number | Yes | File descriptor of the target file.|
+ | uid | number | Yes | New UID. |
+ | gid | number | Yes | New GID. |
**Return value**
-| Type | Description |
-| ------------------- | ---------------------------- |
-| Promise<void> | Promise that returns no value.|
+ | Type | Description |
+ | ------------------- | ---------------------------- |
+ | Promise<void> | Promise that returns no value.|
**Example**
@@ -2404,12 +2404,12 @@ Changes the file owner based on the file descriptor. This API uses an asynchrono
**Parameters**
-| Name | Type | Mandatory | Description |
-| -------- | ------------------------- | ---- | --------------- |
-| fd | number | Yes | File descriptor of the target file. |
-| uid | number | Yes | New UID. |
-| gid | number | Yes | New GID. |
-| callback | AsyncCallback<void> | Yes | Callback invoked when the file owner is changed asynchronously.|
+ | Name | Type | Mandatory | Description |
+ | -------- | ------------------------- | ---- | --------------- |
+ | fd | number | Yes | File descriptor of the target file. |
+ | uid | number | Yes | New UID. |
+ | gid | number | Yes | New GID. |
+ | callback | AsyncCallback<void> | Yes | Callback invoked when the file owner is changed asynchronously.|
**Example**
@@ -2433,11 +2433,11 @@ Synchronously changes the file owner based on the file descriptor.
**Parameters**
-| Name | Type | Mandatory | Description |
-| ---- | ------ | ---- | ------------ |
-| fd | number | Yes | File descriptor of the target file.|
-| uid | number | Yes | New UID. |
-| gid | number | Yes | New GID. |
+ | Name | Type | Mandatory | Description |
+ | ---- | ------ | ---- | ------------ |
+ | fd | number | Yes | File descriptor of the target file.|
+ | uid | number | Yes | New UID. |
+ | gid | number | Yes | New GID. |
**Example**
@@ -2467,9 +2467,9 @@ Changes the file owner (owner of the symbolic link, not the file referred to by
**Return value**
-| Type | Description |
-| ------------------- | ---------------------------- |
-| Promise<void> | Promise that returns no value.|
+ | Type | Description |
+ | ------------------- | ---------------------------- |
+ | Promise<void> | Promise that returns no value.|
**Example**
@@ -2550,14 +2550,14 @@ Listens for file or directory changes. This API uses an asynchronous callback to
| Name | Type | Mandatory| Description |
| -------- | --------------------------------- | ---- | ------------------------------------------------------------ |
| filePath | string | Yes | Application sandbox path of the file. |
-| events | number | Yes | - **1**: The file or directory is renamed.
- **2**: The file or directory is modified.
- **3**: The file or directory is modified and renamed.|
+| events | number | Yes | -**1**: The file or directory is renamed.
- **2**: The file or directory is modified.
- **3**: The file or directory is modified and renamed.|
| callback | AsyncCallback<number> | Yes | Called each time a change is detected. |
**Return value**
-| Type | Description |
-| -------------------- | ---------- |
-| [Watcher](#watcher7) | Promise used to return the **Watcher** instance.|
+ | Type | Description |
+ | -------------------- | ---------- |
+ | [Watcher](#watcher7) | Promise used to return the **Watcher** instance.|
**Example**
@@ -2595,7 +2595,7 @@ Provides detailed file information. Before calling a method of the **Stat** clas
| ------ | ------ | ---- | ---- | ---------------------------------------- |
| dev | number | Yes | No | Major device number. |
| ino | number | Yes | No | File ID. Different files on the same device have different **ino**s. |
-| mode | number | Yes | No | File type and permissions. The first four bits indicate the file type, and the last 12 bits indicate the permissions. The bit fields are described as follows:
- **0o170000**: mask used to obtain the file type.
- **0o140000**: The file is a socket.
- **0o120000**: The file is a symbolic link.
- **0o100000**: The file is a regular file.
- **0o060000**: The file is a block device.
- **0o040000**: The file is a directory.
- **0o020000**: The file is a character device.
- **0o010000**: The file is a named pipe (FIFO).
- **0o0700**: mask used to obtain the owner permissions.
- **0o0400**: The owner has the permission to read a regular file or a directory entry.
- **0o0200**: The owner has the permission to write a regular file or create and delete a directory entry.
- **0o0100**: The owner has the permission to execute a regular file or search for the specified path in a directory.
- **0o0070**: mask used to obtain the user group permissions.
- **0o0040**: The user group has the permission to read a regular file or a directory entry.
- **0o0020**: The user group has the permission to write a regular file or create and delete a directory entry.
- **0o0010**: The user group has the permission to execute a regular file or search for the specified path in a directory.
- **0o0007**: mask used to obtain the permissions of other users.
- **0o0004**: Other users have the permission to read a regular file or a directory entry.
- **0o0002**: Other users have the permission to write a regular file or create and delete a directory entry.
- **0o0001**: Other users have the permission to execute a regular file or search for the specified path in a directory.|
+| mode | number | Yes | No | File type and permissions. The first four bits indicate the file type, and the last 12 bits indicate the permissions. The bit fields are described as follows:
- **0o170000**: mask used to obtain the file type.
- **0o140000**: The file is a socket.
- **0o120000**: The file is a symbolic link.
- **0o100000**: The file is a regular file.
- **0o060000**: The file is a block device.
- **0o040000**: The file is a directory.
- **0o020000**: The file is a character device.
- **0o010000**: The file is a named pipe, that is, FIFO.
- **0o0700**: mask used to obtain owner permissions.
- **0o0400**: The owner has the read permission on a regular file or a directory entry.
- **0o0200**: The owner has the permission to write a regular file or create and delete a directory entry.
- **0o0100**: The owner has the permission to execute a regular file or has the permission to search for the specified path in a directory.
- **0o0070**: mask used to obtain user group permissions.
- **0o0040**: The user group has the read permission on a regular file or a directory entry.
- **0o0020**: The user group has the permission to write a regular file or has the permission to create and delete a directory entry.
- **0o0010**: The user group has the permission to execute a regular file or has the permission to search for the specified path in a directory.
- **0o0007**: mask used to obtain permissions of other users.
- **0o0004**: Other user groups have the read permission on a regular file or a directory entry.
- **0o0002**: Other user groups have the permission to write a regular file or have the permission to create and delete a directory entry.
- **0o0001**: Other users have the permission to execute a regular file or search for the specified path in a directory.|
| nlink | number | Yes | No | Number of hard links in the file. |
| uid | number | Yes | No | User ID, that is ID of the file owner. |
| gid | number | Yes | No | Group ID, that is, ID of the user group of the file. |
@@ -2617,9 +2617,9 @@ Checks whether this file is a block special file. A block special file supports
**Return value**
-| Type | Description |
-| ------- | ---------------- |
-| boolean | Whether the file is a block special file.|
+ | Type | Description |
+ | ------- | ---------------- |
+ | boolean | Whether the file is a block special file.|
**Example**
@@ -2639,9 +2639,9 @@ Checks whether this file is a character special file. A character special file s
**Return value**
-| Type | Description |
-| ------- | ----------------- |
-| boolean | Whether the file is a character special file.|
+ | Type | Description |
+ | ------- | ----------------- |
+ | boolean | Whether the file is a character special file.|
**Example**
@@ -2661,9 +2661,9 @@ Checks whether this file is a directory.
**Return value**
-| Type | Description |
-| ------- | ------------- |
-| boolean | Whether the file is a directory.|
+ | Type | Description |
+ | ------- | ------------- |
+ | boolean | Whether the file is a directory.|
**Example**
@@ -2683,9 +2683,9 @@ Checks whether this file is a named pipe (or FIFO). Named pipes are used for int
**Return value**
-| Type | Description |
-| ------- | --------------------- |
-| boolean | Whether the file is an FIFO.|
+ | Type | Description |
+ | ------- | --------------------- |
+ | boolean | Whether the file is an FIFO.|
**Example**
@@ -2705,9 +2705,9 @@ Checks whether this file is a regular file.
**Return value**
-| Type | Description |
-| ------- | --------------- |
-| boolean | Whether the file is a regular file.|
+ | Type | Description |
+ | ------- | --------------- |
+ | boolean | Whether the file is a regular file.|
**Example**
@@ -2727,9 +2727,9 @@ Checks whether this file is a socket.
**Return value**
-| Type | Description |
-| ------- | -------------- |
-| boolean | Whether the file is a socket.|
+ | Type | Description |
+ | ------- | -------------- |
+ | boolean | Whether the file is a socket.|
**Example**
@@ -2749,9 +2749,9 @@ Checks whether this file is a symbolic link.
**Return value**
-| Type | Description |
-| ------- | --------------- |
-| boolean | Whether the file is a symbolic link.|
+ | Type | Description |
+ | ------- | --------------- |
+ | boolean | Whether the file is a symbolic link.|
**Example**
@@ -2797,9 +2797,9 @@ Stops the **watcher** instance. This API uses an asynchronous callback to return
**Parameters**
-| Name | Type | Mandatory | Description |
-| -------- | ------------------------- | ---- | ---------------------- |
-| callback | AsyncCallback<void> | Yes | Callback invoked when **watcher** is stopped asynchronously.|
+ | Name | Type | Mandatory | Description |
+ | -------- | ------------------------- | ---- | ---------------------- |
+ | callback | AsyncCallback<void> | Yes | Callback invoked when **watcher** is stopped asynchronously.|
**Example**
@@ -2829,9 +2829,9 @@ Closes the stream. This API uses a promise to return the result.
**Return value**
-| Type | Description |
-| ------------------- | ------------- |
-| Promise<void> | Promise used to return the stream close result.|
+ | Type | Description |
+ | ------------------- | ------------- |
+ | Promise<void> | Promise used to return the stream close result.|
**Example**
@@ -2856,9 +2856,9 @@ Closes the stream. This API uses an asynchronous callback to return the result.
**Parameters**
-| Name | Type | Mandatory | Description |
-| -------- | ------------------------- | ---- | ------------- |
-| callback | AsyncCallback<void> | Yes | Callback invoked when the stream is closed asynchronously.|
+ | Name | Type | Mandatory | Description |
+ | -------- | ------------------------- | ---- | ------------- |
+ | callback | AsyncCallback<void> | Yes | Callback invoked when the stream is closed asynchronously.|
**Example**
@@ -2898,9 +2898,9 @@ Flushes the stream. This API uses a promise to return the result.
**Return value**
-| Type | Description |
-| ------------------- | ------------- |
-| Promise<void> | Promise used to return the stream flushing result.|
+ | Type | Description |
+ | ------------------- | ------------- |
+ | Promise<void> | Promise used to return the stream flushing result.|
**Example**
@@ -2925,9 +2925,9 @@ Flushes the stream. This API uses an asynchronous callback to return the result.
**Parameters**
-| Name | Type | Mandatory | Description |
-| -------- | ------------------------- | ---- | -------------- |
-| callback | AsyncCallback<void> | Yes | Callback invoked when the stream is asynchronously flushed.|
+ | Name | Type | Mandatory | Description |
+ | -------- | ------------------------- | ---- | -------------- |
+ | callback | AsyncCallback<void> | Yes | Callback invoked when the stream is asynchronously flushed.|
**Example**
@@ -2967,16 +2967,16 @@ Writes data into the stream. This API uses a promise to return the result.
**Parameters**
-| Name | Type | Mandatory | Description |
-| ------- | ------------------------------- | ---- | ---------------------------------------- |
-| buffer | ArrayBuffer\|string | Yes | Data to write. It can be a string or data from a buffer. |
-| options | Object | No | The options are as follows:
- **offset** (number): position of the data to write in reference to the start address of the data. The default value is **0**.
- **length** (number): length of the data to write. The default value is the buffer length minus the offset.
- **position** (number): start position to write the data in the file. By default, data is written from the current position.
- **encoding** (string): format of the string to be encoded. The default value is **utf-8**, which is the only value supported.
Constraints: offset + length <= Buffer size |
+ | Name | Type | Mandatory | Description |
+ | ------- | ------------------------------- | ---- | ---------------------------------------- |
+ | buffer | ArrayBuffer\|string | Yes | Data to write. It can be a string or data from a buffer. |
+ | options | Object | No | The options are as follows:
- **offset** (number): position of the data to write in reference to the start address of the data. The default value is **0**.
- **length** (number): length of the data to write. The default value is the buffer length minus the offset.
- **position** (number): start position to write the data in the file. By default, data is written from the current position.
- **encoding** (string): format of the data to be encoded when the data is a string. The default value is **'utf-8'**, which is the only value supported.
Constraints: offset + length <= Buffer size |
**Return value**
-| Type | Description |
-| --------------------- | -------- |
-| Promise<number> | Promise used to return the length of the data written.|
+ | Type | Description |
+ | --------------------- | -------- |
+ | Promise<number> | Promise used to return the length of the data written.|
**Example**
@@ -3001,11 +3001,11 @@ Writes data into the stream. This API uses an asynchronous callback to return th
**Parameters**
-| Name | Type | Mandatory| Description |
-| -------- | ------------------------------- | ---- | ------------------------------------------------------------ |
-| buffer | ArrayBuffer\|string | Yes | Data to write. It can be a string or data from a buffer. |
-| options | Object | No | The options are as follows:
- **offset** (number): position of the data to write in reference to the start address of the data. The default value is **0**.
- **length** (number): length of the data to write. The default value is the buffer length minus the offset.
- **position** (number): start position to write the data in the file. By default, data is written from the current position.
- **encoding** (string): format of the string to be encoded. The default value is **utf-8**, which is the only value supported.
Constraints: offset + length <= Buffer size|
-| callback | AsyncCallback<number> | Yes | Callback invoked when the data is written asynchronously. |
+ | Name | Type | Mandatory| Description |
+ | -------- | ------------------------------- | ---- | ------------------------------------------------------------ |
+ | buffer | ArrayBuffer\|string | Yes | Data to write. It can be a string or data from a buffer. |
+ | options | Object | No | The options are as follows:
- **offset** (number): position of the data to write in reference to the start address of the data. The default value is **0**.
- **length** (number): length of the data to write. The default value is the buffer length minus the offset.
- **position** (number): start position to write the data in the file. By default, data is written from the current position.
- **encoding** (string): format of the data to be encoded when the data is a string. The default value is **'utf-8'**, which is the only value supported.
Constraints: offset + length <= Buffer size|
+ | callback | AsyncCallback<number> | Yes | Callback invoked when the data is written asynchronously. |
**Example**
@@ -3031,16 +3031,16 @@ Synchronously writes data into the stream.
**Parameters**
-| Name | Type | Mandatory | Description |
-| ------- | ------------------------------- | ---- | ---------------------------------------- |
-| buffer | ArrayBuffer\|string | Yes | Data to write. It can be a string or data from a buffer. |
-| options | Object | No | The options are as follows:
- **offset** (number): position of the data to write in reference to the start address of the data. The default value is **0**.
- **length** (number): length of the data to write. The default value is the buffer length minus the offset.
- **position** (number): start position to write the data in the file. By default, data is written from the current position.
- **encoding** (string): format of the string to be encoded. The default value is **utf-8**, which is the only value supported.
Constraints: offset + length <= Buffer size |
+ | Name | Type | Mandatory | Description |
+ | ------- | ------------------------------- | ---- | ---------------------------------------- |
+ | buffer | ArrayBuffer\|string | Yes | Data to write. It can be a string or data from a buffer. |
+ | options | Object | No | The options are as follows:
- **offset** (number): position of the data to write in reference to the start address of the data. The default value is **0**.
- **length** (number): length of the data to write. The default value is the buffer length minus the offset.
- **position** (number): start position to write the data in the file. By default, data is written from the current position.
- **encoding** (string): format of the data to be encoded when the data is a string. The default value is **'utf-8'**, which is the only value supported.
Constraints: offset + length <= Buffer size |
**Return value**
-| Type | Description |
-| ------ | -------- |
-| number | Length of the data written in the file.|
+ | Type | Description |
+ | ------ | -------- |
+ | number | Length of the data written in the file.|
**Example**
@@ -3061,16 +3061,16 @@ Reads data from the stream. This API uses a promise to return the result.
**Parameters**
-| Name | Type | Mandatory | Description |
-| ------- | ----------- | ---- | ---------------------------------------- |
-| buffer | ArrayBuffer | Yes | Buffer used to store the file read. |
-| options | Object | No | The options are as follows:
- **offset** (number): position to store the data read in the buffer in reference to the start address of the buffer. The default value is **0**.
- **length** (number): length of the data to read. The default value is the buffer length minus the offset.
- **position** (number): position of the data to read in the file. By default, data is read from the current position.
Constraints: offset + length <= Buffer size |
+ | Name | Type | Mandatory | Description |
+ | ------- | ----------- | ---- | ---------------------------------------- |
+ | buffer | ArrayBuffer | Yes | Buffer used to store the file read. |
+ | options | Object | No | The options are as follows:
- **offset** (number): position to store the data read in the buffer in reference to the start address of the buffer. The default value is **0**.
- **length** (number): length of the data to read. The default value is the buffer length minus the offset.
- **position** (number): position of the data to read in the file. By default, data is read from the current position.
Constraints: offset + length <= Buffer size |
**Return value**
-| Type | Description |
-| ---------------------------------- | ------ |
-| Promise<[ReadOut](#readout)> | Promise used to return the data read.|
+ | Type | Description |
+ | ---------------------------------- | ------ |
+ | Promise<[ReadOut](#readout)> | Promise used to return the data read.|
**Example**
@@ -3096,11 +3096,11 @@ Reads data from the stream. This API uses an asynchronous callback to return the
**Parameters**
-| Name | Type | Mandatory | Description |
-| -------- | ---------------------------------------- | ---- | ---------------------------------------- |
-| buffer | ArrayBuffer | Yes | Buffer used to store the file read. |
-| options | Object | No | The options are as follows:
- **offset** (number): position to store the data read in the buffer in reference to the start address of the buffer. The default value is **0**.
- **length** (number): length of the data to read. The default value is the buffer length minus the offset.
- **position** (number): position of the data to read in the file. By default, data is read from the current position.
Constraints: offset + length <= Buffer size |
-| callback | AsyncCallback<[ReadOut](#readout)> | Yes | Callback invoked when data is read asynchronously from the stream. |
+ | Name | Type | Mandatory | Description |
+ | -------- | ---------------------------------------- | ---- | ---------------------------------------- |
+ | buffer | ArrayBuffer | Yes | Buffer used to store the file read. |
+ | options | Object | No | The options are as follows:
- **offset** (number): position to store the data read in the buffer in reference to the start address of the buffer. The default value is **0**.
- **length** (number): length of the data to read. The default value is the buffer length minus the offset.
- **position** (number): position of the data to read in the file. By default, data is read from the current position.
Constraints: offset + length <= Buffer size |
+ | callback | AsyncCallback<[ReadOut](#readout)> | Yes | Callback invoked when data is read asynchronously from the stream. |
**Example**
@@ -3126,16 +3126,16 @@ Synchronously reads data from the stream.
**Parameters**
-| Name | Type | Mandatory | Description |
-| ------- | ----------- | ---- | ---------------------------------------- |
-| buffer | ArrayBuffer | Yes | Buffer used to store the file read. |
-| options | Object | No | The options are as follows:
- **offset** (number): position to store the data read in the buffer in reference to the start address of the buffer. The default value is **0**.
- **length** (number): length of the data to read. The default value is the buffer length minus the offset.
- **position** (number): position of the data to read in the file. By default, data is read from the current position.
Constraints: offset + length <= Buffer size |
+ | Name | Type | Mandatory | Description |
+ | ------- | ----------- | ---- | ---------------------------------------- |
+ | buffer | ArrayBuffer | Yes | Buffer used to store the file read. |
+ | options | Object | No | The options are as follows:
- **offset** (number): position to store the data read in the buffer in reference to the start address of the buffer. The default value is **0**.
- **length** (number): length of the data to read. The default value is the buffer length minus the offset.
- **position** (number): position of the data to read in the file. By default, data is read from the current position.
Constraints: offset + length <= Buffer size |
**Return value**
-| Type | Description |
-| ------ | -------- |
-| number | Length of the data read.|
+ | Type | Description |
+ | ------ | -------- |
+ | number | Length of the data read.|
**Example**
@@ -3161,9 +3161,9 @@ Reads the next directory entry. This API uses a promise to return the result.
**Return value**
-| Type | Description |
-| -------------------------------- | ------------- |
-| Promise<[Dirent](#dirent)> | Promise used to return the directory entry read.|
+ | Type | Description |
+ | -------------------------------- | ------------- |
+ | Promise<[Dirent](#dirent)> | Promise used to return the directory entry read.|
**Example**
@@ -3186,9 +3186,9 @@ Reads the next directory entry. This API uses an asynchronous callback to return
**Parameters**
-| Name | Type | Mandatory | Description |
-| -------- | -------------------------------------- | ---- | ---------------- |
-| callback | AsyncCallback<[Dirent](#dirent)> | Yes | Callback invoked when the next directory entry is asynchronously read.|
+ | Name | Type | Mandatory | Description |
+ | -------- | -------------------------------------- | ---- | ---------------- |
+ | callback | AsyncCallback<[Dirent](#dirent)> | Yes | Callback invoked when the next directory entry is asynchronously read.|
**Example**
@@ -3212,9 +3212,9 @@ Synchronously reads the next directory entry.
**Return value**
-| Type | Description |
-| ----------------- | -------- |
-| [Dirent](#dirent) | Directory entry read.|
+ | Type | Description |
+ | ----------------- | -------- |
+ | [Dirent](#dirent) | Directory entry read.|
**Example**
@@ -3295,9 +3295,9 @@ Checks whether this directory entry is a block special file. A block special fil
**Return value**
-| Type | Description |
-| ------- | ---------------- |
-| boolean | Whether the directory entry is a block special file.|
+ | Type | Description |
+ | ------- | ---------------- |
+ | boolean | Whether the directory entry is a block special file.|
**Example**
@@ -3317,9 +3317,9 @@ Checks whether a directory entry is a character special file. A character specia
**Return value**
-| Type | Description |
-| ------- | ----------------- |
-| boolean | Whether the directory entry is a character special file.|
+ | Type | Description |
+ | ------- | ----------------- |
+ | boolean | Whether the directory entry is a character special file.|
**Example**
@@ -3339,9 +3339,9 @@ Checks whether a directory entry is a directory.
**Return value**
-| Type | Description |
-| ------- | ------------- |
-| boolean | Whether the directory entry is a directory.|
+ | Type | Description |
+ | ------- | ------------- |
+ | boolean | Whether the directory entry is a directory.|
**Example**
@@ -3361,9 +3361,9 @@ Checks whether this directory entry is a named pipe (or FIFO). Named pipes are u
**Return value**
-| Type | Description |
-| ------- | --------------- |
-| boolean | Whether the directory entry is a FIFO.|
+ | Type | Description |
+ | ------- | --------------- |
+ | boolean | Whether the directory entry is a FIFO.|
**Example**
@@ -3383,9 +3383,9 @@ Checks whether a directory entry is a regular file.
**Return value**
-| Type | Description |
-| ------- | --------------- |
-| boolean | Whether the directory entry is a regular file.|
+ | Type | Description |
+ | ------- | --------------- |
+ | boolean | Whether the directory entry is a regular file.|
**Example**
@@ -3405,9 +3405,9 @@ Checks whether a directory entry is a socket.
**Return value**
-| Type | Description |
-| ------- | -------------- |
-| boolean | Whether the directory entry is a socket.|
+ | Type | Description |
+ | ------- | -------------- |
+ | boolean | Whether the directory entry is a socket.|
**Example**
@@ -3427,9 +3427,9 @@ Checks whether a directory entry is a symbolic link.
**Return value**
-| Type | Description |
-| ------- | --------------- |
-| boolean | Whether the directory entry is a symbolic link.|
+ | Type | Description |
+ | ------- | --------------- |
+ | boolean | Whether the directory entry is a symbolic link.|
**Example**
diff --git a/en/application-dev/reference/apis/js-apis-system-bluetooth.md b/en/application-dev/reference/apis/js-apis-system-bluetooth.md
index ff04cbb9845aa63f7a5bb7ac12104e485e5991e9..497e0817fcfcd1ca12c43948a8907b96871a1287 100644
--- a/en/application-dev/reference/apis/js-apis-system-bluetooth.md
+++ b/en/application-dev/reference/apis/js-apis-system-bluetooth.md
@@ -22,7 +22,6 @@ Scans for Bluetooth Low Energy (BLE) devices nearby. This operation consumes sys
**System capability**: SystemCapability.Communication.Bluetooth.Lite
**Parameters**
-
**Table 1** StartBLEScanOptions
| Name| Type| Mandatory| Description|
@@ -57,7 +56,6 @@ Stops scanning for BLE devices nearby. This API is used with [bluetooth.startBLE
**System capability**: SystemCapability.Communication.Bluetooth.Lite
**Parameters**
-
**Table 2** StopBLEScanOptions
| Name| Type| Mandatory| Description|
diff --git a/en/application-dev/reference/arkui-ts/ts-container-alphabet-indexer.md b/en/application-dev/reference/arkui-ts/ts-container-alphabet-indexer.md
index 0a33bf8135951134bb63fcd80caba5c00b77e683..ed5df7b82fd0f73742ca53af4920172c90398fe5 100644
--- a/en/application-dev/reference/arkui-ts/ts-container-alphabet-indexer.md
+++ b/en/application-dev/reference/arkui-ts/ts-container-alphabet-indexer.md
@@ -27,8 +27,8 @@ AlphabetIndexer(value: {arrayValue: Array<string>, selected: number})
In addition to the [universal attributes](ts-universal-attributes-size.md), the following attributes are supported.
-| Name | Type | Description |
-| ----------------------- | --------------- | ----------------------------------------------------------- |
+| Name | Type | Description |
+| ----------------------- | --------------------| ------------------------------------------------------------------|
| color | [ResourceColor](ts-types.md#resourcecolor) | Font color.
Default value: **0x99000000** |
| selectedColor | [ResourceColor](ts-types.md#resourcecolor) | Font color of the selected text.
Default value: **0xFF254FF7** |
| popupColor | [ResourceColor](ts-types.md#resourcecolor) | Font color of the pop-up text.
Default value: **0xFF254FF7** |
@@ -39,9 +39,13 @@ In addition to the [universal attributes](ts-universal-attributes-size.md), the
| popupFont | [Font](ts-types.md#font) | Font style of the pop-up text.
Default value:
{
size:10,
style:FontStyle.Normal,
weight:FontWeight.Normal,
family:'HarmonyOS Sans'
} |
| font | [Font](ts-types.md#font) | Default font style of the alphabetic index bar.
Default value:
{
size:10,
style:FontStyle.Normal,
weight:FontWeight.Normal,
family:'HarmonyOS Sans'
} |
| itemSize | string \| number | Size of an item in the alphabetic index bar. The item is a square, and the side length needs to be set. This attribute cannot be set to a percentage.
Default value: **24.0** |
-| alignStyle | IndexerAlign | Alignment style of the alphabetic index bar. Left alignment and right alignment are supported.
Default value: **IndexerAlign.Right**|
+| alignStyle | value: [IndexerAlign](#indexeralign),
offset10+?: [Length](ts-types.md#length) | Alignment style of the alphabetic index bar.
**value**: alignment of the alphabetic index bar with the pop-up window, which can be left-aligned or right-aligned.
Default value: **IndexerAlign.Right**
**offset**: spacing between the pop-up window and the alphabetic index bar. A value greater than or equal to 0 is valid. If this attribute is set to a value less than 0 or is not set, the spacing is the same as **popupPosition.x**.|
| selected | number | Index of the selected item.
Default value: **0**|
| popupPosition | [Position](ts-types.md#position8) | Position of the pop-up window relative to the center of the indexer bar's top border.
Default value: **{x:96.0, y:48.0}**|
+| popupSelectedColor10+ | [ResourceColor](ts-types.md#resourcecolor) | Color of the selected text excluding the initial letter in the pop-up window.
Default value: **#FF182431**|
+| popupUnselectedColor10+ | [ResourceColor](ts-types.md#resourcecolor) | Color of the unselected text in the pop-up window.
Default value: **#FF182431**|
+| popupItemFont10+ | [Font](ts-types.md#font) | Font of the text excluding the initial letter in the pop-up window.
Default value:
{
size:24,
style:FontStyle.Medium
}|
+| popupItemBackgroundColor10+ | [ResourceColor](ts-types.md#resourcecolor) | Background color of the portion excluding the initial letter in the pop-up window.
Default value: **#FFFFFF**|
## IndexerAlign
diff --git a/en/application-dev/reference/errorcodes/Readme-EN.md b/en/application-dev/reference/errorcodes/Readme-EN.md
index 6af20aafd50cecbcc2a3a3ad51553d542cf428ae..769c7d3905a01f7709e6a47c14590b8658f91f9d 100644
--- a/en/application-dev/reference/errorcodes/Readme-EN.md
+++ b/en/application-dev/reference/errorcodes/Readme-EN.md
@@ -57,10 +57,11 @@
- [Network Sharing Error Codes](errorcode-net-sharing.md)
- [Policy Management Error Codes](errorcode-net-policy.md)
- Connectivity
- - [Wi-Fi Error Codes](errorcode-wifi.md)
+ - [Bluetooth Error Codes](errorcode-bluetoothManager.md)
+ - [Wi-Fi Error Codes](errorcode-wifi.md)
- [NFC Error Codes](errorcode-nfc.md)
- [RPC Error Codes](errorcode-rpc.md)
-- Basic Features
+ - Basic Features
- [Accessibility Error Codes](errorcode-accessibility.md)
- [FaultLogger Error Codes](errorcode-faultlogger.md)
- [Application Event Logging Error Codes](errorcode-hiappevent.md)
diff --git a/en/application-dev/reference/errorcodes/errorcode-bluetoothManager.md b/en/application-dev/reference/errorcodes/errorcode-bluetoothManager.md
new file mode 100644
index 0000000000000000000000000000000000000000..8cbc0165968e394c886c332e1c432bace9d5f69b
--- /dev/null
+++ b/en/application-dev/reference/errorcodes/errorcode-bluetoothManager.md
@@ -0,0 +1,131 @@
+# Bluetooth Error Codes
+
+> **NOTE**
+>
+> This topic describes only module-specific error codes. For details about universal error codes, see [Universal Error Codes](errorcode-universal.md).
+
+## 2900001
+
+**Error Message**
+
+Service stopped.
+
+**Description**
+
+The Bluetooth service is stopped, and the APIs related to the Bluetooth service cannot be called.
+
+**Possible Causes**
+
+The Bluetooth service fails to start.
+
+**Solution**
+
+Start the Bluetooth service.
+
+## 2900003
+
+**Error Message**
+
+Bluetooth switch is off.
+
+**Description**
+
+Bluetooth is disabled.
+
+**Possible Causes**
+
+Bluetooth is disabled.
+
+**Solution**
+
+Enable Bluetooth.
+
+## 2900004
+
+**Error Message**
+
+Profile is not supported.
+
+**Description**
+
+The profile is not supported.
+
+**Possible Causes**
+
+The profile is not supported by the device.
+
+**Solution**
+
+Check whether the device supports the profile. Use a profile supported by the device.
+
+## 2900099
+
+**Error Message**
+
+Operation failed.
+
+**Description**
+
+The operation failed.
+
+**Possible Causes**
+
+The profile is not supported by the device.
+
+**Solution**
+
+Perform this operation again.
+
+## 2901000
+
+**Error Message**
+
+Read forbidden.
+
+**Description**
+
+The read operation is not allowed.
+
+**Possible Causes**
+
+The caller does not have the read permission.
+
+**Solution**
+
+Check whether the caller has the read permission.
+
+## 2901001
+
+**Error Message**
+
+Write forbidden.
+
+**Description**
+
+The write operation is not allowed.
+
+**Possible Causes**
+
+The caller does not have the write permission.
+
+**Solution**
+
+Check whether the caller has the write permission.
+
+## 2901054
+
+**Error Message**
+
+IO error.
+
+**Description**
+
+The I/O operation failed.
+
+**Possible Causes**
+
+The I/O transmission is abnormal.
+
+**Solution**
+
+Perform this operation again.
diff --git a/zh-cn/application-dev/application-dev-guide.md b/zh-cn/application-dev/application-dev-guide.md
index 65973cf42728ae1cdcfcac794a3617f292f8d9e7..000525a35348eed5f6dc4f6d08862f2186569555 100644
--- a/zh-cn/application-dev/application-dev-guide.md
+++ b/zh-cn/application-dev/application-dev-guide.md
@@ -4,7 +4,7 @@
在应用开发的文档中,您可以获取到如下几方面的内容:
-### 入门
+## 入门
[入门](quick-start/start-overview.md)可以帮助开发者了解应用开发的基本方法。
@@ -12,7 +12,7 @@
开发的基础知识包含了OpenHarmony应用程序的包结构配置文件说明,以及资源文件的使用指导。
-### 开发
+## 开发
为了帮助开发者更好的理解OpenHarmony提供的能力,我们对重点功能提供了开发指导,辅助开发者完成应用的开发。
@@ -32,28 +32,27 @@
- [网络与连接](connectivity/ipc-rpc-overview.md)
- [电话服务](telephony/telephony-overview.md)
- [数据管理](database/database-mdds-overview.md)
+- [文件管理](file-management/medialibrary-overview.md)
- [任务管理](task-management/background-task-overview.md)
- [设备管理](device/usb-overview.md)
- [设备使用信息统计](device-usage-statistics/device-usage-statistics-overview.md)
- [DFX](dfx/hiappevent-guidelines.md)
- [国际化](internationalization/international-overview.md)
- [应用测试](application-test/arkxtest-guidelines.md)
+- [一次开发,多端部署](key-features/multi-device-app-dev/foreword.md)
- [IDL工具规格及使用说明书](IDL/idl-guidelines.md)
- [Native API的相关指导](napi/napi-guidelines.md)
-- [文件管理](file-management/medialibrary-overview.md)
-- [一次开发,多端部署](key-features/multi-device-app-dev/foreword.md)
-
-### 工具
+## 工具
DevEco Studio工具是OpenHarmony应用开发的推荐IDE工具。
在[工具](https://developer.harmonyos.com/cn/docs/documentation/doc-guides/ohos-deveco-studio-overview-0000001263280421)部分,讲解了DevEco Studio工具的详细用法,包括使用该工具进行工程创建、应用签名、应用调试、应用安装运行的指导。
-### 示例教程
+## 示例教程
我们提供了[Sample工程](https://gitee.com/openharmony/applications_app_samples/blob/master/README_zh.md)和[Codelab](https://gitee.com/openharmony/codelabs/blob/master/README.md)这两种形式的示例教程,为开发者提供更丰富的开发参考,辅助开发者理解功能逻辑,提升开发效率。
-### API参考
+## API参考
API参考提供了OpenHarmony全量组件和接口的参考文档,可以帮助开发者快速查找到指定接口的详细描述和调用方法。
@@ -63,8 +62,8 @@ API参考提供了OpenHarmony全量组件和接口的参考文档,可以帮助
- [组件参考(兼容JS的类Web开发范式-ArkUI.Full)](reference/arkui-js/js-components-common-attributes.md)
- [组件参考(兼容JS的类Web开发范式-ArkUI.Lite)](reference/arkui-js-lite/js-framework-file.md)
- [JS服务卡片UI组件参考](reference/js-service-widget-ui/js-service-widget-file.md)
-- [接口参考(JS及TS API)](reference/apis/js-apis-ability-dataUriUtils.md)
+- [接口参考(ArkTS及JS API)](reference/apis/development-intro.md)
- 接口参考(Native API)
- - [OpenHarmony Native API](reference/native-apis/_o_h___native_x_component.md)
- - [Native API标准库](reference/native-lib/third_party_libc/musl.md)
- - [Node_API](reference/native-lib/third_party_napi/napi.md)
+ - [OpenHarmony Native API](reference/native-apis/_o_h___native_x_component.md)
+ - [Native API标准库](reference/native-lib/third_party_libc/musl.md)
+ - [Node_API](reference/native-lib/third_party_napi/napi.md)
diff --git a/zh-cn/application-dev/application-models/create-pageability.md b/zh-cn/application-dev/application-models/create-pageability.md
index 75ab7e6cac005796a2156e48db577400b2e61ed6..c653379c1c938e6fd595f3acd4f66b5061be577b 100644
--- a/zh-cn/application-dev/application-models/create-pageability.md
+++ b/zh-cn/application-dev/application-models/create-pageability.md
@@ -76,22 +76,22 @@ FA模型中,可以通过featureAbility的getContext接口获取应用上下文
通过getContext获取应用上下文并获取分布式目录的示例如下:
```ts
-import featureAbility from '@ohos.ability.featureAbility'
-import fileIo from '@ohos.fileio'
+import featureAbility from '@ohos.ability.featureAbility';
+import fs from '@ohos.file.fs';
(async () => {
- let dir: string
+ let dir: string;
try {
- console.info('Begin to getOrCreateDistributedDir')
- dir = await featureAbility.getContext().getOrCreateDistributedDir()
+ console.info('Begin to getOrCreateDistributedDir');
+ dir = await featureAbility.getContext().getOrCreateDistributedDir();
console.info('distribute dir is ' + dir)
} catch (error) {
- console.error('getOrCreateDistributedDir failed with ' + error)
+ console.error('getOrCreateDistributedDir failed with ' + error);
}
let fd: number;
let path = dir + "/a.txt";
- fd = fileIo.openSync(path, 0o2 | 0o100, 0o666);
- fileIo.close(fd);
+ fd = fs.openSync(path, fs.OpenMode.READ_WRITE).fd;
+ fs.close(fd);
})()
```
diff --git a/zh-cn/application-dev/application-models/explicit-implicit-want-mappings.md b/zh-cn/application-dev/application-models/explicit-implicit-want-mappings.md
index 067419b0acce2d711705ece7587e3cd77a879b59..f7a39ebf2ea7b80ab710c475c14c92ab438c097c 100644
--- a/zh-cn/application-dev/application-models/explicit-implicit-want-mappings.md
+++ b/zh-cn/application-dev/application-models/explicit-implicit-want-mappings.md
@@ -88,10 +88,6 @@
调用方传入的want参数中设置uri和type参数发起组件启动请求,系统会遍历当前系统已安装的组件列表,并逐个匹配待匹配Ability的skills配置中的uris数组,如果待匹配Ability的skills配置中的uris数组中只要有一个可以匹配调用方传入的want参数中设置的uri和type即为匹配成功。
-**图3** want参数中uri和type皆不为空时的匹配规则
-
-
-
实际应用中,uri和type共存在四种情况,下面将讲解四种情况的具体匹配规则:
- 调用方传入的want参数的uri和type都为空。
@@ -111,6 +107,13 @@
1. 如果待匹配Ability的skills配置中的uris数组为空,匹配失败。
2. 如果待匹配Ability的skills配置中的uris数组存在一条数据[uri匹配](#uri匹配规则)和[type匹配](#type匹配规则)需要均匹配成功,则匹配成功,否则匹配失败。
+最左uri匹配:当配置文件待匹配Ability的skills配置中的uris数组中只配置scheme;或者只配置scheme和host;或者只配置scheme,host和port时。
+传入want参数的uri的最左边依次需要和scheme;或者scheme和host;或者scheme,host,port都匹配,才满足最左uri匹配。
+
+ **图3** want参数中uri和type皆不为空时的匹配规则
+
+ 
+
下图为了简化描述,称want中传入的uri为w_uri,称want中传入的type为w_type, 待匹配Ability的skills配置中uris为s_uris,其中每个元素为s_uri;按自上而下顺序匹配。
@@ -128,7 +131,9 @@
- 如果s_uri的host为空,当w_uri和s_uri的scheme相同时匹配成功,否则匹配失败;
-- 如果s_uri的path、pathStartWith和pathRegex都为空,当w_uri和s_uri完全相同时匹配成功,否则匹配失败;
+- 如果s_uri的port为空,当w_uri和s_uri中的scheme和host相同时匹配成功,否则匹配失败;
+
+- 如果s_uri的path、pathStartWith和pathRegex都为空,当w_uri和s_uri中的scheme,host和port相同时匹配成功,否则匹配失败;
- 如果s_uri的path不为空,当w_uri和s_uri**全路径表达式**相同时匹配成功,否则继续进行pathStartWith的匹配;
@@ -144,6 +149,11 @@
> - **前缀表达式**:`scheme://host:port/pathStartWith`
>
> - **正则表达式**:`scheme://host:port/pathRegex`
+>
+> - **前缀uri表达式**:当配置文件只配置scheme,或者只配置scheme和host,或者只配置scheme,host和port时,参数传入以配置文件为前缀的Uri
+> * `scheme://`
+> * `scheme://host`
+> * `scheme://host:port`
### type匹配规则
diff --git a/zh-cn/application-dev/application-models/figures/want-uri-type1.png b/zh-cn/application-dev/application-models/figures/want-uri-type1.png
index 6dd4117fb44fb8010e4fdbffff5739634680bcd7..3282188c0fa241cbe484394e14597c7cd928941a 100644
Binary files a/zh-cn/application-dev/application-models/figures/want-uri-type1.png and b/zh-cn/application-dev/application-models/figures/want-uri-type1.png differ
diff --git a/zh-cn/application-dev/database/database-datashare-guidelines.md b/zh-cn/application-dev/database/database-datashare-guidelines.md
index cfd6410141c17dc3837f4d24068350e0bbaed263..3ed0ccedd53ccc1a959110440edb42232534266b 100644
--- a/zh-cn/application-dev/database/database-datashare-guidelines.md
+++ b/zh-cn/application-dev/database/database-datashare-guidelines.md
@@ -264,6 +264,38 @@ DataShare即数据共享模块,提供了向其他应用共享以及管理其
console.log('dsHelper delete result: ' + data);
});
```
+## 限制
+
+为了降低DataShareExtensionAbility能力被三方应用滥用的风险,在DataShareExtensionAbility中限制以下接口的调用
+- ./application/UIAbilityContext
+- @ohos.ability.featureAbility.d.ts
+- @ohos.ability.particleAbility.d.ts
+- @ohos.account.osAccount.d.ts
+- @ohos.backgroundTaskManager.d.ts
+- @ohos.bluetooth.d.ts
+- @ohos.bluetoothManager.d.ts
+- @ohos.connectedTag.d.ts
+- @ohos.continuation.continuationManage.d.ts
+- @ohos.mutilmedia.audio.d.ts
+- @ohos.multimedia.carema.d.ts
+- @ohos.nfc.cardEmulation.d.ts
+- @ohos.nfc.controller.d.ts
+- @ohos.nfc.tag.d.ts
+- @ohos.request.d.ts
+- @ohos.resourceschedule.backgroundTaskManager.d.ts
+- @ohos.telephony.call.d.ts
+- @ohos.telephony.data.d.ts
+- @ohos.telephony.observer.d.ts
+- @ohos.telephony.radio.d.ts
+- @ohos.telephony.sim.d.ts
+- @ohos.telephony.sms.d.ts
+- @ohos.vibrator.d.ts
+- @ohos.wallpaper.d.ts
+- @ohos.wifi.d.ts
+- @ohos.wifiext.d.ts
+- @ohos.wifiManager.d.ts
+- @ohos.wifiManagerExt.d.ts
+- @ohos.window.d.ts
## 相关示例
diff --git a/zh-cn/application-dev/quick-start/Readme-CN.md b/zh-cn/application-dev/quick-start/Readme-CN.md
index ef1c7b868f3a4be8ee86d36c2c3109f0011a314b..7447243c41ecf4b6f0c3a73c18f51941802d0ece 100755
--- a/zh-cn/application-dev/quick-start/Readme-CN.md
+++ b/zh-cn/application-dev/quick-start/Readme-CN.md
@@ -27,6 +27,7 @@
- [应用间HSP开发指导(仅对系统应用开放)](cross-app-hsp.md)
- 原子化服务
- [原子化服务开发指导](atomicService.md)
+ - [原子化服务空间管理(仅对系统应用开放)](atomicService-aging.md)
- 应用程序包快速修复
- [快速修复概述](quickfix-principles.md)
- [快速修复调试指导](quickfix-debug.md)
diff --git a/zh-cn/application-dev/quick-start/application-package-structure-fa.md b/zh-cn/application-dev/quick-start/application-package-structure-fa.md
index 3e75f3b114fc2865f54ebbcc70bd0f6e9d39ced6..a8fb2e327d19ad114f265994a07716ceb1d6ad72 100644
--- a/zh-cn/application-dev/quick-start/application-package-structure-fa.md
+++ b/zh-cn/application-dev/quick-start/application-package-structure-fa.md
@@ -11,7 +11,7 @@ FA模型与Stage模型不同之处在于HAP内部文件存放位置不同,FA
- assets是HAP所有的资源文件、库文件和代码文件的集合,内部可以分为entry和js文件夹。entry文件夹中存放的是resources目录和resources.index文件。
-- resources目录用于存放应用的资源文件(字符串、图片等),便于开发者使用和维护,详见[资源文件的使用](../key-features/multi-device-app-dev/resource-usage.md)。
+- resources目录用于存放应用的资源文件(字符串、图片等),便于开发者使用和维护,详见[资源文件的使用](resource-categories-and-access.md)。
- resources.index是资源索引表,由IDE调用SDK工具生成。
diff --git a/zh-cn/application-dev/quick-start/application-package-structure-stage.md b/zh-cn/application-dev/quick-start/application-package-structure-stage.md
index 41c5bc2431533a746a6367d2a90fa64809036ded..485f83c1a731e7b0697a1d2e1fe6358492eb2f02 100644
--- a/zh-cn/application-dev/quick-start/application-package-structure-stage.md
+++ b/zh-cn/application-dev/quick-start/application-package-structure-stage.md
@@ -21,7 +21,7 @@
- 打包后的HAP结构包括ets、libs、resources等文件夹和resources.index、module.json、pack.info等文件。
- ets目录用于存放应用代码编译后的字节码文件。
- libs目录用于存放库文件。库文件是OpenHarmony应用依赖的第三方代码(.so二进制文件)。
- - resources目录用于存放应用的资源文件(字符串、图片等),便于开发者使用和维护,详见[资源文件的使用](../key-features/multi-device-app-dev/resource-usage.md)。
+ - resources目录用于存放应用的资源文件(字符串、图片等),便于开发者使用和维护,详见[资源文件的使用](resource-categories-and-access.md)。
- resources.index是资源索引表,由IDE编译工程时生成。
- module.json是HAP的配置文件,内容由工程配置中的module.json5和app.json5组成,该文件是HAP中必不可少的文件。IDE会自动生成一部分默认配置,开发者按需修改其中的配置。详细字段请参见[应用配置文件](application-configuration-file-overview-stage.md)。
- pack.info是Bundle中用于描述每个HAP属性的文件,例如app中的bundleName和versionCode信息、module中的name、type和abilities等信息,由IDE工具生成Bundle包时自动生成。
diff --git a/zh-cn/application-dev/quick-start/atomicService-aging.md b/zh-cn/application-dev/quick-start/atomicService-aging.md
new file mode 100644
index 0000000000000000000000000000000000000000..6386a526006120cfd6c94bb18252137fedf03e78
--- /dev/null
+++ b/zh-cn/application-dev/quick-start/atomicService-aging.md
@@ -0,0 +1,72 @@
+# 原子化服务空间管理(仅对系统应用开放)
+
+从用户的角度,用户不感知原子化服务的安装,也不会主动的卸载原子化服务;从操作系统的角度,原子化服务使用[免安装特性](../reference/apis/js-apis-freeInstall.md),但并不是真的不安装。因此,为了减少系统空间占用,需要对原子化服务有序管理。
+
+## 原子化服务数据目录配额管理
+
+对原子化服务的数据沙箱目录设置存储配额上限,可通过系统参数persist.sys.bms.aging.policy.atomicservice.datasize.threshold获得,默认值1024MB,当超过该配额限制时,写入数据返回失败。
+
+查看和设置系统参数可使用[param get/set](../../device-dev/subsystems/subsys-boot-init-plugin.md)命令
+
+## 主动销毁原子化服务
+
+可以通过[uninstall](../reference/apis/js-apis-installer.md#bundleinstalleruninstall)接口主动销毁原子化服务。
+
+**示例:**
+
+```ts
+import installer from '@ohos.bundle.installer';
+let bundleName = 'com.ohos.demo';
+let installParam = {
+ userId: 100
+};
+
+try {
+ installer.getBundleInstaller().then(data => {
+ data.uninstall(bundleName, installParam, err => {
+ if (err) {
+ console.error('uninstall failed:' + err.message);
+ } else {
+ console.info('uninstall successfully.');
+ }
+ });
+ }).catch(error => {
+ console.error('getBundleInstaller failed. Cause: ' + error.message);
+ });
+} catch (error) {
+ console.error('getBundleInstaller failed. Cause: ' + error.message);
+}
+```
+
+## 自动销毁原子化服务
+
+### 自动销毁时机
+
+- 定时器触发,其间隔可通过系统参数persist.sys.bms.aging.policy.timer.interval获得,默认8小时;要求剩余电量必须大于等于系统参数persist.sys.bms.aging.policy.battery.threshold,默认10%
+- 安装原子化服务时触发
+- 修改原子化服务可清理标识时触发
+
+### 销毁条件
+
+#### 原子化服务可销毁
+
+- 通过[isHapModuleRemovable](../reference/apis/js-apis-freeInstall.md#ishapmoduleremovable)返回true
+- 非运行状态
+
+#### 销毁开始条件
+
+当前系统所有原子化服务占用空间(包含安装目录和数据目录)大于系统参数persist.sys.bms.aging.policy.data.size.threshold,默认500MB
+
+#### 销毁结束条件
+
+当前系统所有原子化服务占用空间(包含安装目录和数据目录)小于系统参数persist.sys.bms.aging.policy.data.size.threshold的80%
+
+### 自动销毁顺序
+
+- 将可销毁的原子化服务按照最近使用时间区分到不同时间区域内,如[0, 10), [10, 20), [20, 30), [30, ~), 可通过系统参数persist.sys.bms.aging.policy.recently.used.threshold获得时间区域单位,默认是1天;
+- 对于两个可销毁的原子化服务,若处于同一时间区域内优先销毁使用频率低的原子化服务;若处于不同时间区域内优先销毁长时间未使用的原子化服务。
+
+### 分级自动销毁
+
+- 当满足自动销毁开始条件时,按照销毁顺序优先销毁原子化服务的cache目录,若满足销毁结束条件,则退出;
+- 若不满足,则按照销毁顺序再次清理原子化服务的其他目录。
\ No newline at end of file
diff --git a/zh-cn/application-dev/quick-start/figures/application_details.jpg b/zh-cn/application-dev/quick-start/figures/application_details.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..17b7172bc5bea2f4e16af8d385834930ca4bf49f
Binary files /dev/null and b/zh-cn/application-dev/quick-start/figures/application_details.jpg differ
diff --git a/zh-cn/application-dev/quick-start/module-configuration-file.md b/zh-cn/application-dev/quick-start/module-configuration-file.md
index 0743763adda6e0a788c5fc9df8d2ac9fc79393eb..86ccf113fdb68fe1fd08b63af6bb615dd29b82ef 100644
--- a/zh-cn/application-dev/quick-start/module-configuration-file.md
+++ b/zh-cn/application-dev/quick-start/module-configuration-file.md
@@ -204,14 +204,15 @@ deviceTypes示例:
abilities标签描述UIAbility组件的配置信息,标签值为数组类型,该标签下的配置只对当前UIAbility生效。
-**OpenHarmony中不允许应用隐藏启动图标**
+**OpenHarmony中不允许应用隐藏入口图标**
-OpenHarmony系统对无图标应用严格管控。如果HAP中没有配置启动图标,那么系统将应用app.json中的icon作为启动图标,并显示在桌面上。
-用户点击该图标,将跳转到Settings的应用管理中对应的应用详情页面中。
-如果应用想要隐藏启动图标,需要配置AllowAppDesktopIconHide应用特权,具体配置方式参考[应用特权配置指南](../../device-dev/subsystems/subsys-app-privilege-config-guide.md)。
+OpenHarmony系统对无图标应用严格管控。如果HAP中没有配置入口图标,那么系统将应用app.json中的icon作为入口图标,并显示在桌面上。
+用户点击该图标,将跳转到设置应用管理中对应的应用详情页面(图1)中。
+如果应用想要隐藏入口图标,需要配置AllowAppDesktopIconHide应用特权,具体配置方式参考[应用特权配置指南](../../device-dev/subsystems/subsys-app-privilege-config-guide.md)。
+**场景说明:** 该功能能防止一些恶意应用,故意配置无入口图标,导致用户找不到软件所在的位置,无法操作卸载应用,在一定程度上保证用户的手机安全
-**启动图标的设置:** 需要在配置文件(module.json5)中abilities配置下设置icon,label以及skills,而且skills的配置下的必须同时包含“ohos.want.action.home” 和 “entity.system.home”:
+**入口图标的设置:** 需要在配置文件(module.json5)中abilities配置下设置icon,label以及skills,而且skills的配置下的必须同时包含“ohos.want.action.home” 和 “entity.system.home”:
```
{
"module":{
@@ -233,32 +234,34 @@ OpenHarmony系统对无图标应用严格管控。如果HAP中没有配置启动
}
```
-**启动图标的查询**
-* HAP中包含Ability
- * 配置文件(module.json5)中abilities配置中设置了启动图标
+**入口图标及入口标签的显示规则**
+* HAP中包含UIAbility
+ * 配置文件(module.json5)中abilities配置中设置了入口图标
* 该应用没有隐藏图标的特权
- * 返回的桌面图标为该Ability配置的图标
- * 返回的桌面Label为该Ability配置的Label(如果没有配置Label,返回包名)
- * 返回的组件名为该Ability的组件名
- * 用户点击该桌面图标,页面跳转到该Ability首页
+ * 显示桌面图标为该UIAbility配置的图标
+ * 显示桌面Label为该UIAbility配置的Label(如果没有配置Label,返回包名)
+ * 显示组件名为该UIAbility的组件名
+ * 用户点击该桌面图标,页面跳转到该UIAbility首页
* 该应用具有隐藏图标的特权
* 桌面查询时不返回应用信息,不会在桌面上显示对应的图标。
- * 配置文件(module.json5)中abilities配置中未设置启动图标
+ * 配置文件(module.json5)中abilities配置中未设置入口图标
* 该应用没有隐藏图标的特权
- * 返回的桌面图标为app配置下的图标(app.json中icon为必填项)
- * 返回的桌面Label为app配置下的label(app.json中label为必填项)
- * 返回的组件名为应用详情页面的组件名(该组件为系统内置)
- * 用户点击该桌面图标,页面跳转到该应用的详情页面
+ * 显示桌面图标为app配置下的图标(app.json中icon为必填项)
+ * 显示桌面Label为app配置下的label(app.json中label为必填项)
+ * 用户点击该桌面图标,页面跳转到该应用的详情页面(图1)
* 该应用具有隐藏图标的特权
* 桌面查询时不返回应用信息,不会在桌面上显示对应的图标。
-* HAP中不包含Ability
+* HAP中不包含UIAbility
* 该应用没有隐藏图标的特权
- * 返回的桌面图标为app配置下的图标(app.json中icon为必填项)
- * 返回的桌面Label为app配置下的label(app.json中label为必填项)
- * 返回的组件名为应用详情页面的组件名(该组件为系统内置)
- * 用户点击该桌面图标,页面跳转到该应用的详情页面
+ * 显示桌面图标为app配置下的图标(app.json中icon为必填项)
+ * 显示桌面Label为app配置下的label(app.json中label为必填项)
+ * 用户点击该桌面图标,页面跳转到该应用的详情页面(图1)
* 该应用具有隐藏图标的特权
* 桌面查询时不返回应用信息,不会在桌面上显示对应的图标。
+
+应用的详情页例图
+
+
**表4** **abilities标签说明**
@@ -394,39 +397,6 @@ skills示例:
}
```
-**增强隐式查询功能**
-
-支持Uri级别的前缀匹配。
-当配置文件只配置scheme,或者只配置scheme和host,或者只配置scheme,host和port时,参数传入以配置文件为前缀的Uri,配置成功。
-
-
- * 查询功能增强涉及以下接口
- [@ohos.bundle.bundleManager](../reference/apis/js-apis-bundleManager.md#bundlemanagerqueryabilityinfo)
- 1. function queryAbilityInfo(want: Want, abilityFlags: number, callback: AsyncCallback>): void;
- 2. function queryAbilityInfo(want: Want, abilityFlags: number, userId: number, callback: AsyncCallback>): void;
- 3. function queryAbilityInfo(want: Want, abilityFlags: number, userId?: number): Promise>;
- * 配置要求
- abilities -> skills -> uris对象
- 配置1: 只配置 scheme = 'http'
- 配置2: 只配置 ( scheme = 'http' ) + ( host = 'example.com' )
- 配置3: 只配置 ( scheme = 'http' ) + ( host = 'example.com' ) + ( port = '8080' )
- * 前缀匹配
- 参数[want](../application-models/want-overview.md)下uri,调用queryAbilityInfo查询接口
- 1. uri = 'https://' 无匹配
- 2. uri = 'http://' 可以匹配 配置1
- 3. uri = 'https://example.com' 无匹配
- 4. uri = 'https://exa.com' 无匹配
- 5. uri = 'http://exa.com' 可以匹配 配置1
- 6. uri = 'http://example.com' 可以匹配 配置1 配置2
- 7. uri = 'https://example.com:8080' 无匹配
- 8. uri = 'http://exampleaa.com:8080' 可以匹配 配置1
- 9. uri = 'http://example.com:9180' 可以匹配 配置1 配置2
- 10. uri = 'http://example.com:8080' 可以匹配 配置1 配置2 配置3
- 11. uri = 'https://example.com:9180/path' 无匹配
- 12. uri = 'http://exampleap.com:8080/path' 可以匹配 配置1
- 13. uri = 'http://example.com:9180/path' 可以匹配 配置1 配置2
- 14. uri = 'http://example.com:8080/path' 可以匹配 配置1 配置2 配置3
-
## extensionAbilities标签
描述extensionAbilities的配置信息,标签值为数组类型,该标签下的配置只对当前extensionAbilities生效。
diff --git a/zh-cn/application-dev/quick-start/module-structure.md b/zh-cn/application-dev/quick-start/module-structure.md
index 5da4b2204179728ef1ddfd900fcaf75066256d98..69afd5d9b435430d8ca9d1b014be649e5de0c700 100644
--- a/zh-cn/application-dev/quick-start/module-structure.md
+++ b/zh-cn/application-dev/quick-start/module-structure.md
@@ -190,14 +190,15 @@ metadata对象示例:
## abilities对象的内部结构
-**OpenHarmony中不允许应用隐藏启动图标**
+**OpenHarmony中不允许应用隐藏入口图标**
-OpenHarmony系统对无图标应用严格管控。如果HAP中没有配置启动图标,那么系统会给该应用创建一个默认的图标显示在桌面上;
-用户点击该图标,将跳转到Settings的应用管理中对应的应用详情页面中。
-如果应用想要隐藏启动图标,需要配置AllowAppDesktopIconHide应用特权,具体配置方式参考[应用特权配置指南](../../device-dev/subsystems/subsys-app-privilege-config-guide.md)。
+OpenHarmony系统对无图标应用严格管控。如果HAP中没有配置入口图标,那么系统会给该应用创建一个默认的图标显示在桌面上;
+用户点击该图标,将跳转到Settings的应用管理中对应的应用详情页面(图1)中。
+如果应用想要隐藏入口图标,需要配置AllowAppDesktopIconHide应用特权,具体配置方式参考[应用特权配置指南](../../device-dev/subsystems/subsys-app-privilege-config-guide.md)。
+**场景说明:** 该功能能防止一些恶意应用,故意配置无入口图标,导致用户找不到软件所在的位置,无法操作卸载应用,在一定程度上保证用户的手机安全
-**启动图标的设置:** 需要在配置文件(config.json)中abilities配置下设置icon,label以及skills,而且skills的配置下必须同时包含“ohos.want.action.home” 和 “entity.system.home”:
+**入口图标的设置:** 需要在配置文件(config.json)中abilities配置下设置icon,label以及skills,而且skills的配置下必须同时包含“ohos.want.action.home” 和 “entity.system.home”:
```
{
"module":{
@@ -220,34 +221,36 @@ OpenHarmony系统对无图标应用严格管控。如果HAP中没有配置启动
}
```
-**启动图标的查询**
-* HAP中包含Page类型的Ability
- * 配置文件(config.json)中abilities配置中设置了启动图标
+**入口图标及入口标签的显示规则**
+* HAP中包含Page类型的PageAbility
+ * 配置文件(config.json)中abilities配置中设置了入口图标
* 该应用没有隐藏图标的特权
- * 返回的桌面图标为该Ability配置的图标
- * 返回的桌面Label为该Ability配置的Label(如果没有配置Label,返回包名)
- * 返回的组件名为该Ability的组件名
- * 用户点击该桌面图标,页面跳转到该Ability首页
+ * 显示桌面图标为该PageAbility配置的图标
+ * 显示桌面Label为该PageAbility配置的Label(如果没有配置Label,返回包名)
+ * 显示组件名为该PageAbility的组件名
+ * 用户点击该桌面图标,页面跳转到该PageAbility首页
* 该应用具有隐藏图标的特权
* 桌面查询时不返回应用信息,不会在桌面上显示对应的图标。
- * 配置文件(config.json)中abilities配置中未设置启动图标
+ * 配置文件(config.json)中abilities配置中未设置入口图标
* 该应用没有隐藏图标的特权
- * 返回的桌面图标为系统默认图标
- * 返回的桌面Label为该应用的包名
- * 返回的组件名为应用详情页面的组件名(该组件为系统内置)
- * 用户点击该桌面图标,页面跳转到该应用的详情页面
+ * 显示桌面图标为系统默认图标
+ * 显示桌面Label为该应用的包名
+ * 用户点击该桌面图标,页面跳转到该应用的详情页面(图1)
* 该应用具有隐藏图标的特权
* 桌面查询时不返回应用信息,不会在桌面上显示对应的图标。
-* HAP中不包含Page类型的Ability
+* HAP中不包含Page类型的PageAbility
* 该应用没有隐藏图标的特权
- * 返回的桌面图标为系统默认图标
- * 返回的桌面Label为该应用的包名
- * 返回的组件名为应用详情页面的组件名(该组件为系统内置)
- * 用户点击该桌面图标,页面跳转到该应用的详情页面
+ * 显示桌面图标为系统默认图标
+ * 显示桌面Label为该应用的包名
+ * 用户点击该桌面图标,页面跳转到该应用的详情页面(图1)
* 该应用具有隐藏图标的特权
* 桌面查询时不返回应用信息,不会在桌面上显示对应的图标。
-注:应用详情页面中显示的图标与label,可能与桌面上显示的不同。如果非Page类型的ability配置了入口图标和label,那么详情页中显示的即为配置的。
+注:应用详情页面(图1)中显示的label可能与桌面上显示的不同。如果非Page类型的PageAbility配置了入口图标和label,那么详情页中显示的即为配置的。
+
+图1
+
+
**表8** **abilities对象的内部结构说明**
@@ -411,40 +414,6 @@ skills示例:
]
```
-**增强隐式查询功能**
-
-支持Uri级别的前缀匹配。
-当配置文件只配置scheme,或者只配置scheme和host,或者只配置scheme,host和port时,参数传入以配置文件为前缀的Uri,配置成功。
-
- * 查询功能增强涉及以下接口
- [@ohos.bundle.bundleManager](../reference/apis/js-apis-bundleManager.md#bundlemanagerqueryabilityinfo)
- 1. function queryAbilityInfo(want: Want, abilityFlags: number, callback: AsyncCallback>): void;
- 2. function queryAbilityInfo(want: Want, abilityFlags: number, userId: number, callback: AsyncCallback>): void;
- 3. function queryAbilityInfo(want: Want, abilityFlags: number, userId?: number): Promise>;
- * 配置要求
- abilities -> skills -> uris对象
- 配置1: 只配置 scheme = 'http'
- 配置2: 只配置 ( scheme = 'http' ) + ( host = 'www.example.com' )
- 配置3: 只配置 ( scheme = 'http' ) + ( host = 'www.example.com' ) + ( port = '8080' )
- * 前缀匹配
- [want](../application-models/want-overview.md)下uri,调用queryAbilityInfo查询接口
- 1. uri = 'https://' 无匹配
- 2. uri = 'http://' 可以匹配 配置1
- 3. uri = 'https://www.example.com' 无匹配
- 4. uri = 'https://www.exa.com' 无匹配
- 5. uri = 'http://www.exa.com' 可以匹配 配置1
- 6. uri = 'http://www.example.com' 可以匹配 配置1 配置2
- 7. uri = 'https://www.example.com:8080' 无匹配
- 8. uri = 'http://www.exampleaa.com:8080' 可以匹配 配置1
- 9. uri = 'http://www.example.com:9180' 可以匹配 配置1 配置2
- 10. uri = 'http://www.example.com:8080' 可以匹配 配置1 配置2 配置3
- 11. uri = 'https://www.example.com:9180/query/student/name' 无匹配
- 12. uri = 'http://www.exampleap.com:8080/query/student/name' 可以匹配 配置1
- 13. uri = 'http://www.example.com:9180/query/student/name' 可以匹配 配置1 配置2
- 14. uri = 'http://www.example.com:8080/query/student/name' 可以匹配 配置1 配置2 配置3
-
-
-
## reqPermissions权限申请
**表12** **reqPermissions权限申请字段说明**
diff --git a/zh-cn/application-dev/reference/apis/Readme-CN.md b/zh-cn/application-dev/reference/apis/Readme-CN.md
index 07d9d19b88f139b835a153c436013f92f3257148..95ad5e7b6db5ff249511dca9841dae46e6c9b66d 100755
--- a/zh-cn/application-dev/reference/apis/Readme-CN.md
+++ b/zh-cn/application-dev/reference/apis/Readme-CN.md
@@ -233,6 +233,7 @@
- [@ohos.data.ValuesBucket (数据集)](js-apis-data-valuesBucket.md)
- 文件管理
+ - [@ohos.file.cloudSyncManager (端云同步管理)](js-apis-file-cloudsyncmanager.md)
- [@ohos.file.environment (目录环境能力)](js-apis-file-environment.md)
- [@ohos.file.fileAccess (公共文件访问与管理)](js-apis-fileAccess.md)
- [@ohos.file.fileExtensionInfo (公共文件访问与管理属性信息)](js-apis-fileExtensionInfo.md)
@@ -267,7 +268,8 @@
- [@ohos.request (上传下载)](js-apis-request.md)
- 通信与连接
- - [@ohos.bluetooth (蓝牙)](js-apis-bluetooth.md)
+ - [@ohos.bluetooth (蓝牙)(待停用)](js-apis-bluetooth.md)
+ - [@ohos.bluetoothManager (蓝牙)(推荐)](js-apis-bluetoothManager.md)
- [@ohos.connectedTag (有源标签)](js-apis-connectedTag.md)
- [@ohos.nfc.cardEmulation (标准NFC-cardEmulation)](js-apis-cardEmulation.md)
- [@ohos.nfc.controller (标准NFC)](js-apis-nfcController.md)
@@ -352,6 +354,7 @@
- 定制管理
- [@ohos.configPolicy (配置策略)](js-apis-configPolicy.md)
- [@ohos.enterprise.accountManager (帐户管理)](js-apis-enterprise-accountManager.md)
+ - [@ohos.enterprise.bundleManager (包管理)](js-apis-enterprise-bundleManager.md)
- [@ohos.enterprise.adminManager (企业设备管理)](js-apis-enterprise-adminManager.md)
- [@ohos.enterprise.dateTimeManager (系统时间管理)](js-apis-enterprise-dateTimeManager.md)
- [@ohos.enterprise.deviceControl (设备控制管理)](js-apis-enterprise-deviceControl.md)
diff --git a/zh-cn/application-dev/reference/apis/js-apis-app-ability-appRecovery.md b/zh-cn/application-dev/reference/apis/js-apis-app-ability-appRecovery.md
index 8658417d06f5e70a9f87a3ae9555a6fa82a628fa..94ac177abec2771b0bda6c3f0413b97bea8f8ec8 100644
--- a/zh-cn/application-dev/reference/apis/js-apis-app-ability-appRecovery.md
+++ b/zh-cn/application-dev/reference/apis/js-apis-app-ability-appRecovery.md
@@ -158,6 +158,12 @@ saveAppState(context?: UIAbilityContext): boolean;
**系统能力**:SystemCapability.Ability.AbilityRuntime.Core
+**参数:**
+
+| 参数名 | 类型 | 必填 | 说明 |
+| -------- | -------- | -------- | -------- |
+| context | [UIAbilityContext](js-apis-inner-application-uiAbilityContext.md)| 否 | UIAbility上下文环境。 |
+
**返回值:**
| 类型 | 说明 |
@@ -182,6 +188,12 @@ setRestartWant(want: Want): void;
**系统能力**:SystemCapability.Ability.AbilityRuntime.Core
+**参数:**
+
+| 参数名 | 类型 | 必填 | 说明 |
+| -------- | -------- | -------- | -------- |
+| want | [Want](js-apis-application-want.md)| 是 | 通过设置Want中"bundleName"和"abilityName"字段来指定恢复重启的Ability。 |
+
**示例:**
```ts
diff --git a/zh-cn/application-dev/reference/apis/js-apis-app-ability-serviceExtensionAbility.md b/zh-cn/application-dev/reference/apis/js-apis-app-ability-serviceExtensionAbility.md
index bc17ac5a0e514bfc1526eb5771399029faae9a24..8e521d379da256f91114d62f06a822f01903758c 100644
--- a/zh-cn/application-dev/reference/apis/js-apis-app-ability-serviceExtensionAbility.md
+++ b/zh-cn/application-dev/reference/apis/js-apis-app-ability-serviceExtensionAbility.md
@@ -148,7 +148,7 @@ Extension生命周期回调,如果是connectAbility拉起的服务,会在onC
## ServiceExtensionAbility.onDisconnect
-onDisconnect(want: Want): void | Promise;
+onDisconnect(want: Want): void | Promise\;
Extension的生命周期回调,客户端执行断开连接服务时回调。
diff --git a/zh-cn/application-dev/reference/apis/js-apis-app-ability-want.md b/zh-cn/application-dev/reference/apis/js-apis-app-ability-want.md
index 1c5085195ca7703e0e9cdd76bc30b8dbe47f4423..6b938dfa1c2dfa3ff782f61f09f1763280a3fc71 100644
--- a/zh-cn/application-dev/reference/apis/js-apis-app-ability-want.md
+++ b/zh-cn/application-dev/reference/apis/js-apis-app-ability-want.md
@@ -130,11 +130,11 @@ import Want from '@ohos.app.ability.Want';
```
* 文件描述符(FD)
```ts
- import fileio from '@ohos.fileio';
+ import fs from '@ohos.file.fs';
let fd;
try {
- fd = fileio.openSync('/data/storage/el2/base/haps/pic.png');
+ fd = fs.openSync('/data/storage/el2/base/haps/pic.png').fd;
} catch(e) {
console.error('openSync fail: ${JSON.stringify(e)}');
}
diff --git a/zh-cn/application-dev/reference/apis/js-apis-application-want.md b/zh-cn/application-dev/reference/apis/js-apis-application-want.md
index f7d00402995f666cd8eb47062b2c61b789fdc285..f028724c676fb7437c902c9ef45a7a795525bde2 100644
--- a/zh-cn/application-dev/reference/apis/js-apis-application-want.md
+++ b/zh-cn/application-dev/reference/apis/js-apis-application-want.md
@@ -108,10 +108,10 @@ import Want from '@ohos.application.Want';
```
* 文件描述符(FD)
```ts
- import fileio from '@ohos.fileio';
+ import fs from '@ohos.file.fs';
let fd;
try {
- fd = fileio.openSync('/data/storage/el2/base/haps/pic.png');
+ fd = fs.openSync('/data/storage/el2/base/haps/pic.png').fd;
} catch(e) {
console.error('openSync fail: ${JSON.stringify(e)}');
}
diff --git a/zh-cn/application-dev/reference/apis/js-apis-avsession.md b/zh-cn/application-dev/reference/apis/js-apis-avsession.md
index 92a3d81ebaad1d37ace61f40bd596bd35a9da2b0..e479203da8df13119334a1dd8f01f27f10a276c5 100755
--- a/zh-cn/application-dev/reference/apis/js-apis-avsession.md
+++ b/zh-cn/application-dev/reference/apis/js-apis-avsession.md
@@ -441,8 +441,9 @@ castAudio(session: SessionToken | 'all', audioDevices: Array {
+await audioRoutingManager.getDevices(audio.DeviceFlag.OUTPUT_DEVICES_FLAG).then((data) => {
audioDevices = data;
console.info('Promise returned to indicate that the device list is obtained.');
}).catch((err) => {
@@ -493,8 +494,9 @@ castAudio(session: SessionToken | 'all', audioDevices: Array {
+await audioRoutingManager.getDevices(audio.DeviceFlag.OUTPUT_DEVICES_FLAG).then((data) => {
audioDevices = data;
console.info('Promise returned to indicate that the device list is obtained.');
}).catch((err) => {
diff --git a/zh-cn/application-dev/reference/apis/js-apis-bluetoothManager.md b/zh-cn/application-dev/reference/apis/js-apis-bluetoothManager.md
index 673a90540c0f1e82f1787f2a566d132192b480e5..3ab78fbb0abb3d81e51c405c69f3388b3b0abe45 100644
--- a/zh-cn/application-dev/reference/apis/js-apis-bluetoothManager.md
+++ b/zh-cn/application-dev/reference/apis/js-apis-bluetoothManager.md
@@ -652,6 +652,98 @@ try {
```
+## bluetoothManager.setDevicePinCode10+
+
+setDevicePinCode(device: string, code: string, callback: AsyncCallback<void>): void
+
+当蓝牙配对类型[PinType](#pintype10)为PIN_TYPE_ENTER_PIN_CODE或PIN_TYPE_PIN_16_DIGITS时调用此接口,请求用户输入PIN码。
+
+**需要权限**:ohos.permission.MANAGE_BLUETOOTH
+
+**系统能力**:SystemCapability.Communication.Bluetooth.Core。
+
+**参数:**
+
+| 参数名 | 类型 | 必填 | 说明 |
+| ------ | ------- | ---- | -------------------------------- |
+| device | string | 是 | 表示远端设备MAC地址,例如:"XX:XX:XX:XX:XX:XX"。 |
+| code | string | 是 | 用户输入的PIN码。 |
+| callback | AsyncCallback<void> | 是 | 回调函数,当设置PinCode成功,err为undefined,否则为错误对象。 |
+
+**错误码**:
+
+以下错误码的详细介绍请参见[蓝牙服务子系统错误码](../errorcodes/errorcode-bluetoothManager.md)。
+
+| 错误码ID | 错误信息 |
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2900003 | Bluetooth switch is off. |
+|2900099 | Operation failed. |
+
+**示例:**
+
+```js
+//callback
+try {
+ bluetoothManager.setDevicePinCode('11:22:33:44:55:66', '12345', (err, data) => {
+ console.info('setDevicePinCode,device name err:' + JSON.stringify(err) + ',device name:' + JSON.stringify(data));
+ });
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
+## bluetoothManager.setDevicePinCode10+
+
+setDevicePinCode(device: string, code: string): Promise<void>
+
+当蓝牙配对类型[PinType](#pintype10)为PIN_TYPE_ENTER_PIN_CODE或PIN_TYPE_PIN_16_DIGITS时调用此接口,请求用户输入PIN码。
+
+**需要权限**:ohos.permission.MANAGE_BLUETOOTH
+
+**系统能力**:SystemCapability.Communication.Bluetooth.Core。
+
+**参数:**
+
+| 参数名 | 类型 | 必填 | 说明 |
+| ------ | ------- | ---- | -------------------------------- |
+| device | string | 是 | 表示远端设备MAC地址,例如:"XX:XX:XX:XX:XX:XX"。 |
+| code | string | 是 | 用户输入的PIN码。 |
+
+**返回值:**
+
+| 类型 | 说明 |
+| ------------------- | ------------- |
+| Promise<void> | 返回promise对象。 |
+
+**错误码**:
+
+以下错误码的详细介绍请参见[蓝牙服务子系统错误码](../errorcodes/errorcode-bluetoothManager.md)。
+
+| 错误码ID | 错误信息 |
+| -------- | ---------------------------- |
+|2900001 | Service stopped. |
+|2900003 | Bluetooth switch is off. |
+|2900099 | Operation failed. |
+
+**示例:**
+
+```js
+//promise
+try {
+ bluetoothManager.setDevicePinCode('11:22:33:44:55:66', '12345').then(() => {
+ console.info('setDevicePinCode');
+ }, error => {
+ console.info('setDevicePinCode: errCode:' + error.code + ',errMessage' + error.message);
+ })
+
+} catch (err) {
+ console.error("errCode:" + err.code + ",errMessage:" + err.message);
+}
+```
+
+
## bluetoothManager.on('bluetoothDeviceFind')
on(type: "bluetoothDeviceFind", callback: Callback<Array<string>>): void
@@ -4005,12 +4097,13 @@ try {
**系统能力**:SystemCapability.Communication.Bluetooth.Core。
-| 名称 | 类型 | 可读 | 可写 | 说明 |
+| 名称 | 类型 | 可读 | 可写 | 说明 |
| ------------------- | ---------------------------------------- | ---- | ---- | ---------------------------------------- |
| serviceUuid | string | 是 | 是 | 特定服务(service)的UUID,例如:00001888-0000-1000-8000-00805f9b34fb。 |
| characteristicUuid | string | 是 | 是 | 特定特征(characteristic)的UUID,例如:00002a11-0000-1000-8000-00805f9b34fb。 |
-| characteristicValue | ArrayBuffer | 是 | 是 | 特征对应的二进制值。 |
-| descriptors | Array<[BLEDescriptor](#bledescriptor)> | 是 | 是 | 特定特征的描述符列表。 |
+| characteristicValue | ArrayBuffer | 是 | 是 | 特征对应的二进制值。 |
+| descriptors | Array<[BLEDescriptor](#bledescriptor)> | 是 | 是 | 特定特征的描述符列表。 |
+| properties10+ | [GattProperties](#gattproperties10) | 是 | 是 | 特定特征的属性描述。 |
## BLEDescriptor
@@ -4218,6 +4311,7 @@ try {
| deviceId | string | 是 | 否 | 表示扫描到的设备地址,例如:"XX:XX:XX:XX:XX:XX"。 |
| rssi | number | 是 | 否 | 表示扫描到的设备的rssi值。 |
| data | ArrayBuffer | 是 | 否 | 表示扫描到的设备发送的广播包。 |
+| deviceName10+ | string | 是 | 否 | 表示扫描到的设备名称。 |
## BluetoothState
@@ -4297,6 +4391,7 @@ try {
| -------- | ------ | ---- | ---- | ----------- |
| deviceId | string | 是 | 否 | 表示要配对的设备ID。 |
| pinCode | string | 是 | 否 | 表示要配对的密钥。 |
+| pinType10+ | [PinType](#pintype10) | 是 | 否 | 表示要配对的设备类型。 |
## BondStateParam
@@ -4323,6 +4418,21 @@ try {
| state | [ProfileConnectionState](#profileconnectionstate) | 是 | 否 | 表示蓝牙设备的profile连接状态。 |
+## GattProperties10+
+
+描述gatt characteristic的属性。
+
+**系统能力**:SystemCapability.Communication.Bluetooth.Core。
+
+| 名称 | 类型 | 只读 | 必填 | 说明 |
+| -------- | ------ | ---- | ---- | ----------- |
+| write10+ | boolean | 是 | 是 | 表示该特征支持写操作,需要对端设备的回复。 |
+| writeNoResponse10+ | boolean | 是 | 是 | 表示该特征支持写操作,无需对端设备回复。 |
+| read10+ | boolean | 是 | 是 | 表示该特征支持读操作。 |
+| notify10+ | boolean | 是 | 是 | 表示该特征可通知对端设备。 |
+| indicate10+ | boolean | 是 | 是 | 表示该特征可通知对端设备,需要对端设备的回复。 |
+
+
## DeviceClass
描述蓝牙设备的类别。
@@ -4336,7 +4446,6 @@ try {
| classOfDevice | number | 是 | 否 | 表示设备类别。 |
-
## MajorClass
枚举,蓝牙设备主要类别。
@@ -4477,4 +4586,22 @@ try {
| PROFILE_A2DP_SOURCE | 1 | 表示A2DP profile。 |
| PROFILE_HANDS_FREE_AUDIO_GATEWAY | 4 | 表示HFP profile。 |
| PROFILE_HID_HOST | 6 | 表示HID profile。 |
-| PROFILE_PAN_NETWORK | 7 | 表示PAN profile。 |
\ No newline at end of file
+| PROFILE_PAN_NETWORK | 7 | 表示PAN profile。 |
+
+
+## PinType10+
+
+枚举,蓝牙配对类型。
+
+**系统能力**:SystemCapability.Communication.Bluetooth.Core。
+
+| 名称 | 值 | 说明 |
+| -------------------------------- | ------ | --------------- |
+| PIN_TYPE_ENTER_PIN_CODE10+ | 0 | 用户需要输入对端设备上显示的PIN码。 |
+| PIN_TYPE_ENTER_PASSKEY10+ | 1 | 用户需要输入对端设备上显示的PASSKEY。 |
+| PIN_TYPE_CONFIRM_PASSKEY10+ | 2 | 用户需要确认本地设备上显示的PASSKEY。 |
+| PIN_TYPE_NO_PASSKEY_CONSENT10+ | 3 | 无PASSKEY,用户需要接受或拒绝配对请求。 |
+| PIN_TYPE_NOTIFY_PASSKEY10+ | 4 | 本地设备显示PASSKEY,用户需要在对端设备上输入该PASSKEY。 |
+| PIN_TYPE_DISPLAY_PIN_CODE10+ | 5 | bluetooth 2.0设备,用户需要输入对端设备上显示的PIN码。 |
+| PIN_TYPE_OOB_CONSENT10+ | 6 | 用户需要接受或拒绝OOB配对请求。 |
+| PIN_TYPE_PIN_16_DIGITS10+ | 7 | 用户需要输入对端设备上显示的16位PIN码。 |
diff --git a/zh-cn/application-dev/reference/apis/js-apis-bundleManager-businessAbilityInfo.md b/zh-cn/application-dev/reference/apis/js-apis-bundleManager-businessAbilityInfo.md
new file mode 100644
index 0000000000000000000000000000000000000000..deeea708b336bd3a01788a178a6353ff29bbeac8
--- /dev/null
+++ b/zh-cn/application-dev/reference/apis/js-apis-bundleManager-businessAbilityInfo.md
@@ -0,0 +1,21 @@
+# BusinessAbilityInfo
+
+> **说明:**
+> 本模块首批接口从API version 10 开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
+
+包含基本业务路由信息。
+
+## BusinessAbilityInfo
+
+**系统能力**: SystemCapability.BundleManager.BundleFramework.Core
+
+| 名称 | 类型 | 可读 | 可写 | 说明 |
+| --------------------------------- | ------------------------------------------------------------ | ---- | ---- | -------------------- |
+| bundleName | string | 是 | 否 | 表示应用程序的bundleName。 |
+| moduleName | string | 是 | 否 | 表示应用程序的moduleName。 |
+| name | string | 是 | 否 | 业务路由ability名。 |
+| labelId | number | 是 | 否 | 模块标签的资源id。 |
+| descriptionId | number | 是 | 否 | 描述信息的资源id。 |
+| iconId | number | 是 | 否 | 描述ability信息的图标id。 |
+| businessType | [businessAbilityRouter.BusinessType](js-apis-businessAbilityRouter.md#businesstype) | 是 | 否 | 标识枚举业务类型。 |
+| applicationInfo | Array\<[ApplicationInfo](js-apis-bundleManager-applicationInfo.md)> | 是 | 否 | 应用程序的信息。 |
diff --git a/zh-cn/application-dev/reference/apis/js-apis-businessAbilityRouter.md b/zh-cn/application-dev/reference/apis/js-apis-businessAbilityRouter.md
new file mode 100644
index 0000000000000000000000000000000000000000..39213c877d58f8a243a1fd29dd8399f1a82da5ec
--- /dev/null
+++ b/zh-cn/application-dev/reference/apis/js-apis-businessAbilityRouter.md
@@ -0,0 +1,130 @@
+# @ohos.app.businessAbilityRouter (业务路由模块)
+
+本模块用于查询当前设备上安装的各种应用程序的路由ability信息。通过业务路由提供标准的业务模板和业务管理能力,开发者可以按照指定的业务类别注册标准业务,丰富的业务形成一个庞大的超市。系统应用或者三方应用可以从业务路由中获取所需业务,并选择合适的业务使用。同时业务路由提供统一的跳转管控规则,控制应用与业务之间的合理跳转,杜绝前后台任意的跳转行为,避免三方应用通过跳转变相分发,解决安全弱、体验差的问题。
+
+> **说明:**
+>
+> 本模块首批接口从API version 10 开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
+
+本模块接口为系统接口。
+
+## 导入模块
+
+``` ts
+import businessAbilityRouter from '@ohos.app.businessAbilityRouter';
+```
+
+## 权限列表
+
+| 权限 | 权限等级 | 描述 |
+| ------------------------------------------ | ------------ | -------------------- |
+| ohos.permission.GET_BUNDLE_INFO_PRIVILEGED | system_basic | 可查询所有应用信息。 |
+
+权限等级参考[权限等级说明](../../security/accesstoken-overview.md#权限等级说明)。
+
+## BusinessType
+
+此枚举值用于标识过滤条件类型。
+
+**系统能力:** 以下各项对应的系统能力均为SystemCapability.BundleManager.BundleFramework.Core。
+
+**系统接口:** 此接口为系统接口。
+
+| 名称 | 值 | 说明 |
+| ----------- | ---- | ------------------------------------ |
+| SHARE | 0 | 标识具有共享类型的ability信息。 |
+| UNSPECIFIED | 255 | 标识未指定类型的ability信息。 |
+
+## BusinessAbilityFilter
+
+此过滤值用于过滤查询的ability类型。
+
+**系统能力:** SystemCapability.BundleManager.BundleFrameWork.FreeInstall
+
+**系统接口:** 此接口为系统接口。
+
+| 名称 | 类型 | 可读 | 可写 | 说明 |
+| ------------ | ------------ | ---- | ---- | -------------------------------------- |
+| businessType | BusinessType | 是 | 否 | 标识ability信息的类型。 |
+| mimeType | string | 是 | 否 | 标识支持mime类型的ability信息。 |
+| uri | string | 是 | 否 | 标识ability信息支持的uri。 |
+
+## businessAbilityRouter.queryBusinessAbilityInfo
+
+queryBusinessAbilityInfo(filter: BusinessAbilityFilter, callback: AsyncCallback\\>): void;
+
+以异步方法通过给定的过滤条件查询ability信息。使用callback异步回调。成功返回查询到的路由ability信息,失败返回对应错误信息。
+
+**需要权限:** ohos.permission.GET_BUNDLE_INFO_PRIVILEGED
+
+**系统能力:** SystemCapability.BundleManager.BundleFramework.Core
+
+**系统API:** 此接口为系统接口。
+
+**参数:**
+
+| 参数名 | 类型 | 必填 | 说明 |
+| ----------- | ------ | ---- | --------------------------------------- |
+| filter | [BusinessAbilityFilter](#businessabilityfilter) | 是 | 支持按业务类型过滤的对象。 |
+| callback | AsyncCallback\\> | 是 | 回调函数。返回查询到的ability信息,否则为错误对象。 |
+
+**示例:**
+
+```ts
+import businessAbilityRouter from '@ohos.app.businessAbilityRouter';
+let filter = {businessType: businessAbilityRouter.BusinessType.SHARE};
+
+try {
+ businessAbilityRouter.queryBusinessAbilityInfo(filter)
+ .then(() => {
+ console.info('queryBusinessAbilityInfo success');
+ }).catch((error) => {
+ console.error('queryBusinessAbilityInfo failed ' + error.message);
+ });
+} catch (error) {
+ console.error('queryBusinessAbilityInfo failed ' + error.message);
+}
+```
+
+## businessAbilityRouter.queryBusinessAbilityInfo
+
+queryBusinessAbilityInfo(filter: BusinessAbilityFilter): Promise\\>;
+
+以异步方法通过给定的过滤条件查询ability信息。使用Promise异步回调,成功返回查询到的路由ability信息,失败返回对应错误信息。
+
+**需要权限:** ohos.permission.GET_BUNDLE_INFO_PRIVILEGED
+
+**系统能力:** SystemCapability.BundleManager.BundleFramework.Core
+
+**系统API:** 此接口为系统接口。
+
+**参数:**
+
+| 参数名 | 类型 | 必填 | 说明 |
+| ----------- | ------------------------------- | ---- | --------------------------------------- |
+| filter | [BusinessAbilityFilter](#businessabilityfilter) | 是 | 包含要查询的ability信息的筛选类型。 |
+
+**返回值:**
+
+| 类型 | 说明 |
+| ------------------------------------------------------------ | ------------------------------------------- |
+| Promise\\> | Promise对象,返回符合过滤条件的ability信息。 |
+
+**示例:**
+
+```ts
+import businessAbilityRouter from '@ohos.app.businessAbilityRouter';
+let filter = {businessType: businessAbilityRouter.BusinessType.SHARE};
+
+try {
+ businessAbilityRouter.queryBusinessAbilityInfo(filter, (error, data) => {
+ if (error) {
+ console.error('queryBusinessAbilityInfo failed ' + error.message);
+ return;
+ }
+ console.info('queryBusinessAbilityInfo success');
+ });
+} catch (error) {
+ console.error('queryBusinessAbilityInfo failed ' + error.message);
+}
+```
diff --git a/zh-cn/application-dev/reference/apis/js-apis-data-relationalStore.md b/zh-cn/application-dev/reference/apis/js-apis-data-relationalStore.md
index 9a238fa148fc5d604106ef43eef16d1c85a4ed90..5271bda7af2d893c6bdcf98bc5b18c1442ec75c0 100644
--- a/zh-cn/application-dev/reference/apis/js-apis-data-relationalStore.md
+++ b/zh-cn/application-dev/reference/apis/js-apis-data-relationalStore.md
@@ -1281,6 +1281,14 @@ insert(table: string, values: ValuesBucket, callback: AsyncCallback<number>
| values | [ValuesBucket](#valuesbucket) | 是 | 表示要插入到表中的数据行。 |
| callback | AsyncCallback<number> | 是 | 指定callback回调函数。如果操作成功,返回行ID;否则返回-1。 |
+**错误码:**
+
+以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。
+
+| **错误码ID** | **错误信息** |
+| ------------ | ----------------------- |
+| 14800047 | The WAL file size exceeds the default limit.|
+
**示例:**
```js
@@ -1316,6 +1324,14 @@ insert(table: string, values: ValuesBucket, conflict: ConflictResolution, callb
| conflict | [ConflictResolution](#conflictresolution10) | 是 | 指定冲突解决方式。 |
| callback | AsyncCallback<number> | 是 | 指定callback回调函数。如果操作成功,返回行ID;否则返回-1。 |
+**错误码:**
+
+以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。
+
+| **错误码ID** | **错误信息** |
+| ------------ | ----------------------- |
+| 14800047 | The WAL file size exceeds the default limit.|
+
**示例:**
```js
@@ -1355,6 +1371,14 @@ insert(table: string, values: ValuesBucket):Promise<number>
| --------------------- | ------------------------------------------------- |
| Promise<number> | Promise对象。如果操作成功,返回行ID;否则返回-1。 |
+**错误码:**
+
+以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。
+
+| **错误码ID** | **错误信息** |
+| ------------ | ----------------------- |
+| 14800047 | The WAL file size exceeds the default limit.|
+
**示例:**
```js
@@ -1394,6 +1418,14 @@ insert(table: string, values: ValuesBucket, conflict: ConflictResolution):Promi
| --------------------- | ------------------------------------------------- |
| Promise<number> | Promise对象。如果操作成功,返回行ID;否则返回-1。 |
+**错误码:**
+
+以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。
+
+| **错误码ID** | **错误信息** |
+| ------------ | ----------------------- |
+| 14800047 | The WAL file size exceeds the default limit.|
+
**示例:**
```js
@@ -1427,6 +1459,14 @@ batchInsert(table: string, values: Array<ValuesBucket>, callback: AsyncCal
| values | Array<[ValuesBucket](#valuesbucket)> | 是 | 表示要插入到表中的一组数据。 |
| callback | AsyncCallback<number> | 是 | 指定callback回调函数。如果操作成功,返回插入的数据个数,否则返回-1。 |
+**错误码:**
+
+以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。
+
+| **错误码ID** | **错误信息** |
+| ------------ | ----------------------- |
+| 14800047 | The WAL file size exceeds the default limit.|
+
**示例:**
```js
@@ -1480,6 +1520,14 @@ batchInsert(table: string, values: Array<ValuesBucket>):Promise<number&
| --------------------- | ----------------------------------------------------------- |
| Promise<number> | Promise对象。如果操作成功,返回插入的数据个数,否则返回-1。 |
+**错误码:**
+
+以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。
+
+| **错误码ID** | **错误信息** |
+| ------------ | ----------------------- |
+| 14800047 | The WAL file size exceeds the default limit.|
+
**示例:**
```js
@@ -1527,6 +1575,14 @@ update(values: ValuesBucket, predicates: RdbPredicates, callback: AsyncCallback&
| predicates | [RdbPredicates](#rdbpredicates) | 是 | RdbPredicates的实例对象指定的更新条件。 |
| callback | AsyncCallback<number> | 是 | 指定的callback回调方法。返回受影响的行数。 |
+**错误码:**
+
+以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。
+
+| **错误码ID** | **错误信息** |
+| ------------ | ----------------------- |
+| 14800047 | The WAL file size exceeds the default limit.|
+
**示例:**
```js
@@ -1564,6 +1620,14 @@ update(values: ValuesBucket, predicates: RdbPredicates, conflict: ConflictResolu
| conflict | [ConflictResolution](#conflictresolution10) | 是 | 指定冲突解决方式。 |
| callback | AsyncCallback<number> | 是 | 指定的callback回调方法。返回受影响的行数。 |
+**错误码:**
+
+以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。
+
+| **错误码ID** | **错误信息** |
+| ------------ | ----------------------- |
+| 14800047 | The WAL file size exceeds the default limit.|
+
**示例:**
```js
@@ -1605,6 +1669,14 @@ update(values: ValuesBucket, predicates: RdbPredicates):Promise<number>
| --------------------- | ----------------------------------------- |
| Promise<number> | 指定的Promise回调方法。返回受影响的行数。 |
+**错误码:**
+
+以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。
+
+| **错误码ID** | **错误信息** |
+| ------------ | ----------------------- |
+| 14800047 | The WAL file size exceeds the default limit.|
+
**示例:**
```js
@@ -1646,6 +1718,14 @@ update(values: ValuesBucket, predicates: RdbPredicates, conflict: ConflictResolu
| --------------------- | ----------------------------------------- |
| Promise<number> | 指定的Promise回调方法。返回受影响的行数。 |
+**错误码:**
+
+以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。
+
+| **错误码ID** | **错误信息** |
+| ------------ | ----------------------- |
+| 14800047 | The WAL file size exceeds the default limit.|
+
**示例:**
```js
@@ -1684,6 +1764,14 @@ update(table: string, values: ValuesBucket, predicates: dataSharePredicates.Data
| predicates | [dataSharePredicates.DataSharePredicates](js-apis-data-dataSharePredicates.md#datasharepredicates) | 是 | DataSharePredicates的实例对象指定的更新条件。 |
| callback | AsyncCallback<number> | 是 | 指定的callback回调方法。返回受影响的行数。 |
+**错误码:**
+
+以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。
+
+| **错误码ID** | **错误信息** |
+| ------------ | ----------------------- |
+| 14800047 | The WAL file size exceeds the default limit.|
+
**示例:**
```js
@@ -1729,6 +1817,14 @@ update(table: string, values: ValuesBucket, predicates: dataSharePredicates.Data
| --------------------- | ----------------------------------------- |
| Promise<number> | 指定的Promise回调方法。返回受影响的行数。 |
+**错误码:**
+
+以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。
+
+| **错误码ID** | **错误信息** |
+| ------------ | ----------------------- |
+| 14800047 | The WAL file size exceeds the default limit.|
+
**示例:**
```js
@@ -1764,6 +1860,14 @@ delete(predicates: RdbPredicates, callback: AsyncCallback<number>):void
| predicates | [RdbPredicates](#rdbpredicates) | 是 | RdbPredicates的实例对象指定的删除条件。 |
| callback | AsyncCallback<number> | 是 | 指定callback回调函数。返回受影响的行数。 |
+**错误码:**
+
+以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。
+
+| **错误码ID** | **错误信息** |
+| ------------ | ----------------------- |
+| 14800047 | The WAL file size exceeds the default limit.|
+
**示例:**
```js
@@ -1798,6 +1902,14 @@ delete(predicates: RdbPredicates):Promise<number>
| --------------------- | ------------------------------- |
| Promise<number> | Promise对象。返回受影响的行数。 |
+**错误码:**
+
+以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。
+
+| **错误码ID** | **错误信息** |
+| ------------ | ----------------------- |
+| 14800047 | The WAL file size exceeds the default limit.|
+
**示例:**
```js
@@ -1829,6 +1941,14 @@ delete(table: string, predicates: dataSharePredicates.DataSharePredicates, callb
| predicates | [dataSharePredicates.DataSharePredicates](js-apis-data-dataSharePredicates.md#datasharepredicates) | 是 | DataSharePredicates的实例对象指定的删除条件。 |
| callback | AsyncCallback<number> | 是 | 指定callback回调函数。返回受影响的行数。 |
+**错误码:**
+
+以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。
+
+| **错误码ID** | **错误信息** |
+| ------------ | ----------------------- |
+| 14800047 | The WAL file size exceeds the default limit.|
+
**示例:**
```js
@@ -1867,6 +1987,14 @@ delete(table: string, predicates: dataSharePredicates.DataSharePredicates):Promi
| --------------------- | ------------------------------- |
| Promise<number> | Promise对象。返回受影响的行数。 |
+**错误码:**
+
+以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。
+
+| **错误码ID** | **错误信息** |
+| ------------ | ----------------------- |
+| 14800047 | The WAL file size exceeds the default limit.|
+
**示例:**
```js
@@ -2205,6 +2333,14 @@ executeSql(sql: string, bindArgs: Array<ValueType>, callback: AsyncCallbac
| bindArgs | Array<[ValueType](#valuetype)> | 是 | SQL语句中参数的值。 |
| callback | AsyncCallback<void> | 是 | 指定callback回调函数。 |
+**错误码:**
+
+以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。
+
+| **错误码ID** | **错误信息** |
+| ------------ | ----------------------- |
+| 14800047 | The WAL file size exceeds the default limit.|
+
**示例:**
```js
@@ -2239,6 +2375,14 @@ executeSql(sql: string, bindArgs?: Array<ValueType>):Promise<void>
| ------------------- | ------------------------- |
| Promise<void> | 无返回结果的Promise对象。 |
+**错误码:**
+
+以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。
+
+| **错误码ID** | **错误信息** |
+| ------------ | ----------------------- |
+| 14800047 | The WAL file size exceeds the default limit.|
+
**示例:**
```js
@@ -2259,6 +2403,14 @@ beginTransaction():void
**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core
+**错误码:**
+
+以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。
+
+| **错误码ID** | **错误信息** |
+| ------------ | ----------------------- |
+| 14800047 | The WAL file size exceeds the default limit.|
+
**示例:**
```js
diff --git a/zh-cn/application-dev/reference/apis/js-apis-device-manager.md b/zh-cn/application-dev/reference/apis/js-apis-device-manager.md
index 3c0701bd503245342420ea3cefb2f849d8b87ab6..d7a67f5c99718f310d6d5e4126a31880ce03f0be 100644
--- a/zh-cn/application-dev/reference/apis/js-apis-device-manager.md
+++ b/zh-cn/application-dev/reference/apis/js-apis-device-manager.md
@@ -460,6 +460,83 @@ getLocalDeviceInfo(): Promise<DeviceInfo>
});
```
+### getDeviceInfo10+
+
+getDeviceInfo(networkId: string, callback:AsyncCallback<DeviceInfo>): void
+
+通过指定设备的网络标识获取该设备的信息。使用callback异步回调。
+
+**系统能力**:SystemCapability.DistributedHardware.DeviceManager
+
+**参数:**
+
+ | 参数名 | 类型 | 必填 | 说明 |
+ | -------- | ---------------------------------------- | ---- | --------- |
+ | networkId| string | 是 | 设备的网络标识。 |
+ | callback | AsyncCallback<[DeviceInfo](#deviceinfo)> | 是 | 获取指定设备信息。 |
+
+**错误码:**
+
+以下的错误码的详细介绍请参见[设备管理错误码](../errorcodes/errorcode-device-manager.md)
+
+| 错误码ID | 错误信息 |
+| -------- | --------------------------------------------------------------- |
+| 11600101 | Failed to execute the function. |
+
+**示例:**
+
+ ```js
+ try {
+ dmInstance.getDeviceInfo(networkId, (err, data) => {
+ if (err) {
+ console.error("getDeviceInfo errCode:" + err.code + ",errMessage:" + err.message);
+ return;
+ }
+ console.log('get device info: ' + JSON.stringify(data));
+ });
+ } catch (err) {
+ console.error("getDeviceInfo errCode:" + err.code + ",errMessage:" + err.message);
+ }
+ ```
+
+### getDeviceInfo10+
+
+getDeviceInfo(networkId: string): Promise<DeviceInfo>
+
+通过指定设备的网络标识获取该设备的信息。使用Promise异步回调。
+
+**系统能力**:SystemCapability.DistributedHardware.DeviceManager
+
+**参数:**
+
+ | 参数名 | 类型 | 必填 | 说明 |
+ | -------- | ---------------------------------------- | ---- | --------- |
+ | networkId| string | 是 | 设备的网络标识。 |
+
+**返回值:**
+
+ | 类型 | 说明 |
+ | ---------------------------------------- | --------------------- |
+ | Promise<[DeviceInfo](#deviceinfo)> | Promise实例,用于获取异步返回结果。 |
+
+**错误码:**
+
+以下的错误码的详细介绍请参见[设备管理错误码](../errorcodes/errorcode-device-manager.md)
+
+| 错误码ID | 错误信息 |
+| ------- | --------------------------------------------------------------- |
+| 11600101| Failed to execute the function. |
+
+**示例:**
+
+ ```js
+ dmInstance.getDeviceInfo(networkId).then((data) => {
+ console.log('get device info: ' + JSON.stringify(data));
+ }).catch((err) => {
+ console.error("getDeviceInfo errCode:" + err.code + ",errMessage:" + err.message);
+ });
+ ```
+
### startDeviceDiscovery8+
startDeviceDiscovery(subscribeInfo: SubscribeInfo): void
diff --git a/zh-cn/application-dev/reference/apis/js-apis-display.md b/zh-cn/application-dev/reference/apis/js-apis-display.md
index 8b73f026dcdc1864fcde3cc02707a890f3c39a9e..db7ab01ce6978bf0a8d49cf115a07ac5f4cd2f39 100644
--- a/zh-cn/application-dev/reference/apis/js-apis-display.md
+++ b/zh-cn/application-dev/reference/apis/js-apis-display.md
@@ -291,6 +291,63 @@ try {
}
```
+## display.on('privateModeChange')10+
+
+on(type: 'privateModeChange', callback: Callback<boolean>): void
+
+开启屏幕隐私模式变化的监听。当屏幕前台有隐私窗口,则屏幕处于隐私模式,屏幕中的隐私窗口内容无法被截屏或录屏。
+
+**系统接口:** 此接口为系统接口。
+
+**系统能力:** SystemCapability.WindowManager.WindowManager.Core
+
+**参数:**
+
+| 参数名 | 类型 | 必填 | 说明 |
+| -------- |------------------------------------------| ---- | ------------------------------------------------------- |
+| type | string | 是 | 监听事件,固定为'privateModeChange',表示屏幕隐私模式状态发生变化。 |
+| callback | Callback<boolean> | 是 | 回调函数。表示屏幕隐私模式是否改变。true表示屏幕由非隐私窗口模式变为隐私模式,false表示屏幕由隐私模式变为非隐私模式。 |
+
+**示例:**
+
+```js
+let callback = (data) => {
+ console.info('Listening enabled. Data: ' + JSON.stringify(data));
+};
+try {
+ display.on("privateModeChange", callback);
+} catch (exception) {
+ console.error('Failed to register callback. Code: ' + JSON.stringify(exception));
+}
+```
+
+## display.off('privateModeChange')10+
+
+off(type: 'privateModeChange', callback?: Callback<boolean>): void
+
+关闭屏幕隐私模式变化的监听。当屏幕前台有隐私窗口,则屏幕处于隐私模式,屏幕中的隐私窗口内容无法被截屏或录屏。
+
+**系统接口:** 此接口为系统接口。
+
+**系统能力:** SystemCapability.WindowManager.WindowManager.Core
+
+**参数:**
+
+| 参数名 | 类型 | 必填 | 说明 |
+| -------- |------------------------------------------| ---- | ------------------------------------------------------- |
+| type | string | 是 | 监听事件,固定为'privateModeChange',表示屏幕隐私模式状态发生变化。 |
+| callback | Callback<boolean> | 否 | 回调函数。表示屏幕隐私模式是否改变。true表示屏幕由非隐私模式变为隐私模式,false表示屏幕由隐私模式变为非隐私模式。 |
+
+**示例:**
+
+```js
+try {
+ display.off("privateModeChange");
+} catch (exception) {
+ console.error('Failed to unregister callback. Code: ' + JSON.stringify(exception));
+}
+```
+
## display.getDefaultDisplay(deprecated)
getDefaultDisplay(callback: AsyncCallback<Display>): void
diff --git a/zh-cn/application-dev/reference/apis/js-apis-enterprise-bundleManager.md b/zh-cn/application-dev/reference/apis/js-apis-enterprise-bundleManager.md
new file mode 100644
index 0000000000000000000000000000000000000000..66249739bb2d229bb2a855b5cb71e76cc70d9b4e
--- /dev/null
+++ b/zh-cn/application-dev/reference/apis/js-apis-enterprise-bundleManager.md
@@ -0,0 +1,389 @@
+# @ohos.enterprise.bundleManager(包管理)
+
+本模块提供包管理能力,包括添加包安装白名单、获取包安装白名单、移除包安装白名单等。仅企业设备管理员应用才能调用。
+
+> **说明:**
+>
+> 本模块首批接口从API version 10开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
+
+## 导入模块
+
+```js
+import bundleManager from '@ohos.enterprise.bundleManager';
+```
+
+## bundleManager.addAllowedInstallBundles
+
+addAllowedInstallBundles(admin: Want, appIds: Array\, callback: AsyncCallback<void>): void;
+
+添加包安装白名单接口,使用callback异步回调。
+
+**需要权限:** ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY
+
+**系统能力:** SystemCapability.Customization.EnterpriseDeviceManager
+
+**系统API**: 此接口为系统接口。
+
+**参数:**
+
+| 参数 | 类型 | 必填 | 说明 |
+| -------- | ---------------------------------------- | ---- | ------------------------------- |
+| admin | [Want](js-apis-app-ability-want.md) | 是 | 设备管理员应用 |
+| appIds | Array<string> | 是 | 允许安装包的白名单 |
+| callback | AsyncCallback<void> | 是 | 回调函数。当接口调用成功err为null,否则为错误对象。 |
+
+**错误码**:
+
+以下的错误码的详细介绍请参见[企业设备管理错误码](../errorcodes/errorcode-enterpriseDeviceManager.md)
+
+| 错误码ID | 错误信息 |
+| ------- | ---------------------------------------------------------------------------- |
+| 9200003 | the administrator ability component is invalid. |
+| 9200007 | the system ability work abnormally. |
+
+**示例:**
+
+```js
+let wantTemp = {
+ bundleName: "com.example.myapplication",
+ abilityName: "EntryAbility",
+};
+let appIds = {"com.example.myapplication"};
+
+bundleManager.AddAllowedInstallBundles(wantTemp, appIds, (error) => {
+ if (error != null) {
+ console.log("error code:" + error.code + " error message:" + error.message);
+ }
+});
+```
+
+## bundleManager.addAllowedInstallBundles
+
+addAllowedInstallBundles(admin: Want, appIds: Array\, userId: number, callback: AsyncCallback<void>): void;
+
+添加包安装白名单接口,使用callback异步回调。
+
+**需要权限:** ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY
+
+**系统能力:** SystemCapability.Customization.EnterpriseDeviceManager
+
+**系统API**: 此接口为系统接口。
+
+**参数:**
+
+| 参数 | 类型 | 必填 | 说明 |
+| ----- | ----------------------------------- | ---- | ------- |
+| admin | [Want](js-apis-app-ability-want.md) | 是 | 设备管理员应用 |
+| appIds | Array<string> | 是 | 允许安装包的白名单 |
+| userId | number | 是 | 用户ID。默认值:调用方所在用户,取值范围:大于等于0。 |
+| callback | AsyncCallback<void> | 是 | 回调函数。当接口调用成功err为null,否则为错误对象。 |
+
+**错误码**:
+
+以下的错误码的详细介绍请参见[企业设备管理错误码](../errorcodes/errorcode-enterpriseDeviceManager.md)
+
+| 错误码ID | 错误信息 |
+| ------- | ---------------------------------------------------------------------------- |
+| 9200003 | the administrator ability component is invalid. |
+| 9200007 | the system ability work abnormally. |
+
+**示例:**
+
+```js
+let wantTemp = {
+ bundleName: "com.example.myapplication",
+ abilityName: "EntryAbility",
+};
+let appIds = {"com.example.myapplication"};
+
+bundleManager.AddAllowedInstallBundles(wantTemp, appIds, 100, (error) => {
+ if (error != null) {
+ console.log("error code:" + error.code + " error message:" + error.message);
+ }
+});
+```
+
+## bundleManager.addAllowedInstallBundles
+
+addAllowedInstallBundles(admin: Want, appIds: Array\, userId?: number): Promise<void>;
+
+添加包安装白名单接口,使用promise异步回调。
+
+**需要权限:** ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY
+
+**系统能力:** SystemCapability.Customization.EnterpriseDeviceManager
+
+**系统API**: 此接口为系统接口。
+
+**参数:**
+
+| 参数 | 类型 | 必填 | 说明 |
+| ----- | ----------------------------------- | ---- | ------- |
+| admin | [Want](js-apis-app-ability-want.md) | 是 | 设备管理员应用 |
+| appIds | Array<string> | 是 | 允许安装包的白名单 |
+| userId | number | 否 | 用户ID。默认值:调用方所在用户,取值范围:大于等于0。 |
+
+**返回值:**
+
+| 类型 | 说明 |
+| --------------------- | ------------------------- |
+| Promise<void> | 无返回结果的Promise对象。 |
+
+**错误码**:
+
+以下的错误码的详细介绍请参见[企业设备管理错误码](../errorcodes/errorcode-enterpriseDeviceManager.md)
+
+| 错误码ID | 错误信息 |
+| ------- | ---------------------------------------------------------------------------- |
+| 9200003 | the administrator ability component is invalid. |
+| 9200007 | the system ability work abnormally. |
+
+**示例:**
+
+```js
+let wantTemp = {
+ bundleName: "com.example.myapplication",
+ abilityName: "EntryAbility",
+};
+let appIds = {"com.example.myapplication"};
+
+bundleManager.addAllowedInstallBundles(wantTemp, appIds, 100).then(() => {
+ console.log("success");
+}).catch(error => {
+ console.log("error code:" + error.code + " error message:" + error.message);
+});
+```
+
+## bundleManager.removeAllowedInstallBundles
+
+removeAllowedInstallBundles(admin: Want, appIds: Array\, callback: AsyncCallback<void>): void;
+
+移除包安装白名单接口,使用callback异步回调。
+
+**需要权限:** ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY
+
+**系统能力:** SystemCapability.Customization.EnterpriseDeviceManager
+
+**系统API**: 此接口为系统接口。
+
+**参数:**
+
+| 参数 | 类型 | 必填 | 说明 |
+| -------- | ---------------------------------------- | ---- | ------------------------------- |
+| admin | [Want](js-apis-app-ability-want.md) | 是 | 设备管理员应用 |
+| appIds | Array<string> | 是 | 移除允许安装包的白名单 |
+| callback | AsyncCallback<void> | 是 | 回调函数。当接口调用成功err为null,否则为错误对象。 |
+
+**错误码**:
+
+以下的错误码的详细介绍请参见[企业设备管理错误码](../errorcodes/errorcode-enterpriseDeviceManager.md)
+
+| 错误码ID | 错误信息 |
+| ------- | ---------------------------------------------------------------------------- |
+| 9200003 | the administrator ability component is invalid. |
+| 9200007 | the system ability work abnormally. |
+
+**示例:**
+
+```js
+let wantTemp = {
+ bundleName: "com.example.myapplication",
+ abilityName: "EntryAbility",
+};
+let appIds = {"com.example.myapplication"};
+
+bundleManager.removeAllowedInstallBundles(wantTemp, appIds, (error) => {
+ if (error != null) {
+ console.log("error code:" + error.code + " error message:" + error.message);
+ }
+});
+```
+
+## bundleManager.removeAllowedInstallBundles
+
+removeAllowedInstallBundles(admin: Want, appIds: Array\, userId: number, callback: AsyncCallback<void>): void;
+
+移除包安装白名单接口,使用callback异步回调。
+
+**需要权限:** ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY
+
+**系统能力:** SystemCapability.Customization.EnterpriseDeviceManager
+
+**系统API**: 此接口为系统接口。
+
+**参数:**
+
+| 参数 | 类型 | 必填 | 说明 |
+| ----- | ----------------------------------- | ---- | ------- |
+| admin | [Want](js-apis-app-ability-want.md) | 是 | 设备管理员应用 |
+| appIds | Array<string> | 是 | 允许安装包的白名单 |
+| userId | number | 是 | 用户ID。默认值:调用方所在用户,取值范围:大于等于0。 |
+| callback | AsyncCallback<void> | 是 | 回调函数。当接口调用成功err为null,否则为错误对象。 |
+
+**错误码**:
+
+以下的错误码的详细介绍请参见[企业设备管理错误码](../errorcodes/errorcode-enterpriseDeviceManager.md)
+
+| 错误码ID | 错误信息 |
+| ------- | ---------------------------------------------------------------------------- |
+| 9200003 | the administrator ability component is invalid. |
+| 9200007 | the system ability work abnormally. |
+
+**示例:**
+
+```js
+let wantTemp = {
+ bundleName: "com.example.myapplication",
+ abilityName: "EntryAbility",
+};
+let appIds = {"com.example.myapplication"};
+
+bundleManager.removeAllowedInstallBundles(wantTemp, appIds, 100, (error) => {
+ if (error != null) {
+ console.log("error code:" + error.code + " error message:" + error.message);
+ }
+});
+```
+
+## bundleManager.removeAllowedInstallBundles
+
+removeAllowedInstallBundles(admin: Want, appIds: Array\, userId?: number): Promise<void>;
+
+移除包安装白名单接口,使用promise异步回调。
+
+**需要权限:** ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY
+
+**系统能力:** SystemCapability.Customization.EnterpriseDeviceManager
+
+**系统API**: 此接口为系统接口。
+
+**参数:**
+
+| 参数 | 类型 | 必填 | 说明 |
+| ----- | ----------------------------------- | ---- | ------- |
+| admin | [Want](js-apis-app-ability-want.md) | 是 | 设备管理员应用 |
+| appIds | Array\<string> | 是 | 允许安装包的白名单 |
+| userId | number | 否 | 用户ID。默认值:调用方所在用户,取值范围:大于等于0。 |
+
+**返回值:**
+
+| 类型 | 说明 |
+| --------------------- | ------------------------- |
+| Promise<void> | 无返回结果的Promise对象。 |
+
+**错误码**:
+
+以下的错误码的详细介绍请参见[企业设备管理错误码](../errorcodes/errorcode-enterpriseDeviceManager.md)
+
+| 错误码ID | 错误信息 |
+| ------- | ---------------------------------------------------------------------------- |
+| 9200003 | the administrator ability component is invalid. |
+| 9200007 | the system ability work abnormally. |
+
+**示例:**
+
+```js
+let wantTemp = {
+ bundleName: "com.example.myapplication",
+ abilityName: "EntryAbility",
+};
+let appIds = {"com.example.myapplication"};
+
+bundleManager.removeAllowedInstallBundles(wantTemp, appIds, 100).then(() => {
+ console.log("success");
+}).catch(error => {
+ console.log("error code:" + error.code + " error message:" + error.message);
+});
+```
+
+## bundleManager.getAllowedInstallBundles
+
+getAllowedInstallBundles(admin: Want, userId: number, callback: AsyncCallback<Array<string>>): void;
+
+获取包安装白名单接口,使用callback异步回调。
+
+**需要权限:** ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY
+
+**系统能力:** SystemCapability.Customization.EnterpriseDeviceManager
+
+**系统API**: 此接口为系统接口。
+
+**参数:**
+
+| 参数 | 类型 | 必填 | 说明 |
+| -------- | ---------------------------------------- | ---- | ------------------------------- |
+| admin | [Want](js-apis-app-ability-want.md) | 是 | 设备管理员应用 |
+| userId | number | 是 | 用户ID。默认值:调用方所在用户,取值范围:大于等于0。 |
+| callback | AsyncCallback<Array<string>> | 是 | 回调函数。当接口调用成功err为null,否则为错误对象。 |
+
+**错误码**:
+
+以下的错误码的详细介绍请参见[企业设备管理错误码](../errorcodes/errorcode-enterpriseDeviceManager.md)
+
+| 错误码ID | 错误信息 |
+| ------- | ---------------------------------------------------------------------------- |
+| 9200003 | the administrator ability component is invalid. |
+| 9200007 | the system ability work abnormally. |
+
+**示例:**
+
+```js
+let wantTemp = {
+ bundleName: "com.example.myapplication",
+ abilityName: "EntryAbility",
+};
+
+bundleManager.getAllowedInstallBundles(wantTemp, 100, (error) => {
+ if (error != null) {
+ console.log("error code:" + error.code + " error message:" + error.message);
+ }
+});
+```
+
+## bundleManager.getAllowedInstallBundles
+
+getAllowedInstallBundles(admin: Want, userId?: number): Promise<Array<string>>;
+
+获取包安装白名单接口,使用promise异步回调。
+
+**需要权限:** ohos.permission.ENTERPRISE_SET_BUNDLE_INSTALL_POLICY
+
+**系统能力:** SystemCapability.Customization.EnterpriseDeviceManager
+
+**系统API**: 此接口为系统接口。
+
+**参数:**
+
+| 参数 | 类型 | 必填 | 说明 |
+| ----- | ----------------------------------- | ---- | ------- |
+| admin | [Want](js-apis-app-ability-want.md) | 是 | 设备管理员应用 |
+| userId | number | 否 | 用户ID。默认值:调用方所在用户,取值范围:大于等于0。 |
+
+**返回值:**
+
+| 类型 | 说明 |
+| --------------------- | ------------------------- |
+| Promise<void> | 返回结果为String类型数组的Promise对象。 |
+
+**错误码**:
+
+以下的错误码的详细介绍请参见[企业设备管理错误码](../errorcodes/errorcode-enterpriseDeviceManager.md)
+
+| 错误码ID | 错误信息 |
+| ------- | ---------------------------------------------------------------------------- |
+| 9200003 | the administrator ability component is invalid. |
+| 9200007 | the system ability work abnormally. |
+
+**示例:**
+
+```js
+let wantTemp = {
+ bundleName: "com.example.myapplication",
+ abilityName: "EntryAbility",
+};
+bundleManager.getAllowedInstallBundles(wantTemp, 100).then(() => {
+ console.log("success");
+}).catch(error => {
+ console.log("error code:" + error.code + " error message:" + error.message);
+});
+```
diff --git a/zh-cn/application-dev/reference/apis/js-apis-file-cloudsyncmanager.md b/zh-cn/application-dev/reference/apis/js-apis-file-cloudsyncmanager.md
new file mode 100644
index 0000000000000000000000000000000000000000..58d96ecbea75a0a5a4840405dfebe1539000481d
--- /dev/null
+++ b/zh-cn/application-dev/reference/apis/js-apis-file-cloudsyncmanager.md
@@ -0,0 +1,141 @@
+# @ohos.file.cloudSyncManager (端云同步管理能力)
+
+该模块向云空间提供通知或更改端云服务状态的能力。
+
+> **说明:**
+> 本模块首批接口从API version 10开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
+> 本模块接口为系统接口,三方应用不支持调用。
+> 本模块支持对错误码进行处理,错误码及其适配方式[参考文档](../errorcodes/errorcode-filemanagement.md#错误码适配指导)。
+
+## 导入模块
+
+```js
+import cloudSyncManager from '@ohos.file.cloudSyncManager';
+```
+
+## cloudSyncManager.changeAppCloudSwitch
+
+changeAppCloudSwitch(accountId: string, bundleName: string, status: boolean): Promise<void>;
+
+异步方法修改应用的端云文件同步开关,以Promise形式返回结果。
+
+**系统能力**:SystemCapability.FileManagement.DistributedFileService.CloudSyncManager
+
+**参数:**
+
+| 参数名 | 类型 | 必填 | 说明 |
+| ---------- | ------ | ---- | ---- |
+| accountId | string | 是 | 帐号|
+| bundleName | string | 是 | 应用包名|
+| status | boolean | 是 | 修改的应用云同步开关状态,true为打开,false为关闭|
+
+**返回值:**
+
+| 类型 | 说明 |
+| --------------------- | ---------------- |
+| Promise<void> | 使用Promise形式返回修改应用的端云文件同步开关的结果 |
+
+**示例:**
+
+ ```js
+ let accountId = "testAccount";
+ let bundleName = "com.example.bundle";
+ cloudSyncManager.changeAppCloudSwitch(accountId, bundleName, true).then(function() {
+ console.info("changeAppCloudSwitch successfully");
+ }).catch(function(err) {
+ console.info("changeAppCloudSwitch failed with error message: " + err.message + ", error code: " + err.code);
+ });
+ ```
+
+## cloudSyncManager.changeAppCloudSwitch
+
+changeAppCloudSwitch(accountId: string, bundleName: string, status: boolean, callback: AsyncCallback<void>): void;
+
+异步方法修改应用的端云文件同步开关,以callback形式返回结果。
+
+**系统能力**:SystemCapability.FileManagement.DistributedFileService.CloudSyncManager
+
+**参数:**
+
+| 参数名 | 类型 | 必填 | 说明 |
+| ---------- | ------ | ---- | ---- |
+| accountId | string | 是 | 帐号|
+| bundleName | string | 是 | 应用包名|
+| status | boolean | 是 | 修改的应用云同步开关状态,true为打开,false为关闭|
+| callback | AsyncCallback<void> | 是 | 异步修改应用的端云文件同步开关之后的回调 |
+
+**示例:**
+
+ ```js
+ let accountId = "testAccount";
+ let bundleName = "com.example.bundle";
+ cloudSyncManager.changeAppCloudSwitch(accountId, bundleName, true, (err) => {
+ if (err) {
+ console.info("changeAppCloudSwitch failed with error message: " + err.message + ", error code: " + err.code);
+ } else {
+ console.info("changeAppCloudSwitch successfully");
+ }
+ });
+ ```
+## cloudSyncManager.notifyDataChange
+
+notifyDataChange(accountId: string, bundleName: string): Promise<void>;
+
+异步方法通知端云服务应用的云数据变更,以Promise形式返回结果。
+
+**系统能力**:SystemCapability.FileManagement.DistributedFileService.CloudSyncManager
+
+**参数:**
+
+| 参数名 | 类型 | 必填 | 说明 |
+| ---------- | ------ | ---- | ---- |
+| accountId | string | 是 | 帐号|
+| bundleName | string | 是 | 应用包名|
+
+**返回值:**
+
+| 类型 | 说明 |
+| --------------------- | ---------------- |
+| Promise<void> | 使用Promise形式返回通知端云服务应用的云数据变更的结果 |
+
+**示例:**
+
+ ```js
+ let accountId = "testAccount";
+ let bundleName = "com.example.bundle";
+ cloudSyncManager.notifyDataChange(accountId, bundleName).then(function() {
+ console.info("notifyDataChange successfully");
+ }).catch(function(err) {
+ console.info("notifyDataChange failed with error message: " + err.message + ", error code: " + err.code);
+ });
+ ```
+
+## cloudSyncManager.notifyDataChange
+
+notifyDataChange(accountId: string, bundleName: string, callback: AsyncCallback<void>): void;
+
+异步方法通知端云服务应用的云数据变更,以callback形式返回结果。
+
+**系统能力**:SystemCapability.FileManagement.DistributedFileService.CloudSyncManager
+
+**参数:**
+
+| 参数名 | 类型 | 必填 | 说明 |
+| ---------- | ------ | ---- | ---- |
+| accountId | string | 是 | 帐号|
+| bundleName | string | 是 | 应用包名|
+| callback | AsyncCallback<void> | 是 | 异步通知端云服务应用的云数据变更之后的回调 |
+
+**示例:**
+
+ ```js
+ let accountId = "testAccount";
+ let bundleName = "com.example.bundle";
+ cloudSyncManager.notifyDataChange(accountId, bundleName, (err) => {
+ if (err) {
+ console.info("notifyDataChange failed with error message: " + err.message + ", error code: " + err.code);
+ } else {
+ console.info("notifyDataChange successfully");
+ }
+ });
+ ```
\ No newline at end of file
diff --git a/zh-cn/application-dev/reference/apis/js-apis-image.md b/zh-cn/application-dev/reference/apis/js-apis-image.md
index 87fac2670885d45b4bdb29a743e0633f429a04c4..e2db66ac13ef747d502a405acc2f1ae45ebd5b93 100644
--- a/zh-cn/application-dev/reference/apis/js-apis-image.md
+++ b/zh-cn/application-dev/reference/apis/js-apis-image.md
@@ -949,7 +949,7 @@ createImageSource(uri: string): ImageSource
```js
//Stage模型
const context = getContext(this);
-const path = context.getCacheDir() + "/test.jpg";
+const path = context.cacheDir() + "/test.jpg";
const imageSourceApi = image.createImageSource(path);
```
diff --git a/zh-cn/application-dev/reference/apis/js-apis-inner-ability-want.md b/zh-cn/application-dev/reference/apis/js-apis-inner-ability-want.md
index e37ad10f026c01739eb8f354723a3f917ded9326..195a244212a7519294558ab9c7ab1821ec9e81c5 100644
--- a/zh-cn/application-dev/reference/apis/js-apis-inner-ability-want.md
+++ b/zh-cn/application-dev/reference/apis/js-apis-inner-ability-want.md
@@ -41,12 +41,12 @@ Want是对象间信息传递的载体, 可以用于应用组件间的信息传
- 传递FD(文件描述符)数据(在UIAbility对象中调用,其中示例中的context为UIAbility的上下文对象)
```ts
- import fileio from '@ohos.fileio';
+ import fs from '@ohos.file.fs';
// ...
let fd;
try {
- fd = fileio.openSync('/data/storage/el2/base/haps/pic.png');
+ fd = fs.openSync('/data/storage/el2/base/haps/pic.png').fd;
} catch(e) {
console.error('openSync fail: ${JSON.stringify(e)}');
}
diff --git a/zh-cn/application-dev/reference/apis/js-apis-inner-application-applicationContext.md b/zh-cn/application-dev/reference/apis/js-apis-inner-application-applicationContext.md
index 54740765f23e2b2e45f45af87ddc781604604b6b..064e036e1a0e3a95440c202d04e1d5c98797d329 100644
--- a/zh-cn/application-dev/reference/apis/js-apis-inner-application-applicationContext.md
+++ b/zh-cn/application-dev/reference/apis/js-apis-inner-application-applicationContext.md
@@ -88,7 +88,7 @@ export default class EntryAbility extends UIAbility {
}
```
-## ApplicationContext.off(type: 'abilityLifecycle', callbackId: number, callback: AsyncCallback)
+## ApplicationContext.off(type: 'abilityLifecycle', callbackId: number, callback: AsyncCallback\)
off(type: 'abilityLifecycle', callbackId: **number**, callback: AsyncCallback<**void**>): **void**;
@@ -206,7 +206,7 @@ export default class EntryAbility extends UIAbility {
}
```
-## ApplicationContext.off(type: 'environment', callbackId: number, callback: AsyncCallback)
+## ApplicationContext.off(type: 'environment', callbackId: number, callback: AsyncCallback\)
off(type: 'environment', callbackId: **number**, callback: AsyncCallback<**void**>): **void**;
diff --git a/zh-cn/application-dev/reference/apis/js-apis-inner-application-serviceExtensionContext.md b/zh-cn/application-dev/reference/apis/js-apis-inner-application-serviceExtensionContext.md
index 85b44d8120beb7dbb836ed74b9d3c45dc8fdeac8..9b835fee85ba01b9ccfd41b2bc65ccca524763f1 100644
--- a/zh-cn/application-dev/reference/apis/js-apis-inner-application-serviceExtensionContext.md
+++ b/zh-cn/application-dev/reference/apis/js-apis-inner-application-serviceExtensionContext.md
@@ -56,7 +56,7 @@ startAbility(want: Want, callback: AsyncCallback<void>): void;
| 16000009 | Can not start ability in wukong mode. |
| 16000010 | Can not operation with continue flag. |
| 16000011 | Context does not exist. |
-| 16000012 | The previous ability is starting, wait start later. |
+| 16000017 | The previous ability is starting, wait start later. |
| 16000051 | Network error. The network is abnormal. |
| 16000052 | Free install not support. The application does not support freeinstall |
| 16000053 | Not top ability. The application is not top ability. |
@@ -128,7 +128,7 @@ startAbility(want: Want, options?: StartOptions): Promise\;
| 16000009 | Can not start ability in wukong mode. |
| 16000010 | Can not operation with continue flag. |
| 16000011 | Context does not exist. |
-| 16000012 | The previous ability is starting, wait start later. |
+| 16000017 | The previous ability is starting, wait start later. |
| 16000051 | Network error. The network is abnormal. |
| 16000052 | Free install not support. The application does not support freeinstall |
| 16000053 | Not top ability. The application is not top ability. |
@@ -198,7 +198,7 @@ startAbility(want: Want, options: StartOptions, callback: AsyncCallback<void&
| 16000009 | Can not start ability in wukong mode. |
| 16000010 | Can not operation with continue flag. |
| 16000011 | Context does not exist. |
-| 16000012 | The previous ability is starting, wait start later. |
+| 16000017 | The previous ability is starting, wait start later. |
| 16000051 | Network error. The network is abnormal. |
| 16000052 | Free install not support. The application does not support freeinstall |
| 16000053 | Not top ability. The application is not top ability. |
@@ -275,7 +275,7 @@ startAbilityWithAccount(want: Want, accountId: number, callback: AsyncCallback\<
| 16000009 | Can not start ability in wukong mode. |
| 16000010 | Can not operation with continue flag. |
| 16000011 | Context does not exist. |
-| 16000012 | The previous ability is starting, wait start later. |
+| 16000017 | The previous ability is starting, wait start later. |
| 16000051 | Network error. The network is abnormal. |
| 16000052 | Free install not support. The application does not support freeinstall |
| 16000053 | Not top ability. The application is not top ability. |
@@ -351,7 +351,7 @@ startAbilityWithAccount(want: Want, accountId: number, options: StartOptions, ca
| 16000009 | Can not start ability in wukong mode. |
| 16000010 | Can not operation with continue flag. |
| 16000011 | Context does not exist. |
-| 16000012 | The previous ability is starting, wait start later. |
+| 16000017 | The previous ability is starting, wait start later. |
| 16000051 | Network error. The network is abnormal. |
| 16000052 | Free install not support. The application does not support freeinstall |
| 16000053 | Not top ability. The application is not top ability. |
@@ -436,7 +436,7 @@ startAbilityWithAccount(want: Want, accountId: number, options?: StartOptions):
| 16000009 | Can not start ability in wukong mode. |
| 16000010 | Can not operation with continue flag. |
| 16000011 | Context does not exist. |
-| 16000012 | The previous ability is starting, wait start later. |
+| 16000017 | The previous ability is starting, wait start later. |
| 16000051 | Network error. The network is abnormal. |
| 16000052 | Free install not support. The application does not support freeinstall |
| 16000053 | Not top ability. The application is not top ability. |
@@ -1330,7 +1330,7 @@ startAbilityByCall(want: Want): Promise<Caller>;
| 16000007 | Service busyness. There are concurrent tasks, waiting for retry. |
| 16000008 | Crowdtest App Expiration. |
| 16000009 | Can not start ability in wukong mode. |
-| 16000012 | The previous ability is starting, wait start later. |
+| 16000017 | The previous ability is starting, wait start later. |
| 16000050 | Internal Error. |
**示例:**
diff --git a/zh-cn/application-dev/reference/apis/js-apis-inner-application-uiAbilityContext.md b/zh-cn/application-dev/reference/apis/js-apis-inner-application-uiAbilityContext.md
index 1cf39b1e8171f8c419208e4b904bb18be6a17f18..7d2b3c2fd04e462648c22379121bb81726d246a9 100644
--- a/zh-cn/application-dev/reference/apis/js-apis-inner-application-uiAbilityContext.md
+++ b/zh-cn/application-dev/reference/apis/js-apis-inner-application-uiAbilityContext.md
@@ -54,7 +54,7 @@ startAbility(want: Want, callback: AsyncCallback<void>): void;
| 16000009 | An ability cannot be started or stopped in Wukong mode. |
| 16000010 | The call with the continuation flag is forbidden. |
| 16000011 | The context does not exist. |
-| 16000012 | The previous ability is starting, wait start later. |
+| 16000017 | The previous ability is starting, wait start later. |
| 16000050 | Internal error. |
| 16000053 | The ability is not on the top of the UI. |
| 16000055 | Installation-free timed out. |
@@ -118,7 +118,7 @@ startAbility(want: Want, options: StartOptions, callback: AsyncCallback<void&
| 16000009 | An ability cannot be started or stopped in Wukong mode. |
| 16000010 | The call with the continuation flag is forbidden. |
| 16000011 | The context does not exist. |
-| 16000012 | The previous ability is starting, wait start later. |
+| 16000017 | The previous ability is starting, wait start later. |
| 16000050 | Internal error. |
| 16000053 | The ability is not on the top of the UI. |
| 16000055 | Installation-free timed out. |
@@ -191,7 +191,7 @@ startAbility(want: Want, options?: StartOptions): Promise<void>;
| 16000009 | An ability cannot be started or stopped in Wukong mode. |
| 16000010 | The call with the continuation flag is forbidden. |
| 16000011 | The context does not exist. |
-| 16000012 | The previous ability is starting, wait start later. |
+| 16000017 | The previous ability is starting, wait start later. |
| 16000050 | Internal error. |
| 16000053 | The ability is not on the top of the UI. |
| 16000055 | Installation-free timed out. |
@@ -260,7 +260,7 @@ startAbilityForResult(want: Want, callback: AsyncCallback<AbilityResult>):
| 16000009 | An ability cannot be started or stopped in Wukong mode. |
| 16000010 | The call with the continuation flag is forbidden. |
| 16000011 | The context does not exist. |
-| 16000012 | The previous ability is starting, wait start later. |
+| 16000017 | The previous ability is starting, wait start later. |
| 16000050 | Internal error. |
| 16000053 | The ability is not on the top of the UI. |
| 16000055 | Installation-free timed out. |
@@ -328,7 +328,7 @@ startAbilityForResult(want: Want, options: StartOptions, callback: AsyncCallback
| 16000009 | An ability cannot be started or stopped in Wukong mode. |
| 16000010 | The call with the continuation flag is forbidden. |
| 16000011 | The context does not exist. |
-| 16000012 | The previous ability is starting, wait start later. |
+| 16000017 | The previous ability is starting, wait start later. |
| 16000050 | Internal error. |
| 16000053 | The ability is not on the top of the UI. |
| 16000055 | Installation-free timed out. |
@@ -406,7 +406,7 @@ startAbilityForResult(want: Want, options?: StartOptions): Promise<AbilityRes
| 16000009 | An ability cannot be started or stopped in Wukong mode. |
| 16000010 | The call with the continuation flag is forbidden. |
| 16000011 | The context does not exist. |
-| 16000012 | The previous ability is starting, wait start later. |
+| 16000017 | The previous ability is starting, wait start later. |
| 16000050 | Internal error. |
| 16000053 | The ability is not on the top of the UI. |
| 16000055 | Installation-free timed out. |
@@ -477,7 +477,7 @@ startAbilityForResultWithAccount(want: Want, accountId: number, callback: AsyncC
| 16000009 | An ability cannot be started or stopped in Wukong mode. |
| 16000010 | The call with the continuation flag is forbidden. |
| 16000011 | The context does not exist. |
-| 16000012 | The previous ability is starting, wait start later. |
+| 16000017 | The previous ability is starting, wait start later. |
| 16000050 | Internal error. |
| 16000053 | The ability is not on the top of the UI. |
| 16000055 | Installation-free timed out. |
@@ -549,7 +549,7 @@ startAbilityForResultWithAccount(want: Want, accountId: number, options: StartOp
| 16000009 | An ability cannot be started or stopped in Wukong mode. |
| 16000010 | The call with the continuation flag is forbidden. |
| 16000011 | The context does not exist. |
-| 16000012 | The previous ability is starting, wait start later. |
+| 16000017 | The previous ability is starting, wait start later. |
| 16000050 | Internal error. |
| 16000053 | The ability is not on the top of the UI. |
| 16000055 | Installation-free timed out. |
@@ -629,7 +629,7 @@ startAbilityForResultWithAccount(want: Want, accountId: number, options?: StartO
| 16000009 | An ability cannot be started or stopped in Wukong mode. |
| 16000010 | The call with the continuation flag is forbidden. |
| 16000011 | The context does not exist. |
-| 16000012 | The previous ability is starting, wait start later. |
+| 16000017 | The previous ability is starting, wait start later. |
| 16000050 | Internal error. |
| 16000053 | The ability is not on the top of the UI. |
| 16000055 | Installation-free timed out. |
@@ -1584,7 +1584,7 @@ startAbilityByCall(want: Want): Promise<Caller>;
| 16000009 | An ability cannot be started or stopped in Wukong mode. |
| 16000010 | The call with the continuation flag is forbidden. |
| 16000011 | The context does not exist. |
-| 16000012 | The previous ability is starting, wait start later. |
+| 16000017 | The previous ability is starting, wait start later. |
| 16000050 | Internal error. |
| 16000053 | The ability is not on the top of the UI. |
| 16000055 | Installation-free timed out. |
@@ -1691,7 +1691,7 @@ startAbilityWithAccount(want: Want, accountId: number, callback: AsyncCallback\<
| 16000009 | An ability cannot be started or stopped in Wukong mode. |
| 16000010 | The call with the continuation flag is forbidden. |
| 16000011 | The context does not exist. |
-| 16000012 | The previous ability is starting, wait start later. |
+| 16000017 | The previous ability is starting, wait start later. |
| 16000050 | Internal error. |
| 16000053 | The ability is not on the top of the UI. |
| 16000055 | Installation-free timed out. |
@@ -1763,7 +1763,7 @@ startAbilityWithAccount(want: Want, accountId: number, options: StartOptions, ca
| 16000009 | An ability cannot be started or stopped in Wukong mode. |
| 16000010 | The call with the continuation flag is forbidden. |
| 16000011 | The context does not exist. |
-| 16000012 | The previous ability is starting, wait start later. |
+| 16000017 | The previous ability is starting, wait start later. |
| 16000050 | Internal error. |
| 16000053 | The ability is not on the top of the UI. |
| 16000055 | Installation-free timed out. |
@@ -1837,7 +1837,7 @@ startAbilityWithAccount(want: Want, accountId: number, options?: StartOptions):
| 16000009 | An ability cannot be started or stopped in Wukong mode. |
| 16000010 | The call with the continuation flag is forbidden. |
| 16000011 | The context does not exist. |
-| 16000012 | The previous ability is starting, wait start later. |
+| 16000017 | The previous ability is starting, wait start later. |
| 16000050 | Internal error. |
| 16000053 | The ability is not on the top of the UI. |
| 16000055 | Installation-free timed out. |
diff --git a/zh-cn/application-dev/reference/apis/js-apis-screen-lock.md b/zh-cn/application-dev/reference/apis/js-apis-screen-lock.md
index 6782838ee05b97cda45cfe5066a4b43259adb1e4..32e95a0cdcac8699ef3f7f588cadaf88c9188e15 100644
--- a/zh-cn/application-dev/reference/apis/js-apis-screen-lock.md
+++ b/zh-cn/application-dev/reference/apis/js-apis-screen-lock.md
@@ -43,7 +43,7 @@ import screenlock from '@ohos.screenLock';
**系统能力:** SystemCapability.MiscServices.ScreenLock
-**系统接口**:此接口为系统接口。
+**系统接口**:此接口为系统接口
| 名称 | 类型 | 必填 | 说明 |
| --------- | ------ | ---- | ------------- |
@@ -58,7 +58,7 @@ isLocked(): boolean
**系统能力:** SystemCapability.MiscServices.ScreenLock
-**系统接口**:此接口为系统接口。
+**系统接口**:此接口为系统接口
**返回值:**
@@ -80,7 +80,7 @@ unlock(callback: AsyncCallback<boolean>): void
**系统能力:** SystemCapability.MiscServices.ScreenLock
-**系统接口**:此接口为系统接口。
+**系统接口**:此接口为系统接口
**参数:**
@@ -116,7 +116,7 @@ unlock(): Promise<boolean>
**系统能力:** SystemCapability.MiscServices.ScreenLock
-**系统接口**:此接口为系统接口。
+**系统接口**:此接口为系统接口
**返回值:**
@@ -150,7 +150,9 @@ lock(callback: AsyncCallback<boolean>): void
**系统能力:** SystemCapability.MiscServices.ScreenLock
-**系统接口**:此接口为系统接口。
+**需要权限:** ohos.permission.ACCESS_SCREEN_LOCK_INNER
+
+**系统接口**:此接口为系统接口
**参数:**
@@ -186,7 +188,9 @@ lock(): Promise<boolean>
**系统能力:** SystemCapability.MiscServices.ScreenLock
-**系统接口**:此接口为系统接口。
+**需要权限:** ohos.permission.ACCESS_SCREEN_LOCK_INNER
+
+**系统接口**:此接口为系统接口
**返回值:**
@@ -220,7 +224,9 @@ onSystemEvent(callback: Callback<SystemEvent>): boolean
**系统能力:** SystemCapability.MiscServices.ScreenLock
-**系统接口**:此接口为系统接口。
+**需要权限:** ohos.permission.ACCESS_SCREEN_LOCK_INNER
+
+**系统接口**:此接口为系统接口
**参数:**
@@ -262,7 +268,9 @@ sendScreenLockEvent(event: String, parameter: number, callback: AsyncCallback<
**系统能力:** SystemCapability.MiscServices.ScreenLock
-**系统接口**:此接口为系统接口。
+**需要权限:** ohos.permission.ACCESS_SCREEN_LOCK_INNER
+
+**系统接口**:此接口为系统接口
**参数:**
@@ -300,7 +308,9 @@ sendScreenLockEvent(event: String, parameter: number): Promise<boolean>
**系统能力:** SystemCapability.MiscServices.ScreenLock
-**系统接口**:此接口为系统接口。
+**需要权限:** ohos.permission.ACCESS_SCREEN_LOCK_INNER
+
+**系统接口**:此接口为系统接口
**参数:**
diff --git a/zh-cn/application-dev/reference/apis/test.txt b/zh-cn/application-dev/reference/apis/test.txt
new file mode 100644
index 0000000000000000000000000000000000000000..b464861d9f38abbd9893395100b807e99a0aa873
--- /dev/null
+++ b/zh-cn/application-dev/reference/apis/test.txt
@@ -0,0 +1 @@
+e
\ No newline at end of file
diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-blank.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-blank.md
index 16bb9d5c487dc9b47ef9302ce1a3ad9d8942f85c..891e3964deb2a69acc23c0b6811da9bb2c3dbe16 100644
--- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-blank.md
+++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-blank.md
@@ -22,7 +22,7 @@ Blank(min?: number | string)
| 参数名 | 参数类型 | 必填 | 参数描述 |
| -------- | -------- | -------- | -------- |
-| min | number \| string | 否 | 空白填充组件在容器主轴上的最小大小。
默认值:0 |
+| min | number \| string | 否 | 空白填充组件在容器主轴上的最小大小。
默认值:0
**说明:**
不支持设置百分比。负值使用默认值。当最小值大于容器可用空间时,使用最小值作为自身大小并超出容器。 |
## 属性
@@ -30,10 +30,14 @@ Blank(min?: number | string)
| 名称 | 参数类型 | 描述 |
| -------- | -------- | -------- |
-| color | [ResourceColor](ts-types.md#resourcecolor) | 设置空白填充的填充颜色。
从API version 9开始,该接口支持在ArkTS卡片中使用。 |
+| color | [ResourceColor](ts-types.md#resourcecolor) | 设置空白填充的填充颜色。
默认值:Color.Transparent
从API version 9开始,该接口支持在ArkTS卡片中使用。 |
+## 事件
+
+支持[通用事件](ts-universal-events-click.md)。
## 示例
+
### 示例1
Blank组件在横竖屏占满空余空间效果。
```ts
diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-divider.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-divider.md
index edac89e88e2d77fdc39d7a838df4fd666fce36d7..7da2322a170b7cb5d93c45316cfe5bff3fffb22c 100644
--- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-divider.md
+++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-divider.md
@@ -25,8 +25,8 @@ Divider()
| 名称 | 参数类型 | 描述 |
| ----------- | ---------- | ------------------ |
| vertical | boolean | 使用水平分割线还是垂直分割线。false:水平分割线;true:垂直分割线。
默认值:false
从API version 9开始,该接口支持在ArkTS卡片中使用。 |
-| color | [ResourceColor](ts-types.md#resourcecolor) | 分割线颜色。
从API version 9开始,该接口支持在ArkTS卡片中使用。 |
-| strokeWidth | number \| string | 分割线宽度。
默认值:1
从API version 9开始,该接口支持在ArkTS卡片中使用。
**说明:**
分割线的宽度不支持百分比设置。 |
+| color | [ResourceColor](ts-types.md#resourcecolor) | 分割线颜色。
默认值:'\#33182431'
从API version 9开始,该接口支持在ArkTS卡片中使用。 |
+| strokeWidth | number \| string | 分割线宽度。
默认值:1
单位:vp
从API version 9开始,该接口支持在ArkTS卡片中使用。
**说明:**
分割线的宽度不支持百分比设置。优先级低于[通用属性height](ts-universal-attributes-size.md),超过通用属性设置大小时,按照通用属性进行裁切。 |
| lineCap | [LineCapStyle](ts-appendix-enums.md#linecapstyle) | 分割线的端点样式。
默认值:LineCapStyle.Butt
从API version 9开始,该接口支持在ArkTS卡片中使用。 |
diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-navdestination.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-navdestination.md
index 49669a8f1be61875c2538ee030347e2edb559ea4..fbf7ae3f0aa68377a1b690e9daf8365b14bb469c 100644
--- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-navdestination.md
+++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-navdestination.md
@@ -9,7 +9,10 @@
## 子组件
-可以包含子组件。
+> **说明:**
+>
+> - 子组件类型:系统组件和自定义组件,支持渲染控制类型([if/else](../../quick-start/arkts-rendering-control.md#条件渲染)、[ForEach](../../quick-start/arkts-rendering-control.md#循环渲染)和[LazyForEach](../../quick-start/arkts-rendering-control.md#数据懒加载))。
+> - 子组件个数:多个。
## 接口
@@ -21,7 +24,11 @@ NavDestination()
仅支持[backgroundColor](ts-universal-attributes-background.md)通用属性。
-| 名称 | 参数类型 | 描述 |
-| -------------- | ---------------------------------------- | ---------------------------------------- |
-| title | string \| [CustomBuilder](ts-types.md#custombuilder8) \| [NavigationCommonTitle](ts-basic-components-navigation.md#navigationcommontitle类型说明) \| [NavigationCustomTitle](ts-basic-components-navigation.md##navigationcustomtitle类型说明) | 页面标题。 |
-| hideTitleBar | boolean | 是否显示标题栏。
默认值:false
true: 隐藏标题栏。
false: 显示标题栏。 |
\ No newline at end of file
+| 名称 | 参数类型 | 描述 |
+| ------------ | ------------------------------------------------------------ | ------------------------------------------------------------ |
+| title | string \| [CustomBuilder](ts-types.md#custombuilder8) \| [NavigationCommonTitle](ts-basic-components-navigation.md#navigationcommontitle类型说明) \| [NavigationCustomTitle](ts-basic-components-navigation.md##navigationcustomtitle类型说明) | 页面标题。
**说明:**
使用NavigationCustomTitle类型设置height高度时,titleMode属性不会生效。
字符串超长时,如果不设置副标题,先缩小再换行2行后以...截断。如果设置副标题,先缩小后以...截断。 |
+| hideTitleBar | boolean | 是否显示标题栏。
默认值:false
true: 隐藏标题栏。
false: 显示标题栏。 |
+
+## 事件
+
+支持[通用事件](ts-universal-events-click.md)。
\ No newline at end of file
diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-navigation.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-navigation.md
index 32be817dcbc2a1548167670cdf5310da341f2a8f..291a5286577e8cb34b7be7a3f0255bbf7adcf40e 100644
--- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-navigation.md
+++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-navigation.md
@@ -23,17 +23,17 @@ Navigation()
| 名称 | 参数类型 | 描述 |
| -------------- | ---------------------------------------- | ---------------------------------------- |
-| title | [ResourceStr](ts-types.md#resourcestr)10+ \| [CustomBuilder](ts-types.md#custombuilder8)8+ \| [NavigationCommonTitle](#navigationcommontitle类型说明)9+ \| [NavigationCustomTitle](#navigationcustomtitle类型说明)9+ | 页面标题。 |
-| subTitledeprecated | string | 页面副标题。从API Version 9开始废弃,建议使用title代替。 |
-| menus | Array<[NavigationMenuItem](#navigationmenuitem类型说明)> \| [CustomBuilder](ts-types.md#custombuilder8)8+ | 页面右上角菜单。使用Array<[NavigationMenuItem](#navigationmenuitem类型说明)> 写法时,竖屏最多支持显示3个图标,横屏最多支持显示5个图标,多余的图标会被放入自动生成的更多图标。 |
+| title | [ResourceStr](ts-types.md#resourcestr)10+ \| [CustomBuilder](ts-types.md#custombuilder8)8+ \| [NavigationCommonTitle](#navigationcommontitle类型说明)9+ \| [NavigationCustomTitle](#navigationcustomtitle类型说明)9+ | 页面标题。
**说明:**
使用NavigationCustomTitle类型设置height高度时,titleMode属性不会生效。
字符串超长时,如果不设置副标题,先缩小再换行(2行)最后...截断。如果设置副标题,先缩小最后...截断。 |
+| subTitledeprecated | string | 页面副标题。不设置时不显示副标题。从API Version 9开始废弃,建议使用title代替。 |
+| menus | Array<[NavigationMenuItem](#navigationmenuitem类型说明)> \| [CustomBuilder](ts-types.md#custombuilder8)8+ | 页面右上角菜单。不设置时不显示菜单项。使用Array<[NavigationMenuItem](#navigationmenuitem类型说明)> 写法时,竖屏最多支持显示3个图标,横屏最多支持显示5个图标,多余的图标会被放入自动生成的更多图标。 |
| titleMode | [NavigationTitleMode](#navigationtitlemode枚举说明) | 页面标题栏显示模式。
默认值:NavigationTitleMode.Free |
-| toolBar | [object](#object类型说明) \| [CustomBuilder](ts-types.md#custombuilder8)8+ | 设置工具栏内容。
items: 工具栏所有项。 |
+| toolBar | [object](#object类型说明) \| [CustomBuilder](ts-types.md#custombuilder8)8+ | 设置工具栏内容。不设置时不显示工具栏。
items: 工具栏所有项。
**说明:**
items均分底部工具栏,在每个均分内容区布局文本和图标,文本超长时,逐级缩小,缩小之后换行,最后...截断。 |
| hideToolBar | boolean | 隐藏工具栏。
默认值:false
true: 隐藏工具栏。
false: 显示工具栏。 |
| hideTitleBar | boolean | 隐藏标题栏。
默认值:false
true: 隐藏标题栏。
false: 显示标题栏。 |
-| hideBackButton | boolean | 隐藏返回键。
默认值:false
true: 隐藏返回键。
false: 显示返回键。
不支持隐藏NavDestination组件标题栏中的返回图标。|
-| navBarWidth9+ | [Length](ts-types.md#length) | 导航栏宽度。
默认值:200vp |
-| navBarPosition9+ | [NavBarPosition](#navbarposition枚举说明) | 导航栏位置。
默认值:NavBarPosition.Start |
-| mode9+ | [NavigationMode](#navigationmode枚举说明) | 导航栏的显示模式。
默认值:NavigationMode.Auto |
+| hideBackButton | boolean | 隐藏返回键。
默认值:false
true: 隐藏返回键。
false: 显示返回键。
不支持隐藏NavDestination组件标题栏中的返回图标。
**说明:**
返回键键仅针对titleMode为NavigationTitleMode.Mini时才生效。 |
+| navBarWidth9+ | [Length](ts-types.md#length) | 导航栏宽度。
默认值:200
单位:vp
**说明:**
仅在Navigation组件分栏时生效。 |
+| navBarPosition9+ | [NavBarPosition](#navbarposition枚举说明) | 导航栏位置。
默认值:NavBarPosition.Start
**说明:**
仅在Navigation组件分栏时生效。 |
+| mode9+ | [NavigationMode](#navigationmode枚举说明) | 导航栏的显示模式。
默认值:NavigationMode.Auto
自适应:基于组件宽度自适应单栏和双栏。 |
| backButtonIcon9+ | string \| [PixelMap](../apis/js-apis-image.md#pixelmap7) \| [Resource](ts-types.md#resource) | 设置导航栏返回图标。不支持隐藏NavDestination组件标题栏中的返回图标。|
| hideNavBar9+ | boolean | 是否显示导航栏(仅在mode为NavigationMode.Split时生效)。 |
diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-navrouter.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-navrouter.md
index 162f15f8f3645a41808ef0ad7dfca5a20077aa87..4bbe47093ab9d614d64d21544cc43d6ca90f0de2 100644
--- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-navrouter.md
+++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-navrouter.md
@@ -10,6 +10,14 @@
必须包含两个子组件,其中第二个子组件必须为[NavDestination](ts-basic-components-navdestination.md)。
+> **说明:**
+>
+> 子组件个数异常时:
+> 1. 有且仅有1个时,触发路由到NavDestination的能力失效。
+> 2. 有且仅有1个时,且使用NavDestination场景下,不进行路由。
+> 3. 大于2个时,后续的子组件不显示。
+> 4. 第二个子组件不为NavDestination时,触发路由功能失效。
+
## 接口
NavRouter()
@@ -17,9 +25,9 @@ NavRouter()
## 事件
-| 名称 | 功能描述 |
-| ---------------------------------------- | ---------------------------------------- |
-| onStateChange(callback: (isActivated: boolean) => void) | 组件激活状态切换时触发该回调。返回值isActivated为true时表示激活,为false时表示未激活。 **说明:** 用户点击NavRouter,激活NavRouter,加载对应的NavDestination子组件时,回调onStateChange(true);NavRouter对应的NavDestination子组件不再显示时,回调onStateChange(false)。 |
+| 名称 | 功能描述 |
+| ------------------------------------------------------- | ------------------------------------------------------------ |
+| onStateChange(callback: (isActivated: boolean) => void) | 组件激活状态切换时触发该回调。返回值isActivated为true时表示激活,为false时表示未激活。
**说明:**
开发者点击激活NavRouter,加载对应的NavDestination子组件时,回调onStateChange(true)。NavRouter对应的NavDestination子组件不再显示时,回调onStateChange(false)。 |
## 示例
diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-plugincomponent.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-plugincomponent.md
index f4d92ad423e1a47497d5673b2ce8dea3a587f09d..2a947a983a64ce376f584f02a2c287b1a781cc6e 100644
--- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-plugincomponent.md
+++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-plugincomponent.md
@@ -31,9 +31,16 @@ PluginComponent(value: { template: PluginComponentTemplate, data: KVObject})
| source | string | 组件模板名。 |
| bundleName | string | 提供者Ability的bundleName。 |
+## 属性
+
+除支持[通用属性size](ts-universal-attributes-size.md),且必须设置size。
## 事件
+仅支持[手势事件](ts-gesture-settings.md)分发给提供方页面,并在提供方页面内部处理。
+
+除支持[通用事件](ts-universal-events-click.md),还支持以下事件:
+
| 名称 | 功能描述 |
| ------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- |
| onComplete(callback: () => void) | 组件加载完成回调。 |
diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-progress.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-progress.md
index 69b6d182ffbf5d3bea4e4f47d6163c4ecf0109ca..11107f9c944bd327916d74bab34354dd058a95db 100644
--- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-progress.md
+++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-progress.md
@@ -55,13 +55,18 @@ Progress(options: {value: number, total?: number, type?: ProgressType})
## 属性
+除支持[通用属性](ts-universal-attributes-size.md)外,还支持以下属性:
+
| 名称 | 参数类型 | 描述 |
| -------- | -------- | -------- |
| value | number | 设置当前进度值。设置小于0的数值时置为0,设置大于total的数值时置为total。非法数值不生效。
从API version 9开始,该接口支持在ArkTS卡片中使用。 |
-| color | [ResourceColor](ts-types.md#resourcecolor) | 设置进度条前景色。
从API version 9开始,该接口支持在ArkTS卡片中使用。 |
-| backgroundColor | [ResourceColor](ts-types.md#resourcecolor) | 设置进度条底色。
从API version 9开始,该接口支持在ArkTS卡片中使用。 |
+| color | [ResourceColor](ts-types.md#resourcecolor) | 设置进度条前景色。
默认值:'\#ff007dff'
从API version 9开始,该接口支持在ArkTS卡片中使用。 |
+| backgroundColor | [ResourceColor](ts-types.md#resourcecolor) | 设置进度条底色。
默认值:'\#19182431'
从API version 9开始,该接口支持在ArkTS卡片中使用。 |
| style8+ | {
strokeWidth?: [Length](ts-types.md#length),
scaleCount?: number,
scaleWidth?: [Length](ts-types.md#length)
} | 定义组件的样式。
- strokeWidth: 设置进度条宽度(不支持百分比设置)。从API version9开始,环形进度条设置宽度大于等于半径时,默认修改宽度至半径值的二分之一。
默认值:4.0Vp
- scaleCount: 设置环形进度条总刻度数。
默认值:120
- scaleWidth: 设置环形进度条刻度粗细(不支持百分比设置),刻度粗细大于进度条宽度时,为系统默认粗细。
默认值:2.0Vp
从API version 9开始,该接口支持在ArkTS卡片中使用。 |
+## 事件
+
+支持[通用事件](ts-universal-events-click.md)。
## 示例
diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-select.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-select.md
index 6f8df5055fb91666b7d05219d38c0676f2fc4312..d1a5a97d999faa05df7d5ab6c97a22d46b4b67c6 100644
--- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-select.md
+++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-select.md
@@ -23,20 +23,22 @@ Select(options: Array\<[SelectOption](#selectoption对象说明)\>)
## 属性
+除支持[通用属性](ts-universal-attributes-size.md)外,还支持以下属性:
+
| 名称 | 参数类型 | 描述 |
| ----------------------- | ------------------------------------- | --------------------------------------------- |
| selected | number | 设置下拉菜单初始选项的索引,第一项的索引为0。
当不设置selected属性时,默认选择值为-1,菜单项不选中。 |
-| value | string | 设置下拉按钮本身的文本内容。 |
-| font | [Font](ts-types.md#font) | 设置下拉按钮本身的文本样式。 |
-| fontColor | [ResourceColor](ts-types.md#resourcecolor) | 设置下拉按钮本身的文本颜色。 |
-| selectedOptionBgColor | [ResourceColor](ts-types.md#resourcecolor) | 设置下拉菜单选中项的背景色。 |
-| selectedOptionFont | [Font](ts-types.md#font) | 设置下拉菜单选中项的文本样式。 |
-| selectedOptionFontColor | [ResourceColor](ts-types.md#resourcecolor) | 设置下拉菜单选中项的文本颜色。 |
-| optionBgColor | [ResourceColor](ts-types.md#resourcecolor) | 设置下拉菜单项的背景色。 |
-| optionFont | [Font](ts-types.md#font) | 设置下拉菜单项的文本样式。 |
-| optionFontColor | [ResourceColor](ts-types.md#resourcecolor) | 设置下拉菜单项的文本颜色。 |
-| space10+ | [Length](ts-types.md#length) | 设置下拉菜单项的文本与箭头之间的间距。 |
-| arrowPosition10+ | [ArrowPosition](#arrowposition10枚举说明) | 设置下拉菜单项的文本与箭头之间的对齐方式。 |
+| value | string | 设置下拉按钮本身的文本内容。当菜单选中时默认会替换为菜单项文本内容。 |
+| font | [Font](ts-types.md#font) | 设置下拉按钮本身的文本样式。
默认值:
{
size: '16fp',
weight: FontWeight.Medium
} |
+| fontColor | [ResourceColor](ts-types.md#resourcecolor) | 设置下拉按钮本身的文本颜色。
默认值:'\#E6FFFFFF' |
+| selectedOptionBgColor | [ResourceColor](ts-types.md#resourcecolor) | 设置下拉菜单选中项的背景色。
默认值:'\#33007DFF' |
+| selectedOptionFont | [Font](ts-types.md#font) | 设置下拉菜单选中项的文本样式。
默认值:
{
size: '16fp',
weight: FontWeight.Regular
} |
+| selectedOptionFontColor | [ResourceColor](ts-types.md#resourcecolor) | 设置下拉菜单选中项的文本颜色。
默认值:'\#ff007dff' |
+| optionBgColor | [ResourceColor](ts-types.md#resourcecolor) | 设置下拉菜单项的背景色。
默认值:'\#ffffffff' |
+| optionFont | [Font](ts-types.md#font) | 设置下拉菜单项的文本样式。
默认值:
{
size: '16fp',
weight: FontWeight.Regular
} |
+| optionFontColor | [ResourceColor](ts-types.md#resourcecolor) | 设置下拉菜单项的文本颜色。
默认值:'\#ff182431' |
+| space10+ | [Length](ts-types.md#length) | 设置下拉菜单项的文本与箭头之间的间距。
**说明:**
不支持设置百分比。 |
+| arrowPosition10+ | [ArrowPosition](#arrowposition10枚举说明) | 设置下拉菜单项的文本与箭头之间的对齐方式。
默认值:ArrowPosition.END |
## ArrowPosition10+枚举说明
diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-container-alphabet-indexer.md b/zh-cn/application-dev/reference/arkui-ts/ts-container-alphabet-indexer.md
index 94f2a294869b0ccf6009b66f1d9bcb63119bf43a..84eab79ac1de7d932babff111b590b91df8d0598 100644
--- a/zh-cn/application-dev/reference/arkui-ts/ts-container-alphabet-indexer.md
+++ b/zh-cn/application-dev/reference/arkui-ts/ts-container-alphabet-indexer.md
@@ -38,7 +38,7 @@ AlphabetIndexer(value: {arrayValue: Array<string>, selected: number})
| selectedFont | [Font](ts-types.md#font) | 设置选中项文字样式。
默认值:
{
size:10,
style:FontStyle.Normal,
weight:FontWeight.Normal,
family:'HarmonyOS Sans'
} |
| popupFont | [Font](ts-types.md#font) | 设置提示弹窗字体样式。
默认值:
{
size:10,
style:FontStyle.Normal,
weight:FontWeight.Normal,
family:'HarmonyOS Sans'
} |
| font | [Font](ts-types.md#font) | 设置字母索引条默认字体样式。
默认值:
{
size:10,
style:FontStyle.Normal,
weight:FontWeight.Normal,
family:'HarmonyOS Sans'
} |
-| itemSize | string \| number | 设置字母索引条字母区域大小,字母区域为正方形,即正方形边长。不支持设置为百分比。
默认值:24.0。 |
+| itemSize | string \| number | 设置字母索引条字母区域大小,字母区域为正方形,即正方形边长。不支持设置为百分比。
默认值:24.0
单位:vp |
| alignStyle | value: [IndexerAlign](#indexeralign枚举说明),
offset10+?: [Length](ts-types.md#length) | value:设置字母索引条弹框的对齐样式,支持弹窗显示在索引条右侧和左侧。
默认值: IndexerAlign.Right。
offset:设置提示弹窗与索引条之间间距,大于等于0为有效值,在不设置或设置为小于0的情况下间距与popupPosition.x相同。 |
| selected | number | 设置选中项索引值。
默认值:0。 |
| popupPosition | [Position](ts-types.md#position8) | 设置弹出窗口相对于索引器条上边框中点的位置。
默认值:{x:96.0, y:48.0}。 |
@@ -56,7 +56,7 @@ AlphabetIndexer(value: {arrayValue: Array<string>, selected: number})
## 事件
-仅支持以下事件:
+除支持[通用事件](ts-universal-events-click.md)外,还支持以下事件:
| 名称 | 功能描述 |
| -------- | -------- |
diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-container-badge.md b/zh-cn/application-dev/reference/arkui-ts/ts-container-badge.md
index 89b012e6a400ccf07a4237c1c9117074453607fa..a91ed009ce9fd5f714a67dec13a835200d58ac71 100644
--- a/zh-cn/application-dev/reference/arkui-ts/ts-container-badge.md
+++ b/zh-cn/application-dev/reference/arkui-ts/ts-container-badge.md
@@ -11,6 +11,10 @@
支持单个子组件。
+> **说明:**
+>
+> 子组件类型:系统组件和自定义组件,支持渲染控制类型([if/else](../../quick-start/arkts-rendering-control.md#条件渲染)、[ForEach](../../quick-start/arkts-rendering-control.md#循环渲染)和[LazyForEach](../../quick-start/arkts-rendering-control.md#数据懒加载))。
+
## 接口
@@ -22,12 +26,12 @@
**参数:**
-| 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 |
-| -------- | -------- | -------- | -------- | -------- |
-| count | number | 是 | - | 设置提醒消息数。 |
-| position | [BadgePosition](#badgeposition枚举说明) | 否 | BadgePosition.RightTop | 设置提示点显示位置。 |
-| maxCount | number | 否 | 99 | 最大消息数,超过最大消息时仅显示maxCount+。 |
-| style | [BadgeStyle](#badgestyle对象说明) | 是 | - | Badge组件可设置样式,支持设置文本颜色、尺寸、圆点颜色和尺寸。 |
+| 参数名 | 参数类型 | 必填 | 参数描述 |
+| -------- | -------- | -------- | -------- |
+| count | number | 是 | 设置提醒消息数。
**说明:**
小于等于0时不显示信息标记。 |
+| position | [BadgePosition](#badgeposition枚举说明) | 否 | 设置提示点显示位置。
默认值:BadgePosition.RightTop |
+| maxCount | number | 否 | 最大消息数,超过最大消息时仅显示maxCount+。
默认值:99 |
+| style | [BadgeStyle](#badgestyle对象说明) | 是 | Badge组件可设置样式,支持设置文本颜色、尺寸、圆点颜色和尺寸。 |
**方法2:** Badge(value: {value: string, position?: BadgePosition, style: BadgeStyle})
@@ -57,15 +61,23 @@
从API version 9开始,该接口支持在ArkTS卡片中使用。
-| 名称 | 类型 | 必填 | 默认值 | 描述 |
-| ------------------------- | ------------------------------------------------------------ | ---- | ----------------- | ------------------------------------------------------------ |
-| color | [ResourceColor](ts-types.md#resourcecolor) | 否 | Color.White | 文本颜色。 |
-| fontSize | number \| string | 否 | 10 | 文本大小,单位vp。 |
-| badgeSize | number \| string | 否 | 16 | Badge的大小,单位vp。不支持百分比形式设置。当设置为非法值时,按照默认值处理。 |
-| badgeColor | [ResourceColor](ts-types.md#resourcecolor) | 否 | Color.Red | Badge的颜色。 |
-| fontWeight10+ | number \|[FontWeight](ts-appendix-enums.md#fontweight) \| string | 否 | FontWeight.Normal | 设置文本的字体粗细。 |
-| borderColor10+ | [ResourceColor](ts-types.md#resourcecolor) | 否 | Color.Red | 底板描边颜色。 |
-| borderWidth10+ | [Length](ts-types.md#length) | 否 | 1.0vp | 底板描边粗细。 |
+| 名称 | 类型 | 必填 | 描述 |
+| ------------------------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ |
+| color | [ResourceColor](ts-types.md#resourcecolor) | 否 | 文本颜色。
默认值:Color.White |
+| fontSize | number \| string | 否 | 文本大小。
默认值:10
单位:vp
**说明:**
不支持设置百分比。 |
+| badgeSize | number \| string | 否 | Badge的大小。
默认值:16
单位:vp
**说明:**
不支持设置百分比。当设置为非法值时,按照默认值处理。 |
+| badgeColor | [ResourceColor](ts-types.md#resourcecolor) | 否 | Badge的颜色。
默认值:Color.Red |
+| fontWeight10+ | number \|[FontWeight](ts-appendix-enums.md#fontweight) \| string | 否 | 设置文本的字体粗细。
默认值:FontWeight.Normal
**说明:**
不支持设置百分比。 |
+| borderColor10+ | [ResourceColor](ts-types.md#resourcecolor) | 否 | 底板描边颜色。 |
+| borderWidth10+ | [Length](ts-types.md#length) | 否 | 底板描边粗细。
默认值:1
单位:vp
**说明:**
不支持设置百分比。 |
+
+## 属性
+
+支持[通用属性](ts-universal-attributes-size.md)。
+
+## 事件
+
+支持[通用事件](ts-universal-events-click.md)。
## 示例
diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-container-grid.md b/zh-cn/application-dev/reference/arkui-ts/ts-container-grid.md
index 25c8005fdeea7e965621140a00e2ae8f53e96b07..3aada9151e8f1584403809919ec3ea7722075db9 100644
--- a/zh-cn/application-dev/reference/arkui-ts/ts-container-grid.md
+++ b/zh-cn/application-dev/reference/arkui-ts/ts-container-grid.md
@@ -21,7 +21,7 @@
>
> ForEach/LazyForEach语句中,会计算展开所有子节点索引值。
>
-> if/else/ForEach/LazyForEach发生变化以后,会更新子节点索引值。
+> [if/else](../../quick-start/arkts-rendering-control.md#条件渲染)、[ForEach](../../quick-start/arkts-rendering-control.md#循环渲染)和[LazyForEach](../../quick-start/arkts-rendering-control.md#数据懒加载)发生变化以后,会更新子节点索引值。
>
> Grid子组件的visibility属性设置为Hidden或None时依然会计算索引值。
>
diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-container-list.md b/zh-cn/application-dev/reference/arkui-ts/ts-container-list.md
index d90477e50c0166840c2d6cd575c4dc32768b7f5a..a3612ac4c429c5f009e3d3fa7917a49d83d6dbfa 100644
--- a/zh-cn/application-dev/reference/arkui-ts/ts-container-list.md
+++ b/zh-cn/application-dev/reference/arkui-ts/ts-container-list.md
@@ -22,7 +22,7 @@
>
> ForEach/LazyForEach语句中,会计算展开所有子节点索引值。
>
-> if/else/ForEach/LazyForEach发生变化以后,会更新子节点索引值。
+> [if/else](../../quick-start/arkts-rendering-control.md#条件渲染)、[ForEach](../../quick-start/arkts-rendering-control.md#循环渲染)和[LazyForEach](../../quick-start/arkts-rendering-control.md#数据懒加载)发生变化以后,会更新子节点索引值。
>
> ListItemGroup作为一个整体计算一个索引值,ListItemGroup内部的ListItem不计算索引值。
>
diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-container-panel.md b/zh-cn/application-dev/reference/arkui-ts/ts-container-panel.md
index ec239c8400514c7e41cb3b5f37cbee6afd6a0fb0..08022baa52e2ff206b0e3e00272f4af557cff536 100644
--- a/zh-cn/application-dev/reference/arkui-ts/ts-container-panel.md
+++ b/zh-cn/application-dev/reference/arkui-ts/ts-container-panel.md
@@ -11,6 +11,10 @@
可以包含子组件。
+> **说明:**
+>
+> 子组件类型:系统组件和自定义组件,支持渲染控制类型([if/else](../../quick-start/arkts-rendering-control.md#条件渲染)、[ForEach](../../quick-start/arkts-rendering-control.md#循环渲染)和[LazyForEach](../../quick-start/arkts-rendering-control.md#数据懒加载))。
+
## 接口
@@ -20,19 +24,20 @@ Panel(show: boolean)
| 参数名 | 参数类型 | 必填 | 参数描述 |
| -------- | -------- | -------- | -------- |
-| show | boolean | 是 | 控制Panel显示或隐藏。 |
-
+| show | boolean | 是 | 控制Panel显示或隐藏。
**说明:**
如果设置为false时,则不占位隐藏。[Visible.None](ts-universal-attributes-visibility.md)或者show之间有一个生效时,都会生效不占位隐藏。 |
## 属性
+除支持[通用属性](ts-universal-attributes-size.md)外,还支持以下属性:
+
| 名称 | 参数类型 | 描述 |
| -------- | -------- | -------- |
| type | [PanelType](#paneltype枚举说明) | 设置可滑动面板的类型。
默认值:PanelType.Foldable |
-| mode | [PanelMode](#panelmode枚举说明) | 设置可滑动面板的初始状态。 |
+| mode | [PanelMode](#panelmode枚举说明) | 设置可滑动面板的初始状态。
默认值:PanelMode.Half |
| dragBar | boolean | 设置是否存在dragbar,true表示存在,false表示不存在。
默认值:true |
-| fullHeight | string \| number | 指定PanelMode.Full状态下的高度。 |
-| halfHeight | string \| number | 指定PanelMode.Half状态下的高度,默认为屏幕尺寸的一半。 |
-| miniHeight | string \| number | 指定PanelMode.Mini状态下的高度。 |
+| fullHeight | string \| number | 指定PanelMode.Full状态下的高度。
默认值:当前组件主轴大小减去8vp空白区
**说明:**
不支持设置百分比。 |
+| halfHeight | string \| number | 指定PanelMode.Half状态下的高度。
默认值:当前组件主轴大小的一半。
**说明:**
不支持设置百分比。 |
+| miniHeight | string \| number | 指定PanelMode.Mini状态下的高度。
默认值:48
单位:vp
**说明:**
不支持设置百分比。 |
| show | boolean | 当滑动面板弹出时调用。 |
| backgroundMask9+|[ResourceColor](ts-types.md#resourcecolor)|指定Panel的背景蒙层。|
@@ -52,9 +57,10 @@ Panel(show: boolean)
| Half | 类型为foldable和temporary时,为类半屏状态;类型为minibar,则不生效。 |
| Full | 类全屏状态。 |
-
## 事件
+除支持[通用事件](ts-universal-events-click.md)外,还支持以下事件:
+
| 名称 | 功能描述 |
| -------- | -------- |
| onChange(event: (width: number, height: number, mode: PanelMode) => void) | 当可滑动面板发生状态变化时触发, 返回的height值为内容区高度值,当dragbar属性为true时,panel本身的高度值为dragbar高度加上内容区高度。 |
diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-container-refresh.md b/zh-cn/application-dev/reference/arkui-ts/ts-container-refresh.md
index 1d4f7f8f449ecc9e3fc308bd34e84ea5518e7ba4..125dfbf58a1bb4c1e6aaa084128bd44f2dc83e35 100644
--- a/zh-cn/application-dev/reference/arkui-ts/ts-container-refresh.md
+++ b/zh-cn/application-dev/reference/arkui-ts/ts-container-refresh.md
@@ -25,10 +25,14 @@ Refresh\(value: \{ refreshing: boolean, offset?: number | string , fr
| friction | number \| string | 否 | 下拉摩擦系数,取值范围为0到100。
默认值:62
- 0表示下拉刷新容器不跟随手势下拉而下拉。
- 100表示下拉刷新容器紧紧跟随手势下拉而下拉。
- 数值越大,下拉刷新容器跟随手势下拉的反应越灵敏。 |
| builder | [CustomBuilder](ts-types.md#custombuilder8)10+ | 否 | 下拉时,自定义刷新样式的组件。 |
+## 属性
+支持[通用属性](ts-universal-attributes-size.md)。
## 事件
+除支持[通用事件](ts-universal-events-click.md)外,还支持以下事件:
+
| 名称 | 描述 |
| -------- | -------- |
diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-container-sidebarcontainer.md b/zh-cn/application-dev/reference/arkui-ts/ts-container-sidebarcontainer.md
index 9c65d75a6d4ac685e9020c1b12a080edc29303e4..649fb56e53c29400fe39babced4e18e3ef2ab2aa 100644
--- a/zh-cn/application-dev/reference/arkui-ts/ts-container-sidebarcontainer.md
+++ b/zh-cn/application-dev/reference/arkui-ts/ts-container-sidebarcontainer.md
@@ -13,7 +13,7 @@
> **说明:**
>
-> - 子组件类型:系统组件和自定义组件,不支持渲染控制类型([if/else](../../quick-start/arkts-rendering-control.md#条件渲染)、[ForEach](quick-start/arkts-rendering-control.md#循环渲染)和[LazyForEach](quick-start/arkts-rendering-control.md#数据懒加载))。
+> - 子组件类型:系统组件和自定义组件,不支持渲染控制类型([if/else](../../quick-start/arkts-rendering-control.md#条件渲染)、[ForEach](../../quick-start/arkts-rendering-control.md#循环渲染)和[LazyForEach](../../quick-start/arkts-rendering-control.md#数据懒加载))。
> - 子组件个数:必须且仅包含2个子组件。
> - 子组件个数异常时:3个或以上子组件,显示第一个和第二个。1个子组件,显示侧边栏,内容区为空白。
diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-container-swiper.md b/zh-cn/application-dev/reference/arkui-ts/ts-container-swiper.md
index 8867318c70c437496adfa85106e9e4b218d8f34c..451c9c0d672859c219971da56f41239fe629ae8b 100644
--- a/zh-cn/application-dev/reference/arkui-ts/ts-container-swiper.md
+++ b/zh-cn/application-dev/reference/arkui-ts/ts-container-swiper.md
@@ -11,6 +11,10 @@
可以包含子组件。
+> **说明:**
+>
+> 子组件类型:系统组件和自定义组件,支持渲染控制类型([if/else](../../quick-start/arkts-rendering-control.md#条件渲染)、[ForEach](../../quick-start/arkts-rendering-control.md#循环渲染)和[LazyForEach](../../quick-start/arkts-rendering-control.md#数据懒加载))。
+
## 接口
@@ -29,23 +33,23 @@ Swiper(controller?: SwiperController)
| 名称 | 参数类型 | 描述 |
| --------------------------- | ---------------------------------------- | ---------------------------------------- |
-| index | number | 设置当前在容器中显示的子组件的索引值。
默认值:0 |
-| autoPlay | boolean | 子组件是否自动播放。
默认值:false |
+| index | number | 设置当前在容器中显示的子组件的索引值。
默认值:0
**说明:**
设置小于0或大于等于子组件数量时,按照默认值0处理。 |
+| autoPlay | boolean | 子组件是否自动播放。
默认值:false
**说明:**
loop为false时,自动轮播到最后一页时停止轮播。手势切换后不是最后一页时继续播放。 |
| interval | number | 使用自动播放时播放的时间间隔,单位为毫秒。
默认值:3000 |
| indicator10+ | [DotIndicator](#dotindicator) \| [DigitIndicator](#digitindicator) \| boolean | 设置可选导航点指示器样式。
\- DotIndicator:圆点指示器样式。
\- DigitIndicator:数字指示器样式。
\- boolean:是否启用导航点指示器。
默认值:true
默认类型:DotIndicator |
| loop | boolean | 是否开启循环。
设置为true时表示开启循环,在LazyForEach懒循环加载模式下,加载的组件数量建议大于5个。
默认值:true |
| duration | number | 子组件切换的动画时长,单位为毫秒。
默认值:400 |
| vertical | boolean | 是否为纵向滑动。
默认值:false |
-| itemSpace | number \| string | 设置子组件与子组件之间间隙。
默认值:0 |
+| itemSpace | number \| string | 设置子组件与子组件之间间隙。
默认值:0
**说明:**
不支持设置百分比。 |
| displayMode | SwiperDisplayMode | 主轴方向上元素排列的模式,优先以displayCount设置的个数显示,displayCount未设置时本属性生效。
默认值:SwiperDisplayMode.Stretch |
| cachedCount8+ | number | 设置预加载子组件个数。
默认值:1 |
| disableSwipe8+ | boolean | 禁用组件滑动切换功能。
默认值:false |
| curve8+ | [Curve](ts-appendix-enums.md#curve) \| string | 设置Swiper的动画曲线,默认为淡入淡出曲线,常用曲线参考[Curve枚举说明](ts-appendix-enums.md#curve),也可以通过[插值计算](../apis/js-apis-curve.md)模块提供的接口创建自定义的插值曲线对象。
默认值:Curve.Ease |
| indicatorStyle8+ | {
left?: [Length](ts-types.md#length),
top?: [Length](ts-types.md#length),
right?: [Length](ts-types.md#length),
bottom?: [Length](ts-types.md#length),
size?: [Length](ts-types.md#length),
mask?: boolean,
color?: [ResourceColor](ts-types.md),
selectedColor?: [ResourceColor](ts-types.md)
} | 设置导航点样式:
\- left: 设置导航点距离Swiper组件左边的距离。
\- top: 设置导航点距离Swiper组件顶部的距离。
\- right: 设置导航点距离Swiper组件右边的距离。
\- bottom: 设置导航点距离Swiper组件底部的距离。
\- size: 设置导航点的直径。
\- mask: 设置是否显示导航点蒙层样式。
\- color: 设置导航点的颜色。
\- selectedColor: 设置选中的导航点的颜色。 |
-| displayCount8+ | number\|string | 设置一页内元素显示个数。
默认值:1 |
-| effectMode8+ | [EdgeEffect](ts-appendix-enums.md#edgeeffect) | 滑动效果,目前支持的滑动效果参见EdgeEffect的枚举说明。
默认值:EdgeEffect.Spring |
-| nextMargin10+ |
[Length](ts-types.md#length)
| 后边距,用于露出后一项的一小部分。当cachedCount设置值小于等于0时,此时会露出后一项的一小部分,但无法加载子组件。当displayCount设置为1时,此参数设置无效。
默认值:0 |
-| prevMargin10+ |
[Length](ts-types.md#length)
| 前边距,用于露出前一项的一小部分。当cachedCount设置值小于等于0时,此时会露出前一项的一小部分,但无法加载子组件。当displayCount设置为1时,此参数设置无效。
默认值:0 |
+| displayCount8+ | number\|string | 设置一页内元素显示个数。
默认值:1
**说明:**
字符串类型仅支持设置为'auto',显示效果同SwiperDisplayMode.AutoLinear。
使用number类型时,子组件按照主轴均分Swiper宽度(减去displayCount-1的itemSpace)的方式进行主轴拉伸(收缩)布局。 |
+| effectMode8+ | [EdgeEffect](ts-appendix-enums.md#edgeeffect) | 滑动效果,目前支持的滑动效果参见EdgeEffect的枚举说明。
默认值:EdgeEffect.Spring
**说明:**
控制器接口调用时不生效回弹。 |
+| nextMargin10+ |
[Length](ts-types.md#length)
| 后边距,用于露出后一项的一小部分。当cachedCount设置值小于等于0时,此时会露出后一项的一小部分,但无法加载子组件。当displayCount设置为1时,此参数设置无效。
默认值:0 |
+| prevMargin10+ |
[Length](ts-types.md#length)
| 前边距,用于露出前一项的一小部分。当cachedCount设置值小于等于0时,此时会露出前一项的一小部分,但无法加载子组件。当displayCount设置为1时,此参数设置无效。
默认值:0 |
## SwiperDisplayMode枚举说明
@@ -62,13 +66,13 @@ Swiper容器组件的控制器,可以将此对象绑定至Swiper组件,然
showNext(): void
-翻至下一页。
+翻至下一页。翻页带动效切换过程,时长通过duration指定。
### showPrevious
showPrevious(): void
-翻至上一页。
+翻至上一页。翻页带动效切换过程,时长通过duration指定。
### finishAnimation
@@ -99,13 +103,13 @@ finishAnimation(callback?: () => void): void
| 参数名 | 参数类型 | 必填项 | 参数描述 |
| ------------------ | ------------- | ------ | ------------------------------------------------------ |
-| itemWidth | [Length](ts-types.md#length) | 否 | 设置Swiper组件圆点导航指示器的宽。 |
-| itemHeight | [Length](ts-types.md#length) | 否 | 设置Swiper组件圆点导航指示器的高。 |
-| selectedItemWidth | [Length](ts-types.md#length) | 否 | 设置选中Swiper组件圆点导航指示器的宽。 |
-| selectedItemHeight | [Length](ts-types.md#length) | 否 | 设置选中Swiper组件圆点导航指示器的高。 |
-| mask | boolean | 否 | 设置是否显示Swiper组件圆点导航指示器的蒙版样式。 |
-| color | [ResourceColor](ts-types.md#resourcecolor) | 否 | 设置Swiper组件圆点导航指示器的颜色。 |
-| selectedColor | [ResourceColor](ts-types.md#resourcecolor) | 否 | 设置选中Swiper组件圆点导航指示器的颜色。 |
+| itemWidth | [Length](ts-types.md#length) | 否 | 设置Swiper组件圆点导航指示器的宽。
默认值:6
单位:vp |
+| itemHeight | [Length](ts-types.md#length) | 否 | 设置Swiper组件圆点导航指示器的高。
默认值:6
单位:vp |
+| selectedItemWidth | [Length](ts-types.md#length) | 否 | 设置选中Swiper组件圆点导航指示器的宽。
默认值:6
单位:vp |
+| selectedItemHeight | [Length](ts-types.md#length) | 否 | 设置选中Swiper组件圆点导航指示器的高。
默认值:6
单位:vp |
+| mask | boolean | 否 | 设置是否显示Swiper组件圆点导航指示器的蒙版样式。
默认值:false |
+| color | [ResourceColor](ts-types.md#resourcecolor) | 否 | 设置Swiper组件圆点导航指示器的颜色。
默认值:'\#007DFF' |
+| selectedColor | [ResourceColor](ts-types.md#resourcecolor) | 否 | 设置选中Swiper组件圆点导航指示器的颜色。
默认值:'\#182431'(10%透明度) |
### DigitIndicator
@@ -113,29 +117,20 @@ finishAnimation(callback?: () => void): void
| 参数名 | 参数类型 | 必填项 | 参数描述 |
| ----------------- | ------------------------------------------------------------ | ------ | ------------------------------------------------------------ |
-| fontColor | [ResourceColor](ts-types.md#resourcecolor) | 否 | 设置Swiper组件数字导航点的字体颜色。 |
-| selectedFontColor | [ResourceColor](ts-types.md#resourcecolor) | 否 | 设置选中Swiper组件数字导航点的字体颜色。 |
-| digitFont | {
size?:[Length](ts-types.md#length)
weight?:number \| [FontWeight](ts-appendix-enums.md#fontweight) \| string
} | 否 | 设置Swiper组件数字导航点的字体样式:
\- size:数字导航点指示器的字体大小。
\- weight:数字导航点指示器的字重。 |
-| selectedDigitFont | {
size?:[Length](ts-types.md#length)
weight?:number \| [FontWeight](ts-appendix-enums.md#fontweight) \| string
} | 否 | 设置选中Swiper组件数字导航点的字体样式:
\- size:数字导航点选中指示器的字体大小。
\- weight:数字导航点选中指示器的字重。 |
-
-
+| fontColor | [ResourceColor](ts-types.md#resourcecolor) | 否 | 设置Swiper组件数字导航点的字体颜色。
默认值:'\#ff182431' |
+| selectedFontColor | [ResourceColor](ts-types.md#resourcecolor) | 否 | 设置选中Swiper组件数字导航点的字体颜色。
默认值:'\#ff182431' |
+| digitFont | {
size?:[Length](ts-types.md#length)
weight?:number \| [FontWeight](ts-appendix-enums.md#fontweight) \| string
} | 否 | 设置Swiper组件数字导航点的字体样式:
\- size:数字导航点指示器的字体大小。
默认值:14vp
\- weight:数字导航点指示器的字重。 |
+| selectedDigitFont | {
size?:[Length](ts-types.md#length)
weight?:number \| [FontWeight](ts-appendix-enums.md#fontweight) \| string
} | 否 | 设置选中Swiper组件数字导航点的字体样式:
\- size:数字导航点选中指示器的字体大小。
默认值:14vp
\- weight:数字导航点选中指示器的字重。 |
## 事件
-### onChange
-
-onChange(event: (index: number) => void)
-
-当前显示的子组件索引变化时触发该事件,返回值为当前显示的子组件的索引值。
-
-**说明**:Swiper组件结合LazyForEach使用时,不能在onChange事件里触发子页面UI的刷新。
-
-**返回值:**
-
-| 名称 | 类型 | 参数描述 |
-| --------- | ---------- | -------- |
-| index | number | 当前显示元素的索引。 |
+除支持[通用事件](ts-universal-events-click.md)外,还支持以下事件:
+| 名称 | 功能描述 |
+| ------------------------------------------------------------ | ------------------------------------------------------------ |
+| onChange(event: (index: number) => void) | 当前显示的子组件索引变化时触发该事件,返回值为当前显示的子组件的索引值。
- index:当前显示元素的索引。
**说明:**
Swiper组件结合LazyForEach使用时,不能在onChange事件里触发子页面UI的刷新。 |
+| onAnimationStart9+(event: (index: number) => void) | 切换动画开始时触发该回调。
- index:当前显示元素的索引。
**说明:**
参数为动画开始前的index值(不是最终结束动画的index值),多列Swiper时,index为最左侧组件的索引。 |
+| onAnimationEnd9+(event: (index: number) => void) | 切换动画结束时触发该回调。
- index:当前显示元素的索引。
**说明:**
当Swiper切换动效结束时触发,包括动画过程中手势中断,通过SwiperController调用finishAnimatio。参数为动画结束后的index值,多列Swiper时,index为最左侧组件的索引。 |
## 示例
diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-container-tabcontent.md b/zh-cn/application-dev/reference/arkui-ts/ts-container-tabcontent.md
index f43c2e8866b0aff7ad3cf48fee76a6137fd6a53a..cf5dd6cc428ae738c28fd4094ed70064f5b9de14 100644
--- a/zh-cn/application-dev/reference/arkui-ts/ts-container-tabcontent.md
+++ b/zh-cn/application-dev/reference/arkui-ts/ts-container-tabcontent.md
@@ -13,7 +13,7 @@
> **说明:**
>
-> 可内置系统组件和自定义组件,支持渲染控制类型([if/else](../../quick-start/arkts-rendering-control.md#条件渲染)、[ForEach](quick-start/arkts-rendering-control.md#循环渲染)和[LazyForEach](quick-start/arkts-rendering-control.md#数据懒加载))。
+> 可内置系统组件和自定义组件,支持渲染控制类型([if/else](../../quick-start/arkts-rendering-control.md#条件渲染)、[ForEach](../../quick-start/arkts-rendering-control.md#循环渲染)和[LazyForEach](../../quick-start/arkts-rendering-control.md#数据懒加载))。
## 接口
diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-page-transition-animation.md b/zh-cn/application-dev/reference/arkui-ts/ts-page-transition-animation.md
index 6c92ac2d49ca83c70e4c814d64bf823804c9db33..a9d7d861eb286acef5bfe4c2efc1563a41ae9d1c 100644
--- a/zh-cn/application-dev/reference/arkui-ts/ts-page-transition-animation.md
+++ b/zh-cn/application-dev/reference/arkui-ts/ts-page-transition-animation.md
@@ -8,10 +8,10 @@
>
-| 名称 | 参数 | 参数描述 |
-| ------------------- | ------------------------------------------------------------ | ------------------------------------------------------------ |
-| PageTransitionEnter | {
type?: RouteType,
duration?: number,
curve?: [Curve](ts-appendix-enums.md#curve) \| string,
delay?: number
} | 设置当前页面的自定义入场动效。
- type:页面转场效果生效的路由类型。
默认值:RouteType.None。
**说明:**
没有匹配时使用系统默认的页面转场效果(根据设备可能会有差异),如需禁用系统默认页面转场效果,可以指定duration为0。
- duration:动画的时长
单位:毫秒
- curve:动画曲线。string类型的取值支持"ease"、"ease-in"、"ease-out"、"ease-in-out"、"extreme-deceleration"、"fast-out-linear-in"、"fast-out-slow-in"、"friction"、"linear"、"linear-out-slow-in"、"rhythm"、"sharp"、"smooth"。
默认值:Curve.Linear
- delay:动画延迟时长。
默认值:0
单位:毫秒 |
-| PageTransitionExit | {
type?: RouteType,
duration?: number,
curve?: [Curve](ts-appendix-enums.md#curve) \| string,
delay?: number
} | 设置当前页面的自定义退场动效。
- type:页面转场效果生效的路由类型。
默认值:RouteType.None。
**说明:**
没有匹配时使用系统默认的页面转场效果(根据设备可能会有差异),如需禁用系统默认页面转场效果,可以指定duration为0。
- duration:动画的时长,单位为毫秒。
- curve:动画曲线,string类型取值与PageTransitionEnter相同。
默认值:Curve.Linear
- delay:动画延迟时长。
默认值:0
单位:毫秒 |
+| 名称 | 参数 | 必填 | 参数描述 |
+| ------------------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ |
+| PageTransitionEnter | {
type?: RouteType,
duration?: number,
curve?: [Curve](ts-appendix-enums.md#curve) \| string,
delay?: number
} | 否 | 设置当前页面的自定义入场动效。
- type:页面转场效果生效的路由类型。
默认值:RouteType.None。
**说明:**
没有匹配时使用系统默认的页面转场效果(根据设备可能会有差异),如需禁用系统默认页面转场效果,可以指定duration为0。
- duration:动画的时长
单位:毫秒
- curve:动画曲线。string类型的取值支持"ease"、"ease-in"、"ease-out"、"ease-in-out"、"extreme-deceleration"、"fast-out-linear-in"、"fast-out-slow-in"、"friction"、"linear"、"linear-out-slow-in"、"rhythm"、"sharp"、"smooth"。
默认值:Curve.Linear
- delay:动画延迟时长。
默认值:0
单位:毫秒 |
+| PageTransitionExit | {
type?: RouteType,
duration?: number,
curve?: [Curve](ts-appendix-enums.md#curve) \| string,
delay?: number
} | 否 | 设置当前页面的自定义退场动效。
- type:页面转场效果生效的路由类型。
默认值:RouteType.None。
**说明:**
没有匹配时使用系统默认的页面转场效果(根据设备可能会有差异),如需禁用系统默认页面转场效果,可以指定duration为0。
- duration:动画的时长,单位为毫秒。
- curve:动画曲线,string类型取值与PageTransitionEnter相同。
默认值:Curve.Linear
- delay:动画延迟时长。
默认值:0
单位:毫秒 |
## RouteType枚举说明
diff --git a/zh-cn/application-dev/reference/errorcodes/Readme-CN.md b/zh-cn/application-dev/reference/errorcodes/Readme-CN.md
index 6267fa52fc5786b5b355242dcced764b3112ea15..6d2b4759009d19670e0b20ca65cbf31246c8ae97 100644
--- a/zh-cn/application-dev/reference/errorcodes/Readme-CN.md
+++ b/zh-cn/application-dev/reference/errorcodes/Readme-CN.md
@@ -57,6 +57,7 @@
- [网络共享错误码](errorcode-net-sharing.md)
- [策略管理错误码](errorcode-net-policy.md)
- 通信与连接
+ - [Bluetooth错误码](errorcode-bluetoothManager.md)
- [WIFI错误码](errorcode-wifi.md)
- [NFC错误码](errorcode-nfc.md)
- [RPC错误码](errorcode-rpc.md)
diff --git a/zh-cn/application-dev/reference/errorcodes/errorcode-ability.md b/zh-cn/application-dev/reference/errorcodes/errorcode-ability.md
index 202bd9d425c7f583b5db8c075e6b3df57fc196f0..1ef393a59db3a5110c1510b8c4683812917fc0fa 100644
--- a/zh-cn/application-dev/reference/errorcodes/errorcode-ability.md
+++ b/zh-cn/application-dev/reference/errorcodes/errorcode-ability.md
@@ -186,7 +186,7 @@ The context does not exist.
请检查上下文对象是否可用。
-## 16000012 上一个Ability未启动完成,先缓存在队列中等待后续启动。
+## 16000017 上一个Ability未启动完成,先缓存在队列中等待后续启动。
**错误信息**
diff --git a/zh-cn/application-dev/reference/errorcodes/errorcode-data-rdb.md b/zh-cn/application-dev/reference/errorcodes/errorcode-data-rdb.md
index 1b6a13893ed3c8dd093745f60e27ec866bd4e0d0..5fee0c6d8619bee3085668be83cc2450769f7422 100644
--- a/zh-cn/application-dev/reference/errorcodes/errorcode-data-rdb.md
+++ b/zh-cn/application-dev/reference/errorcodes/errorcode-data-rdb.md
@@ -81,3 +81,22 @@ The column value is null or the column type is incompatible.
1. 检查结果集是否为空。
2. 检查结果集当前行号、列号是否超出范围。
3. 检查当前列数据类型是否支持。
+
+## 14800047 WAL文件大小超过默认上限
+
+**错误信息**
+
+The WAL file size exceeds the default limit.
+
+**错误描述**
+
+WAL文件大小超过默认上限(200M)。
+
+**可能原因**
+
+在开启读事务或者结果集未关闭的情况下,不断执行增删改操作,导致WAL文件大小超过默认上限。
+
+**处理步骤**
+
+1. 检查结果集或者事务是否未关闭。
+2. 关闭所有的结果集或者事务。
diff --git a/zh-cn/application-dev/security/huks-appendix.md b/zh-cn/application-dev/security/huks-appendix.md
index 317d78b22dd3088f4179a83d62238bdb97048526..1a4e617a098266e85399656e88b3dab4261dfdc9 100644
--- a/zh-cn/application-dev/security/huks-appendix.md
+++ b/zh-cn/application-dev/security/huks-appendix.md
@@ -1,70 +1,91 @@
# 通用密钥库密码算法规格
+## 规格实现范围说明
+本文档将说明密钥管理服务规格全景,面向OpenHarmony的厂商适配密钥管理服务规格分为必选规格和可选规格。必选规格为所有厂商均支持的算法规格。而对于可选规格,厂商将基于实际情况决定是否实现,如需使用,请查阅具体厂商提供的说明,确保规格支持再使用。
+**建议开发者使用必选规格开发应用,可保证全平台兼容。**
+
## 支持的算法类型及参数组合
### 导入\生成密钥规格
-| 算法 | API级别 | 支持的密钥长度 |
-| -------------- | :---------------: | ------------------ |
-| AES | 8+ | 128、192、256 |
-| RSA | 8+ | 512、768、1024、2048、3072、4096 |
-| HMAC | 8+ | 8-1024(含),必须是8的倍数 |
-| ECC | 8+ | 224、256、384、521 |
-| ED25519 | 8+ | 256 |
-| X25519 | 8+ | 256 |
-| DSA | 8+ | 8-1024(含),8的倍数 |
-| DH | 8+ | 2048、3072、4096 |
-| SM2 | 9+ | 256 |
-| SM3 | 9+ | 256 |
-| SM4 | 9+ | 128 |
-
-### 加密解密
-
-| 算法 | API级别 | 备注 |
-| ----------------------- | :----: | ---------------- |
-| AES/CBC/NoPadding
AES/ECB/NoPadding
AES/CTR/NoPadding
AES/GCM/NoPadding
AES/CBC/PKCS7
AES/ECB/PKCS7 | 8+ | 1. CBC\ECB\CTR模式IV参数必选
2. GCM模式下Nonce、AAD、AEAD参数必选 |
-| RSA/ECB/NoPadding
RSA/ECB/PKCS1_V1_5
RSA/ECB/OAEP | 8+ | |
-| SM4/CTR/NoPadding
SM4/ECB/NoPadding
SM4/CBC/NoPadding
SM4/ECB/PKCS7
SM4/CBC/PKCS7 | 9+ | |
-
-
-
-### 签名验签
-
-
-| 算法 | API级别 | 备注 |
-| --------- | :----------: | ----------------- |
-| RSA/MD5/PKCS1_V1_5
RSA/SHA1/PKCS1_V1_5
RSA/SHA224/PKCS1_V1_5
RSA/SHA256/PKCS1_V1_5
RSA/SHA384/PKCS1_V1_5
RSA/SHA512/PKCS1_V1_5
RSA/SHA1/PSS
RSA/SHA224/PSS
RSA/SHA256/PSS
RSA/SHA384/PSS | 8+ | |
-| RSA/NoDigest/PKCS1_V1_5 | 9+ | |
-| DSA/SHA1
DSA/SHA224
DSA/SHA256
DSA/SHA384
DSA/SHA512 | 8+ | |
-| DSA/NoDigest | 9+ | |
-| ECC/SHA1
ECC/SHA224
ECC/SHA256
ECC/SHA384
ECC/SHA512 | 8+ | |
-| ECC/NoDigest | 9+ | |
-| ED25519/SHA1
ED25519/SHA224
ED25519/SHA256
ED25519/SHA384
ED25519/SHA512 |8+ | |
-| ED25519/NoDigest | 9+ | |
-| SM2/SM3
SM2/NoDigest |9+ | |
-
-### 密钥协商
-
-| 算法 | API级别 | 备注 |
-| ------ | :-----------: | ------------------------------ |
-| ECDH | 8+ | 协商密钥类型为ECC类型密钥 |
-| DH | 8+ | |
-| X25519 | 8+ | |
-
-### 密钥派生
-
-| 算法 |API级别 | 派生密钥及长度 | 备注 |
-| ------------------------- | :-----------: | ------------ | ----------------- |
-| HKDF/SHA256
HKDF/SHA384
HKDF/SHA512 | 8+ | 算法:AES、HMAC、SM4 长度:256、384、512 | 派生出的密钥可以存储到HUKS或者直接返回明文 |
-| PBKDF2/SHA256
PBKDF2/SHA384
PBKDF2/SHA512 | 8+ | 算法:AES、HMAC、SM4 长度:256、384、512 | 派生出的密钥可以存储到HUKS或者直接返回明文 |
+| 算法 | API级别 | 支持的密钥长度 |是否必选规格|
+| -------------- | :---------------: | ------------------ |:------------------: |
+| AES | 8+ | 128、192、256 | 是 |
+| RSA | 8+ | 512、768、1024|否|
+| RSA | 8+ | 2048、3072、4096 |是|
+| HMAC | 8+ | 8-1024(含),必须是8的倍数 |是|
+| ECC | 8+ | 224 |否|
+| ECC | 8+ | 256、384、521 |是|
+| ED25519 | 8+ | 256 |是|
+| X25519 | 8+ | 256 |是|
+| DSA | 8+ | 8-1024(含),8的倍数 |否|
+| DH | 8+ | 2048 |是|
+| DH | 8+ | 3072、4096 |否|
+| SM2 | 9+ | 256 |是|
+| SM4 | 9+ | 128 |是|
+
+### 加密&解密流程算法与分组、填充模式的组合规格
+
+| 算法/分组模式/填充模式 | API级别 | 备注 |是否必选规格|
+| ----------------------- | :----: | ---------------- | :----------------: |
+| AES/ECB/NoPadding
AES/ECB/PKCS7 | 8+ | |否|
+| AES/CBC/NoPadding
AES/CBC/PKCS7
AES/CTR/NoPadding| 8+ | IV参数必选 |是|
+| AES/GCM/NoPadding | 8+ | Nonce、AAD、AEAD参数必选 |是|
+| RSA/ECB/NoPadding
RSA/ECB/PKCS1_V1_5
RSA/ECB/OAEP | 8+ | OAEP填充模式支持的摘要算法:SHA256/SHA384/SHA512 | 是 |
+| SM4/ECB/NoPadding
SM4/ECB/PKCS7
SM4/CBC/PKCS7 | 9+ | CBC模式下 IV 参数必选 |否 |
+| SM4/CTR/NoPadding
SM4/CBC/NoPadding
| 9+ | IV 参数必选 |是 |
+
+
+
+### 签名&验签流程算法与摘要算法、填充模式的组合规格
+
+
+| 算法/摘要算法/填充模式 | API级别 | 备注 |是否必选规格|
+| --------- | :----------: | ---------- | :-----------------: |
+| RSA/MD5/PKCS1_V1_5
RSA/SHA1/PKCS1_V1_5
RSA/SHA224/PKCS1_V1_5
RSA/SHA224/PSS| 8+ | |否|
+| RSA/SHA256/PKCS1_V1_5
RSA/SHA384/PKCS1_V1_5
RSA/SHA512/PKCS1_V1_5
RSA/SHA256/PSS
RSA/SHA384/PSS
RSA/SHA512/PSS | 8+ | | 是
+| RSA/NoDigest/PKCS1_V1_5 | 9+ |NoDigest 需要指定TAG HuksKeyDigest.HUKS_DIGEST_NONE |否|
+| DSA/SHA1
DSA/SHA224
DSA/SHA256
DSA/SHA384
DSA/SHA512 | 8+ | |否|
+| DSA/NoDigest | 9+ |NoDigest 需要指定TAG HuksKeyDigest.HUKS_DIGEST_NONE|否|
+| ECC/SHA1
ECC/SHA224 | 8+ | |否|
+| ECC/SHA256
ECC/SHA384
ECC/SHA512 | 8+ | |是|
+| ECC/NoDigest | 9+ |NoDigest 需要指定TAG HuksKeyDigest.HUKS_DIGEST_NONE |否|
+| ED25519/NoDigest | 8+ | NoDigest 需要指定TAG HuksKeyDigest.HUKS_DIGEST_NONE |否|
+| SM2/SM3|9+ | |是|
+| SM2/NoDigest |9+ | |否|
+
+### 密钥协商算法
+
+| 算法 | API级别 | 备注 | 是否必选规格|
+| ------ | :-----------: | ------------------------------ |:-----------: |
+| ECDH | 8+ | 协商密钥类型为ECC类型密钥 | 是|
+| DH | 8+ | |是|
+| X25519 | 8+ | |是|
+
+### HMAC 密钥长度与摘要组合规格
+| 摘要 | 密钥长度 | API级别 | 是否必选规格|
+| ------ | :-----------: |:-----------: |:-----------: |
+| SHA256 |192-1024(8的倍数)| 8+ | 是|
+| SHA384 |256-1024(8的倍数) | 8+ | 是|
+| SHA512 |256-1024(8的倍数)| 8+ | 是|
+### 派生算法/摘要组合规格
+
+| 算法/摘要 | 派生密钥的算法/长度 | 派生结果密钥可用算法/长度 | 备注 |API级别 |是否必选规格|
+| ----------------- |-------------------------------- | ----------------------- | :------------: |:---------: |:--:|
+| HKDF/SHA256 | AES/192-256 | AES/128/192/256
HMAC/8-1024
SM4/128 | 派生密钥是业务基于三段式得到密钥会话结果,业务可决定派生密钥是否由HUKS管理(即密钥不出TEE)亦或是业务独立管理 |8+|是|
+| HKDF/SHA384 | AES/256 | AES/128/192/256
HMAC/8-1024
SM4/128 | 派生密钥是业务基于三段式得到密钥会话结果,业务可决定派生密钥是否由HUKS管理(即密钥不出TEE)亦或是业务独立管理 |8+|是|
+|HKDF/SHA512 | AES/256 | AES/128/192/256
HMAC/8-1024
SM4/128 | 派生密钥是业务基于三段式得到密钥会话结果,业务可决定派生密钥是否由HUKS管理(即密钥不出TEE)亦或是业务独立管理 |8+|是|
+| PBKDF2/SHA256 | AES/192-256 | AES/128/192/256
HMAC/8-1024
SM4/128 | 派生密钥是业务基于三段式得到密钥会话结果,业务可决定派生密钥是否由HUKS管理(即密钥不出TEE)亦或是业务独立管理 |8+|是|
+| PBKDF2/SHA384 |AES/256 | AES/128/192/256
HMAC/8-1024
SM4/128 | 派生密钥是业务基于三段式得到密钥会话结果,业务可决定派生密钥是否由HUKS管理(即密钥不出TEE)亦或是业务独立管理 |8+|是|
+| PBKDF2/SHA512 | AES/256 | AES/128/192/256
HMAC/8-1024
SM4/128 | 派生密钥是业务基于三段式得到密钥会话结果,业务可决定派生密钥是否由HUKS管理(即密钥不出TEE)亦或是业务独立管理 |8+|是|
### 密钥证明
-| 算法 |API级别 | 备注 |
-| ------------------ | :-----: | ------------------------------------------------------------ |
-| RSA | 9+ | 仅支持Padding为PSS的密钥 |
-| ECC | 9+ | |
-| X25519 | 9+ | |
+| 算法 |API级别 | 备注 | 是否必选规格|
+| ------------------ | :-----: | ----------------------------- | :-------:|
+| RSA | 9+ | 支持Padding为 PSS 与 PKCS1_V1_5的密钥 |是|
+| ECC | 9+ | |是|
+| X25519 | 9+ | |是|
## 密钥材料格式
针对不同密码算法的密钥对、公钥、私钥,HUKS定义了一套密钥材料格式。
diff --git a/zh-cn/device-dev/subsystems/figures/nnrt_dev_flow.png b/zh-cn/device-dev/subsystems/figures/nnrt_dev_flow.png
index ab008db12eaae364195d7097b02af5a6f624c325..ca50b6ac1800e972a5a5f5dcb116771ac8730360 100644
Binary files a/zh-cn/device-dev/subsystems/figures/nnrt_dev_flow.png and b/zh-cn/device-dev/subsystems/figures/nnrt_dev_flow.png differ
diff --git a/zh-cn/device-dev/subsystems/subsys-ai-nnrt-guide.md b/zh-cn/device-dev/subsystems/subsys-ai-nnrt-guide.md
index d36d0755a47b526ff2210491de23201678b4c75c..02d436659491564874cd32956c6afbc33466369b 100644
--- a/zh-cn/device-dev/subsystems/subsys-ai-nnrt-guide.md
+++ b/zh-cn/device-dev/subsystems/subsys-ai-nnrt-guide.md
@@ -26,15 +26,15 @@ NNRt通过HDI接口实现与设备芯片的对接,由HDI接口实现跨进程

-整个架构主要分为三层,AI应用在应用层,AI推理框架和NNRt在系统层,设备服务在芯片层。AI应用如要使用专用加速芯片模型推理,需要经过AI推理框架和NNRt才能调用到底层专用加速芯片,而NNRt就是负责适配底层各种专用加速芯片,它开放了标准统一的设备接口,众多的第三方芯片设备都可以通过HDI接口接入OHOS。
+整个架构主要分为三层,AI应用在应用层,AI推理框架和NNRt在系统层,设备服务在芯片层。AI应用如要使用专用加速芯片模型推理,需要经过AI推理框架和NNRt才能调用到底层专用加速芯片,而NNRt就是负责适配底层各种专用加速芯片,它开放了标准统一的设备接口,众多的第三方芯片设备都可以通过HDI接口接入OpenHarmony。
程序运行时,AI应用、AI推理框架、NNRt都在用户进程中,底层设备服务在服务进程中,NNRt根据HDI接口实现了HDI Client,服务端也需要根据HDI接口实现HDI Service,使得两个进程间能够跨进程通信。
-## NNRt开发指导
+## 开发指导
### 场景介绍
-当需要将一款AI加速芯片接入NNRt的时候,可以参考下文,下文以rk3568芯片为例,展示rk3568 CPU如何通过HDI接口接入NNRt,并完成AI模型推理。
-> 依赖说明:该教程展示的rk3568 CPU接入NNRt并没有实际去写CPU的驱动,而是借用了Mindspore-Lite的CPU算子,故会依赖MindSpore-Lite的动态库以及头文件,实际开发时并不需要依赖MindSpore-Lite的任何库或者头文件。
+当需要将一款AI加速芯片接入NNRt的时候,可以参考下文。下文以RK3568芯片为例,展示RK3568 CPU如何通过HDI接口接入NNRt,并完成AI模型推理。
+> 依赖说明:该教程展示的RK3568 CPU接入NNRt并没有实际去写CPU的驱动,而是借用了MindSpore Lite的CPU算子,故会依赖MindSpore Lite的动态库以及头文件,实际开发时并不需要依赖MindSpore Lite的任何库或者头文件。
### 开发流程
专用加速芯片接入NNRt的整体流程如下:
@@ -45,242 +45,243 @@ NNRt通过HDI接口实现与设备芯片的对接,由HDI接口实现跨进程
### 开发步骤
开发者具体可通过以下步骤实现芯片对接NNRt:
-1. 开源社区下载OpenHarmony的代码,编译drivers_interface部件,生成HDI接口的头文件。
-
- 1. [下载源码](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/get-code/sourcecode-acquire.md)。
-
- 2. 编译接口IDL文件。
- ```shell
- ./build.sh --product-name productname –ccache --build-target drivers_interface_nnrt
- ```
- > productname为产品名称,此处为rk3568.
-
- 编译完成后,在```out/rk3568/gen/drivers/interface/nnrt```目录下生成HDI头文件,默认语言类型为C++;若需要生成C类型的头文件,请在编译之前使用如下命令对```drivers/interface/nnrt/v1_0/BUILD.gn```文件中的```language```配置项进行设置。
-
- ```shell
- language = "c"
- ```
-
- 生成头文件目录如下所示:
- ```text
- out/rk3568/gen/drivers/interface/nnrt
- └── v1_0
- ├── drivers_interface_nnrt__libnnrt_proxy_1.0_external_deps_temp.json
- ├── drivers_interface_nnrt__libnnrt_stub_1.0_external_deps_temp.json
- ├── innrt_device.h # 设备接口头文件
- ├── iprepared_model.h # 编译AI模型对象头文件
- ├── libnnrt_proxy_1.0__notice.d
- ├── libnnrt_stub_1.0__notice.d
- ├── model_types.cpp # AI模型结构定义实现文件
- ├── model_types.h # AI模型结构定义头文件
- ├── nnrt_device_driver.cpp # 设备驱动实现参考样例
- ├── nnrt_device_proxy.cpp
- ├── nnrt_device_proxy.h
- ├── nnrt_device_service.cpp # 设备服务端实现参考样例
- ├── nnrt_device_service.h # 设备服务端头文件
- ├── nnrt_device_stub.cpp
- ├── nnrt_device_stub.h
- ├── nnrt_types.cpp # 数据类型定义实现文件
- ├── nnrt_types.h # 数据类型定义头文件
- ├── node_attr_types.cpp # AI模型算子属性定义实现文件
- ├── node_attr_types.h # AI模型算子属性定义
- ├── prepared_model_proxy.cpp
- ├── prepared_model_proxy.h
- ├── prepared_model_service.cpp # 编译AI模型对象服务端实现参考样例
- ├── prepared_model_service.h # 编译AI模型对象服务端头文件
- ├── prepared_model_stub.cpp
- └── prepared_model_stub.h
- ```
-
-2. 实现HDI服务。
-
- 1. 在drivers/peripheral目录下新建开发目录,用于HDI服务开发,开发目录结构如下所示。
- ```text
- drivers/peripheral/nnrt
- ├── BUILD.gn # 代码编译脚本文件
- ├── bundle.json
- └── hdi_cpu_service # 自定义目录
- ├── BUILD.gn # 代码编译脚本文件
- ├── include
- │ ├── nnrt_device_service.h # 设备服务端头文件
- │ ├── node_functions.h # 非必须,由具体实现决定
- │ ├── node_registry.h # 非必须,由具体实现决定
- │ └── prepared_model_service.h # 编译AI模型对象服务端头文件
- └── src
- ├── nnrt_device_driver.cpp # 设备驱动实现文件
- ├── nnrt_device_service.cpp # 设备服务端实现文件
- ├── nnrt_device_stub.cpp # 非必须,由具体实现决定
- ├── node_attr_types.cpp # 非必须,由具体实现决定
- ├── node_functions.cpp # 非必须,由具体实现决定
- ├── node_registry.cpp # 非必须,由具体实现决定
- └── prepared_model_service.cpp # 编译AI模型对象服务端实现文件
- ```
-
- 2. 实现设备驱动,无特殊需求可直接使用步骤1中生成的nnrt_device_driver.cpp文件,否则根据具体驱动开发。
- 3. 实现服务接口,可参考nnrt_device_service.cpp和prepared_model_service.cpp实现文件,接口定义可以参考[NNRt的HDI接口定义](https://gitee.com/openharmony/drivers_interface/tree/master/nnrt)。
-
- 4. 编译驱动和服务的实现文件为共享库。
-
- 在```drivers/peripheral/nnrt/hdi_cpu_service/```下新建```BUILD.gn```文件,文件内容如下所示,相关参数配置内容可参考[Build教程](https://gitee.com/openharmony/build).
+#### 生成HDI头文件
+开源社区下载OpenHarmony的代码,编译drivers_interface部件,生成HDI接口的头文件。
- ```shell
- import("//build/ohos.gni")
- import("//drivers/hdf_core/adapter/uhdf2/uhdf.gni")
-
- ohos_shared_library("libnnrt_service_1.0") {
- include_dirs = []
- sources = [
- "src/nnrt_device_service.cpp",
- "src/prepared_model_service.cpp",
- "src/node_registry.cpp",
- "src/node_functions.cpp",
- "src/node_attr_types.cpp"
- ]
- public_deps = [ "//drivers/interface/nnrt/v1_0:nnrt_idl_headers" ]
- external_deps = [
- "hdf_core:libhdf_utils",
- "hiviewdfx_hilog_native:libhilog",
- "ipc:ipc_single",
- "c_utils:utils",
- ]
+1. [下载源码](../get-code/sourcecode-acquire.md)。
- install_images = [ chipset_base_dir ]
- subsystem_name = "hdf"
- part_name = "drivers_peripheral_nnrt"
- }
+2. 编译接口IDL文件。
+ ```shell
+ ./build.sh --product-name productname –ccache --build-target drivers_interface_nnrt
+ ```
+ > productname为产品名称,此处为RK3568。
- ohos_shared_library("libnnrt_driver") {
- include_dirs = []
- sources = [ "src/nnr_device_driver.cpp" ]
- deps = [ "//drivers/peripheral/nnrt/hdi_cpu_service:libnnrt_service_1.0" ]
-
- external_deps = [
- "hdf_core:libhdf_host",
- "hdf_core:libhdf_ipc_adapter",
- "hdf_core:libhdf_utils",
- "hiviewdfx_hilog_native:libhilog",
- "ipc:ipc_single",
- "c_utils:utils",
- ]
+ 编译完成后,在```out/rk3568/gen/drivers/interface/nnrt```目录下生成HDI头文件,默认语言类型为C++。若需要生成C类型的头文件,请在编译之前使用如下命令对```drivers/interface/nnrt/v1_0/BUILD.gn```文件中的```language```配置项进行设置。
- install_images = [ chipset_base_dir ]
- subsystem_name = "hdf"
- part_name = "drivers_peripheral_nnrt"
- }
+ ```shell
+ language = "c"
+ ```
+
+ 生成头文件目录如下所示:
+ ```text
+ out/rk3568/gen/drivers/interface/nnrt
+ └── v1_0
+ ├── drivers_interface_nnrt__libnnrt_proxy_1.0_external_deps_temp.json
+ ├── drivers_interface_nnrt__libnnrt_stub_1.0_external_deps_temp.json
+ ├── innrt_device.h # 设备接口头文件
+ ├── iprepared_model.h # 编译AI模型对象头文件
+ ├── libnnrt_proxy_1.0__notice.d
+ ├── libnnrt_stub_1.0__notice.d
+ ├── model_types.cpp # AI模型结构定义实现文件
+ ├── model_types.h # AI模型结构定义头文件
+ ├── nnrt_device_driver.cpp # 设备驱动实现参考样例
+ ├── nnrt_device_proxy.cpp
+ ├── nnrt_device_proxy.h
+ ├── nnrt_device_service.cpp # 设备服务端实现参考样例
+ ├── nnrt_device_service.h # 设备服务端头文件
+ ├── nnrt_device_stub.cpp
+ ├── nnrt_device_stub.h
+ ├── nnrt_types.cpp # 数据类型定义实现文件
+ ├── nnrt_types.h # 数据类型定义头文件
+ ├── node_attr_types.cpp # AI模型算子属性定义实现文件
+ ├── node_attr_types.h # AI模型算子属性定义
+ ├── prepared_model_proxy.cpp
+ ├── prepared_model_proxy.h
+ ├── prepared_model_service.cpp # 编译AI模型对象服务端实现参考样例
+ ├── prepared_model_service.h # 编译AI模型对象服务端头文件
+ ├── prepared_model_stub.cpp
+ └── prepared_model_stub.h
+ ```
+
+#### 实现HDI服务
+
+1. 在drivers/peripheral目录下新建开发目录,用于HDI服务开发,开发目录结构如下所示:
+ ```text
+ drivers/peripheral/nnrt
+ ├── BUILD.gn # 代码编译脚本文件
+ ├── bundle.json
+ └── hdi_cpu_service # 自定义目录
+ ├── BUILD.gn # 代码编译脚本文件
+ ├── include
+ │ ├── nnrt_device_service.h # 设备服务端头文件
+ │ ├── node_functions.h # 非必须,由具体实现决定
+ │ ├── node_registry.h # 非必须,由具体实现决定
+ │ └── prepared_model_service.h # 编译AI模型对象服务端头文件
+ └── src
+ ├── nnrt_device_driver.cpp # 设备驱动实现文件
+ ├── nnrt_device_service.cpp # 设备服务端实现文件
+ ├── nnrt_device_stub.cpp # 非必须,由具体实现决定
+ ├── node_attr_types.cpp # 非必须,由具体实现决定
+ ├── node_functions.cpp # 非必须,由具体实现决定
+ ├── node_registry.cpp # 非必须,由具体实现决定
+ └── prepared_model_service.cpp # 编译AI模型对象服务端实现文件
+ ```
+
+2. 实现设备驱动,无特殊需求可直接使用步骤1中生成的nnrt_device_driver.cpp文件,否则根据具体驱动开发。
+
+3. 实现服务接口,可参考nnrt_device_service.cpp和prepared_model_service.cpp实现文件,接口定义可以参考[NNRt的HDI接口定义](https://gitee.com/openharmony/drivers_interface/tree/master/nnrt)。
+
+4. 编译驱动和服务的实现文件为共享库。
+
+ 在```drivers/peripheral/nnrt/hdi_cpu_service/```下新建```BUILD.gn```文件,文件内容如下所示,相关参数配置内容可参考[Build教程](https://gitee.com/openharmony/build)。
+
+ ```shell
+ import("//build/ohos.gni")
+ import("//drivers/hdf_core/adapter/uhdf2/uhdf.gni")
+
+ ohos_shared_library("libnnrt_service_1.0") {
+ include_dirs = []
+ sources = [
+ "src/nnrt_device_service.cpp",
+ "src/prepared_model_service.cpp",
+ "src/node_registry.cpp",
+ "src/node_functions.cpp",
+ "src/node_attr_types.cpp"
+ ]
+ public_deps = [ "//drivers/interface/nnrt/v1_0:nnrt_idl_headers" ]
+ external_deps = [
+ "hdf_core:libhdf_utils",
+ "hiviewdfx_hilog_native:libhilog",
+ "ipc:ipc_single",
+ "c_utils:utils",
+ ]
+
+ install_images = [ chipset_base_dir ]
+ subsystem_name = "hdf"
+ part_name = "drivers_peripheral_nnrt"
+ }
+
+ ohos_shared_library("libnnrt_driver") {
+ include_dirs = []
+ sources = [ "src/nnr_device_driver.cpp" ]
+ deps = [ "//drivers/peripheral/nnrt/hdi_cpu_service:libnnrt_service_1.0" ]
+
+ external_deps = [
+ "hdf_core:libhdf_host",
+ "hdf_core:libhdf_ipc_adapter",
+ "hdf_core:libhdf_utils",
+ "hiviewdfx_hilog_native:libhilog",
+ "ipc:ipc_single",
+ "c_utils:utils",
+ ]
+
+ install_images = [ chipset_base_dir ]
+ subsystem_name = "hdf"
+ part_name = "drivers_peripheral_nnrt"
+ }
+
+ group("hdf_nnrt_service") {
+ deps = [
+ ":libnnrt_driver",
+ ":libnnrt_service_1.0",
+ ]
+ }
+ ```
- group("hdf_nnrt_service") {
+ 将```group("hdf_nnrt_service")```添加到```drivers/peripheral/nnrt/BUILD.gn```文件中,以便在更上目录层级就能引用。
+ ```shell
+ if (defined(ohos_lite)) {
+ group("nnrt_entry") {
+ deps = [ ]
+ }
+ } else {
+ group("nnrt_entry") {
deps = [
- ":libnnrt_driver",
- ":libnnrt_service_1.0",
+ "./hdi_cpu_service:hdf_nnrt_service",
]
}
- ```
+ }
+ ```
- 将```group("hdf_nnrt_service")```添加到```drivers/peripheral/nnrt/BUILD.gn```文件中,以便在更上目录层级就能引用。
- ```shell
- if (defined(ohos_lite)) {
- group("nnrt_entry") {
- deps = [ ]
- }
- } else {
- group("nnrt_entry") {
- deps = [
- "./hdi_cpu_service:hdf_nnrt_service",
+ 新建```drivers/peripheral/nnrt/bundle.json```用于定义新增的```drivers_peripheral_nnrt```部件。
+ ```json
+ {
+ "name": "drivers_peripheral_nnrt",
+ "description": "Neural network runtime device driver",
+ "version": "3.2",
+ "license": "Apache License 2.0",
+ "component": {
+ "name": "drivers_peripheral_nnrt",
+ "subsystem": "hdf",
+ "syscap": [""],
+ "adapter_system_type": ["standard"],
+ "rom": "1024KB",
+ "ram": "2048KB",
+ "deps": {
+ "components": [
+ "ipc",
+ "hdf_core",
+ "hiviewdfx_hilog_native",
+ "c_utils"
+ ],
+ "third_part": [
+ "bounds_checking_function"
+ ]
+ },
+ "build": {
+ "sub_component": [
+ "//drivers/peripheral/nnrt:nnrt_entry"
+ ],
+ "test": [
+ ],
+ "inner_kits": [
]
}
}
- ```
+ }
+ ```
- 新建```drivers/peripheral/nnrt/bundle.json```用于定义新增的```drivers_peripheral_nnrt```部件。
- ```json
- {
- "name": "drivers_peripheral_nnrt",
- "description": "Neural network runtime device driver",
- "version": "3.2",
- "license": "Apache License 2.0",
- "component": {
- "name": "drivers_peripheral_nnrt",
- "subsystem": "hdf",
- "syscap": [""],
- "adapter_system_type": ["standard"],
- "rom": "1024KB",
- "ram": "2048KB",
- "deps": {
- "components": [
- "ipc",
- "hdf_core",
- "hiviewdfx_hilog_native",
- "c_utils"
- ],
- "third_part": [
- "bounds_checking_function"
- ]
- },
- "build": {
- "sub_component": [
- "//drivers/peripheral/nnrt:nnrt_entry"
- ],
- "test": [
- ],
- "inner_kits": [
- ]
+#### 声明HDI服务
+
+ 在对应产品的uhdf hcs配置文件中声明用户态驱动与服务,例如针对RK3568服务需要在```vendor/hihope/rk3568/hdf_config/uhdf/device_info.hcs```文件中新增如下配置:
+ ```text
+ nnrt :: host {
+ hostName = "nnrt_host";
+ priority = 50;
+ uid = "";
+ gid = "";
+ caps = ["DAC_OVERRIDE", "DAC_READ_SEARCH"];
+ nnrt_device :: device {
+ device0 :: deviceNode {
+ policy = 2;
+ priority = 100;
+ moduleName = "libnnrt_driver.z.so";
+ serviceName = "nnrt_device_service";
}
- }
}
- ```
+ }
+ ```
+> 注意:修改hcs文件需要删除out目录重新编译,才能生效。
-3. 声明HDI服务。
-
- 在对应产品的uhdf hcs配置文件中声明用户态驱动与服务,例如,针对rk3568服务需要在```vendor/hihope/rk3568/hdf_config/uhdf/device_info.hcs```文件中新增如下配置:
- ```text
- nnrt :: host {
- hostName = "nnrt_host";
- priority = 50;
- uid = "";
- gid = "";
- caps = ["DAC_OVERRIDE", "DAC_READ_SEARCH"];
- nnrt_device :: device {
- device0 :: deviceNode {
- policy = 2;
- priority = 100;
- moduleName = "libnnrt_driver.z.so";
- serviceName = "nnrt_device_service";
- }
- }
- }
- ```
- > 注意:修改hcs文件需要删除out目录重新编译,才能生效。
+#### 配置host进程用户ID和组ID
+ 对于新增的nnrt_host进程的场景,需要配置对应进程的用户ID和组ID。 进程的用户ID在文件```base/startup/init/services/etc/passwd```中配置,进程的组ID在文件```base/startup/init/services/etc/group```中配置。
+ ```text
+ # 在base/startup/init/services/etc/passwd新增
+ nnrt_host:x:3311:3311:::/bin/false
-4. 配置host进程用户和组。
-
- 对于新增的nnrt_host进程的场景,需要配置对应进程的用户ID和组ID。 进程的用户ID在文件```base/startup/init/services/etc/passwd```中配置,进程的组ID在文件```base/startup/init/services/etc/group```中配置。
- ```text
- # 在base/startup/init/services/etc/passwd新增
- nnrt_host:x:3311:3311:::/bin/false
-
- # 在base/startup/init/services/etc/group新增
- nnrt_host:x:3311:
- ```
+ # 在base/startup/init/services/etc/group新增
+ nnrt_host:x:3311:
+ ```
-5. SeLinux配置。
+#### 配置SELinux
- OHOS已经开启SELinux特性,需要对新增的进程和服务配置相应的SELinux规则,用于运行host进程启动访问某些资源、发布HDI服务。
+OpenHarmony已经开启SELinux特性,需要对新增的进程和服务配置相应的SELinux规则,用于运行host进程启动访问某些资源、发布HDI服务。
- 1. 在```base/security/selinux/sepolicy/ohos_policy/drivers/adapter/vendor/type.te```文件中配置nnrt_host进程安全上下文,新增配置如下:
+1. 在```base/security/selinux/sepolicy/ohos_policy/drivers/adapter/vendor/type.te```文件中配置nnrt_host进程安全上下文,新增配置如下:
```text
# 新增配置
type nnrt_host, hdfdomain, domain;
```
> nnrt_host为上文配置的进程名称。
- 2. 由于SeLinux是白名单访问的权限机制,需要根据实际权限需求配置,将服务启动起来之后,通过以下dmesg命令可能查看avc告警,
- avc告警会给出缺少的权限,SeLinux的配置也可以参考[OpenHarmony SeLinux子系统的说明](https://gitee.com/openharmony/security_selinux/blob/master/README.md)。
+2. 由于SeLinux是白名单访问的权限机制,需要根据实际权限需求配置。将服务启动之后,可通过以下dmesg命令查看avc告警,
+avc告警会给出缺少的权限。SeLinux的配置也可以参考[OpenHarmony SeLinux子系统的说明](https://gitee.com/openharmony/security_selinux/blob/master/README.md)。
```shell
hdc_std shell
dmesg | grep nnrt
```
- 3. 新建nnrt_host.te配置文件,将权限配置到nnrt_host.te文件中。
+3. 新建nnrt_host.te配置文件,将权限配置到nnrt_host.te文件中。
```shell
# 创建nnrt文件夹
mkdir base/security/selinux/sepolicy/ohos_policy/drivers/peripheral/nnrt
@@ -292,7 +293,7 @@ NNRt通过HDI接口实现与设备芯片的对接,由HDI接口实现跨进程
touch base/security/selinux/sepolicy/ohos_policy/drivers/peripheral/nnrt/vendor/nnrt_host.te
```
- 4. 将所需的权限写入nnrt_host.te文件中,比如:
+4. 将所需的权限写入nnrt_host.te文件中,比如:
```text
allow nnrt_host dev_hdf_kevent:chr_file { ioctl };
allow nnrt_host hilog_param:file { read };
@@ -301,18 +302,32 @@ NNRt通过HDI接口实现与设备芯片的对接,由HDI接口实现跨进程
allow sh nnrt_host:fd { use };
```
-6. 删除out目录编译整个系统。
- ```shell
- # 删除out目录
- rm -rf ./out
-
- # 编译
- ./build.sh --product-name rk3568 –ccache --jobs=4
- ```
+#### 配置部件编译入口
+以RK3568产品为例:
+```shell
+vim //productdefine/common/inherit/chipset_common.json
+```
+在"subsystems", "subsystem":"hdf", "components"中添加:
+```shell
+{
+ "component": "drivers_peripheral_foo",
+ "features": []
+}
+```
+
+#### 删除out目录并编译整个系统
+```shell
+# 删除out目录
+rm -rf ./out
+
+# 编译
+./build.sh --product-name rk3568 –ccache --jobs=4
+```
### 调测验证
服务开发完成后,可以使用XTS用例验证基本功能和兼容性,开发者可通过以下步骤进行验证:
+
1. 编译NNRt的hats用例,用例在```test/xts/hats/hdf/nnrt```目录下。
```shell
# 进入hats目录
@@ -341,7 +356,7 @@ NNRt通过HDI接口实现与设备芯片的对接,由HDI接口实现跨进程
hdc_std shell "/data/local/tmp/HatsHdfNnrtFunctionTest"
```
- 所有hats用例执行成功,可以看到测试报告通过47个用例,说明服务通过了兼容性测试。
+ 所有hats用例执行成功,可以看到测试报告显示已通过47个用例,说明服务通过了兼容性测试。
```text
...
[----------] Global test environment tear-down
@@ -352,13 +367,16 @@ NNRt通过HDI接口实现与设备芯片的对接,由HDI接口实现跨进程
### 开发实例
完整Demo代码可以参考[社区实现](https://gitee.com/openharmony/ai_neural_network_runtime/tree/master/example/drivers)。
+
1. 拷贝```example/driver/nnrt```目录到```drivers/peripheral```路径下。
```shell
cp -r example/driver/nnrt drivers/peripheral
```
+
2. 补充bundle.json文件到```drivers/peripheral/nnrt```,bundle.json参考本教程上面的[开发步骤](#开发步骤)章节。
-3. 由于Demo依赖MindSpore-Lite CPU算子,故需要添加MindSpore-Lite依赖文件。
- - 下载MindSpore-Lite的头文件,[mindspore 1.5.0](https://ms-release.obs.cn-north-4.myhuaweicloud.com/1.5.0/MindSpore/lite/release/linux/mindspore-lite-1.5.0-linux-x64.tar.gz)。
+
+3. 由于Demo依赖MindSpore Lite CPU算子,故需要添加MindSpore Lite依赖文件。
+ - 下载MindSpore Lite的头文件,[MindSpore Lite 1.5.0](https://ms-release.obs.cn-north-4.myhuaweicloud.com/1.5.0/MindSpore/lite/release/linux/mindspore-lite-1.5.0-linux-x64.tar.gz)。
- 在```drivers/peripheral/nnrt```目录下新建mindspore目录,用于存放mindspore依赖库和头文件。
```shell
mkdir drivers/peripheral/nnrt/mindspore
@@ -372,7 +390,7 @@ NNRt通过HDI接口实现与设备芯片的对接,由HDI接口实现跨进程
# 拷贝mindspore schema文件
cp third_party/mindspore/mindspore/lite/schema/* drivers/peripheral/nnrt/hdi_cpu_service/include/mindspore_schema/
```
- - 编译MindSpore-Lite的动态库,并将动态库放到mindspore目录下。
+ - 编译MindSpore Lite的动态库,并将动态库放到mindspore目录下。
```shell
# 编译mindspore动态库
./build.sh --product-name rk3568 -ccaache --jobs 4 --build-target mindspore_lib
@@ -383,4 +401,4 @@ NNRt通过HDI接口实现与设备芯片的对接,由HDI接口实现跨进程
# 将mindspore动态拷贝到drivers/peripheral/nnrt/mindspore/mindspore。
cp out/rk3568/package/phone/system/lib/libmindspore-lite.huawei.so drivers/peripheral/nnrt/mindspore/mindspore/
```
- 4. 其他配置请参考本教程上面的[开发步骤](#开发步骤)章节。
\ No newline at end of file
+4. 其他配置请参考本教程上面的[开发步骤](#开发步骤)章节。
\ No newline at end of file
diff --git a/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-ability.md b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-ability.md
new file mode 100644
index 0000000000000000000000000000000000000000..cf031c5dc0cac65e5ad23d85e92c470cc50a718b
--- /dev/null
+++ b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-ability.md
@@ -0,0 +1,260 @@
+| 操作 | 旧版本 | 新版本 | d.ts文件 |
+| ---- | ------ | ------ | -------- |
+|新增|NA|模块名: ohos.app.ability.abilityManager
类名: AbilityState
方法 or 属性: FOCUS = 2|@ohos.app.ability.abilityManager.d.ts|
+|新增|NA|类名:appManager
方法or属性:function getRunningProcessInformation(): Promise\>;|@ohos.app.ability.appManager.d.ts|
+|新增|NA|类名:appManager
方法or属性:function getRunningProcessInformation(callback: AsyncCallback\>): void;|@ohos.app.ability.appManager.d.ts|
+|新增|NA|类名:RestartFlag
方法or属性:RESTART_WHEN_JS_CRASH = 0x0001|@ohos.app.ability.appRecovery.d.ts|
+|新增|NA|类名:RestartFlag
方法or属性:RESTART_WHEN_APP_FREEZE = 0x0002|@ohos.app.ability.appRecovery.d.ts|
+|新增|NA|模块名: ohos.app.ability.dialogRequest
类名: dialogRequest|@ohos.app.ability.dialogRequest.d.ts|
+|新增|NA|模块名: ohos.app.ability.dialogRequest
类名: RequestInfo|@ohos.app.ability.dialogRequest.d.ts|
+|新增|NA|模块名: ohos.app.ability.dialogRequest
类名: ResultCode|@ohos.app.ability.dialogRequest.d.ts|
+|新增|NA|模块名: ohos.app.ability.dialogRequest
类名: ResultCode
方法 or 属性: RESULT_OK = 0|@ohos.app.ability.dialogRequest.d.ts|
+|新增|NA|模块名: ohos.app.ability.dialogRequest
类名: ResultCode
方法 or 属性: RESULT_CANCEL = 1|@ohos.app.ability.dialogRequest.d.ts|
+|新增|NA|模块名: ohos.app.ability.dialogRequest
类名: RequestResult|@ohos.app.ability.dialogRequest.d.ts|
+|新增|NA|模块名: ohos.app.ability.dialogRequest
类名: RequestResult
方法 or 属性: result: ResultCode;|@ohos.app.ability.dialogRequest.d.ts|
+|新增|NA|模块名: ohos.app.ability.dialogRequest
类名: RequestCallback|@ohos.app.ability.dialogRequest.d.ts|
+|新增|NA|模块名: ohos.app.ability.dialogRequest
类名: RequestCallback
方法 or 属性: setRequestResult(result: RequestResult): void;|@ohos.app.ability.dialogRequest.d.ts|
+|新增|NA|模块名: ohos.app.ability.dialogRequest
类名: dialogRequest
方法 or 属性: function getRequestInfo(want: Want): RequestInfo;|@ohos.app.ability.dialogRequest.d.ts|
+|新增|NA|模块名: ohos.app.ability.dialogRequest
类名: dialogRequest
方法 or 属性: function getRequestCallback(want: Want): RequestCallback;|@ohos.app.ability.dialogRequest.d.ts|
+|新增|NA|类名:Want
方法or属性:parameters?: {[key: string]: Object};|@ohos.app.ability.Want.d.ts|
+|新增|NA|类名:CompleteData
方法or属性:extraInfo?: { [key: string]: Object };|@ohos.app.ability.wantAgent.d.ts|
+|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Params|@ohos.app.ability.wantConstant.d.ts|
+|新增|NA|类名:Params
方法or属性:|@ohos.app.ability.wantConstant.d.ts|
+|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Params
方法 or 属性:DLP_PARAMS_SANDBOX = "ohos.dlp.params.sandbox"|@ohos.app.ability.wantConstant.d.ts|
+|新增|NA|类名:Params
方法or属性:DLP_PARAMS_SANDBOX = "ohos.dlp.params.sandbox"|@ohos.app.ability.wantConstant.d.ts|
+|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Params
方法 or 属性:DLP_PARAMS_BUNDLE_NAME = "ohos.dlp.params.bundleName"|@ohos.app.ability.wantConstant.d.ts|
+|新增|NA|类名:Params
方法or属性:DLP_PARAMS_BUNDLE_NAME = "ohos.dlp.params.bundleName"|@ohos.app.ability.wantConstant.d.ts|
+|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Params
方法 or 属性:DLP_PARAMS_MODULE_NAME = "ohos.dlp.params.moduleName"|@ohos.app.ability.wantConstant.d.ts|
+|新增|NA|类名:Params
方法or属性:DLP_PARAMS_MODULE_NAME = "ohos.dlp.params.moduleName"|@ohos.app.ability.wantConstant.d.ts|
+|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Params
方法 or 属性:DLP_PARAMS_ABILITY_NAME = "ohos.dlp.params.abilityName"|@ohos.app.ability.wantConstant.d.ts|
+|新增|NA|类名:Params
方法or属性:DLP_PARAMS_ABILITY_NAME = "ohos.dlp.params.abilityName"|@ohos.app.ability.wantConstant.d.ts|
+|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Params
方法 or 属性:DLP_PARAMS_INDEX = "ohos.dlp.params.index"|@ohos.app.ability.wantConstant.d.ts|
+|新增|NA|类名:Params
方法or属性:DLP_PARAMS_INDEX = "ohos.dlp.params.index"|@ohos.app.ability.wantConstant.d.ts|
+|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Params
方法 or 属性:ABILITY_BACK_TO_OTHER_MISSION_STACK = "ability.params.backToOtherMissionStack"|@ohos.app.ability.wantConstant.d.ts|
+|新增|NA|类名:Params
方法or属性:ABILITY_BACK_TO_OTHER_MISSION_STACK = "ability.params.backToOtherMissionStack"|@ohos.app.ability.wantConstant.d.ts|
+|新增|NA|类名:continuationManager
方法or属性:function on(type: "deviceSelected", token: number, callback: Callback\>): void;|@ohos.continuation.continuationManager.d.ts|
+|新增|NA|类名:continuationManager
方法or属性:function off(type: "deviceSelected", token: number): void;|@ohos.continuation.continuationManager.d.ts|
+|新增|NA|类名:continuationManager
方法or属性:function on(type: "deviceUnselected", token: number, callback: Callback\>): void;|@ohos.continuation.continuationManager.d.ts|
+|新增|NA|类名:continuationManager
方法or属性:function off(type: "deviceUnselected", token: number): void;|@ohos.continuation.continuationManager.d.ts|
+|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator|AbilityDelegator.d.ts|
+|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: addAbilityMonitor(monitor: AbilityMonitor, callback: AsyncCallback\): void;|AbilityDelegator.d.ts|
+|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: addAbilityMonitor(monitor: AbilityMonitor): Promise\;|AbilityDelegator.d.ts|
+|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: addAbilityStageMonitor(monitor: AbilityStageMonitor, callback: AsyncCallback\): void;|AbilityDelegator.d.ts|
+|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: addAbilityStageMonitor(monitor: AbilityStageMonitor): Promise\;|AbilityDelegator.d.ts|
+|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: removeAbilityMonitor(monitor: AbilityMonitor, callback: AsyncCallback\): void;|AbilityDelegator.d.ts|
+|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: removeAbilityMonitor(monitor: AbilityMonitor): Promise\;|AbilityDelegator.d.ts|
+|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: removeAbilityStageMonitor(monitor: AbilityStageMonitor, callback: AsyncCallback\): void;|AbilityDelegator.d.ts|
+|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: removeAbilityStageMonitor(monitor: AbilityStageMonitor): Promise\;|AbilityDelegator.d.ts|
+|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: waitAbilityMonitor(monitor: AbilityMonitor, callback: AsyncCallback\): void;|AbilityDelegator.d.ts|
+|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: waitAbilityMonitor(monitor: AbilityMonitor, timeout: number, callback: AsyncCallback\): void;|AbilityDelegator.d.ts|
+|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: waitAbilityMonitor(monitor: AbilityMonitor, timeout?: number): Promise\;|AbilityDelegator.d.ts|
+|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: waitAbilityStageMonitor(monitor: AbilityStageMonitor, callback: AsyncCallback\): void;|AbilityDelegator.d.ts|
+|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: waitAbilityStageMonitor(monitor: AbilityStageMonitor, timeout: number, callback: AsyncCallback\): void;|AbilityDelegator.d.ts|
+|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: waitAbilityStageMonitor(monitor: AbilityStageMonitor, timeout?: number): Promise\;|AbilityDelegator.d.ts|
+|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: getAppContext(): Context;|AbilityDelegator.d.ts|
+|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: getAbilityState(ability: UIAbility): number;|AbilityDelegator.d.ts|
+|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: getCurrentTopAbility(callback: AsyncCallback\): void;|AbilityDelegator.d.ts|
+|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: getCurrentTopAbility(): Promise\|AbilityDelegator.d.ts|
+|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: startAbility(want: Want, callback: AsyncCallback\): void;|AbilityDelegator.d.ts|
+|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: startAbility(want: Want): Promise\;|AbilityDelegator.d.ts|
+|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: doAbilityForeground(ability: UIAbility, callback: AsyncCallback\): void;|AbilityDelegator.d.ts|
+|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: doAbilityForeground(ability: UIAbility): Promise\;|AbilityDelegator.d.ts|
+|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: doAbilityBackground(ability: UIAbility, callback: AsyncCallback\): void;|AbilityDelegator.d.ts|
+|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: doAbilityBackground(ability: UIAbility): Promise\;|AbilityDelegator.d.ts|
+|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: print(msg: string, callback: AsyncCallback\): void;|AbilityDelegator.d.ts|
+|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: print(msg: string): Promise\;|AbilityDelegator.d.ts|
+|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: printSync(msg: string): void;|AbilityDelegator.d.ts|
+|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: executeShellCommand(cmd: string, callback: AsyncCallback\): void;|AbilityDelegator.d.ts|
+|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: executeShellCommand(cmd: string, timeoutSecs: number, callback: AsyncCallback\): void;|AbilityDelegator.d.ts|
+|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: executeShellCommand(cmd: string, timeoutSecs?: number): Promise\;|AbilityDelegator.d.ts|
+|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: finishTest(msg: string, code: number, callback: AsyncCallback\): void;|AbilityDelegator.d.ts|
+|新增|NA|模块名: AbilityDelegator
类名: AbilityDelegator
方法 or 属性: finishTest(msg: string, code: number): Promise\;|AbilityDelegator.d.ts|
+|新增|NA|模块名: AbilityMonitor
类名: AbilityMonitor|AbilityMonitor.d.ts|
+|新增|NA|模块名: AbilityMonitor
类名: AbilityMonitor
方法 or 属性: abilityName: string;|AbilityMonitor.d.ts|
+|新增|NA|模块名: AbilityMonitor
类名: AbilityMonitor
方法 or 属性: moduleName?: string;|AbilityMonitor.d.ts|
+|新增|NA|模块名: AbilityMonitor
类名: AbilityMonitor
方法 or 属性: onAbilityCreate?:(ability: UIAbility) => void;|AbilityMonitor.d.ts|
+|新增|NA|模块名: AbilityMonitor
类名: AbilityMonitor
方法 or 属性: onAbilityForeground?:(ability: UIAbility) => void;|AbilityMonitor.d.ts|
+|新增|NA|模块名: AbilityMonitor
类名: AbilityMonitor
方法 or 属性: onAbilityBackground?:(ability: UIAbility) => void;|AbilityMonitor.d.ts|
+|新增|NA|模块名: AbilityMonitor
类名: AbilityMonitor
方法 or 属性: onAbilityDestroy?:(ability: UIAbility) => void;|AbilityMonitor.d.ts|
+|新增|NA|模块名: AbilityMonitor
类名: AbilityMonitor
方法 or 属性: onWindowStageCreate?:(ability: UIAbility) => void;|AbilityMonitor.d.ts|
+|新增|NA|模块名: AbilityMonitor
类名: AbilityMonitor
方法 or 属性: onWindowStageRestore?:(ability: UIAbility) => void;|AbilityMonitor.d.ts|
+|新增|NA|模块名: AbilityMonitor
类名: AbilityMonitor
方法 or 属性: onWindowStageDestroy?:(ability: UIAbility) => void;|AbilityMonitor.d.ts|
+|新增|NA|模块名: AbilityStageMonitor
类名: AbilityStageMonitor|AbilityStageMonitor.d.ts|
+|新增|NA|模块名: AbilityStageMonitor
类名: AbilityStageMonitor
方法 or 属性: moduleName: string;|AbilityStageMonitor.d.ts|
+|新增|NA|模块名: AbilityStageMonitor
类名: AbilityStageMonitor
方法 or 属性: srcEntrance: string;|AbilityStageMonitor.d.ts|
+|新增|NA|类名:ApplicationContext
方法or属性:getRunningProcessInformation(): Promise\>;|ApplicationContext.d.ts|
+|新增|NA|类名:ApplicationContext
方法or属性:getRunningProcessInformation(callback: AsyncCallback\>): void;|ApplicationContext.d.ts|
+|新增|NA|类名:ApplicationContext
方法or属性:killAllProcesses(): Promise\;|ApplicationContext.d.ts|
+|新增|NA|类名:ApplicationContext
方法or属性:killAllProcesses(callback: AsyncCallback\);|ApplicationContext.d.ts|
+|新增|NA|类名:Context
方法or属性:area: contextConstant.AreaMode;|Context.d.ts|
+|新增|NA|模块名: ProcessInformation
类名: ProcessInformation|ProcessInformation.d.ts|
+|新增|NA|模块名: ProcessInformation
类名: ProcessInformation
方法 or 属性: pid: number;|ProcessInformation.d.ts|
+|新增|NA|模块名: ProcessInformation
类名: ProcessInformation
方法 or 属性: uid: number;|ProcessInformation.d.ts|
+|新增|NA|模块名: ProcessInformation
类名: ProcessInformation
方法 or 属性: processName: string;|ProcessInformation.d.ts|
+|新增|NA|模块名: ProcessInformation
类名: ProcessInformation
方法 or 属性: bundleNames: Array\;|ProcessInformation.d.ts|
+|新增|NA|类名:ServiceExtensionContext
方法or属性:startRecentAbility(want: Want, callback: AsyncCallback\): void;|ServiceExtensionContext.d.ts|
+|新增|NA|类名:ServiceExtensionContext
方法or属性:startRecentAbility(want: Want, options: StartOptions, callback: AsyncCallback\): void;|ServiceExtensionContext.d.ts|
+|新增|NA|类名:ServiceExtensionContext
方法or属性:startRecentAbility(want: Want, options?: StartOptions): Promise\;|ServiceExtensionContext.d.ts|
+|新增|NA|类名:UIAbilityContext
方法or属性:startRecentAbility(want: Want, callback: AsyncCallback\): void;|UIAbilityContext.d.ts|
+|新增|NA|类名:UIAbilityContext
方法or属性:startRecentAbility(want: Want, options: StartOptions, callback: AsyncCallback\): void;|UIAbilityContext.d.ts|
+|新增|NA|类名:UIAbilityContext
方法or属性:startRecentAbility(want: Want, options?: StartOptions): Promise\;|UIAbilityContext.d.ts|
+|新增|NA|类名:UIAbilityContext
方法or属性:requestDialogService(want: Want, result: AsyncCallback\): void;|UIAbilityContext.d.ts|
+|新增|NA|类名:UIAbilityContext
方法or属性:requestDialogService(want: Want): Promise\;|UIAbilityContext.d.ts|
+|删除|模块名: ohos.ability.wantConstant
类名: Action
方法 or 属性:ACTION_APP_ACCOUNT_AUTH = "ohos.appAccount.action.auth"|NA|@ohos.ability.wantConstant.d.ts|
+|删除|模块名: ohos.ability.wantConstant
类名: Action
方法 or 属性:ACTION_MARKET_DOWNLOAD = "ohos.want.action.marketDownload"|NA|@ohos.ability.wantConstant.d.ts|
+|删除|模块名: ohos.ability.wantConstant
类名: Action
方法 or 属性:ACTION_MARKET_CROWDTEST = "ohos.want.action.marketCrowdTest"|NA|@ohos.ability.wantConstant.d.ts|
+|删除|模块名: ohos.ability.wantConstant
类名: Action
方法 or 属性:DLP_PARAMS_SANDBOX = "ohos.dlp.params.sandbox"|NA|@ohos.ability.wantConstant.d.ts|
+|删除|模块名: ohos.ability.wantConstant
类名: Action
方法 or 属性:DLP_PARAMS_BUNDLE_NAME = "ohos.dlp.params.bundleName"|NA|@ohos.ability.wantConstant.d.ts|
+|删除|模块名: ohos.ability.wantConstant
类名: Action
方法 or 属性:DLP_PARAMS_MODULE_NAME = "ohos.dlp.params.moduleName"|NA|@ohos.ability.wantConstant.d.ts|
+|删除|模块名: ohos.ability.wantConstant
类名: Action
方法 or 属性:DLP_PARAMS_ABILITY_NAME = "ohos.dlp.params.abilityName"|NA|@ohos.ability.wantConstant.d.ts|
+|删除|模块名: ohos.ability.wantConstant
类名: Action
方法 or 属性:DLP_PARAMS_INDEX = "ohos.dlp.params.index"|NA|@ohos.ability.wantConstant.d.ts|
+|删除|模块名:ohos.app.ability.appManager
类名:appManager
方法 or 属性:function getProcessRunningInformation(): Promise\>;|NA|@ohos.app.ability.appManager.d.ts|
+|删除|模块名:ohos.app.ability.appManager
类名:appManager
方法 or 属性:function getProcessRunningInformation(callback: AsyncCallback\>): void;|NA|@ohos.app.ability.appManager.d.ts|
+|删除|模块名:ohos.app.ability.appRecovery
类名:RestartFlag
方法 or 属性:CPP_CRASH_NO_RESTART = 0x0001|NA|@ohos.app.ability.appRecovery.d.ts|
+|删除|模块名:ohos.app.ability.appRecovery
类名:RestartFlag
方法 or 属性:JS_CRASH_NO_RESTART = 0x0002|NA|@ohos.app.ability.appRecovery.d.ts|
+|删除|模块名:ohos.app.ability.appRecovery
类名:RestartFlag
方法 or 属性:APP_FREEZE_NO_RESTART = 0x0004|NA|@ohos.app.ability.appRecovery.d.ts|
+|删除|模块名: ohos.app.ability.common
类名: AreaMode|NA|@ohos.app.ability.common.d.ts|
+|删除|模块名: ohos.app.ability.common
类名: AreaMode
方法 or 属性:EL1 = 0|NA|@ohos.app.ability.common.d.ts|
+|删除|模块名: ohos.app.ability.common
类名: AreaMode
方法 or 属性:EL2 = 1|NA|@ohos.app.ability.common.d.ts|
+|删除|模块名: ohos.app.ability.wantConstant
类名: Action|NA|@ohos.app.ability.wantConstant.d.ts|
+|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:ACTION_HOME = "ohos.want.action.home"|NA|@ohos.app.ability.wantConstant.d.ts|
+|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:ACTION_DIAL = "ohos.want.action.dial"|NA|@ohos.app.ability.wantConstant.d.ts|
+|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:ACTION_SEARCH = "ohos.want.action.search"|NA|@ohos.app.ability.wantConstant.d.ts|
+|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:ACTION_WIRELESS_SETTINGS = "ohos.settings.wireless"|NA|@ohos.app.ability.wantConstant.d.ts|
+|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:ACTION_MANAGE_APPLICATIONS_SETTINGS = "ohos.settings.manage.applications"|NA|@ohos.app.ability.wantConstant.d.ts|
+|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:ACTION_APPLICATION_DETAILS_SETTINGS = "ohos.settings.application.details"|NA|@ohos.app.ability.wantConstant.d.ts|
+|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:ACTION_SET_ALARM = "ohos.want.action.setAlarm"|NA|@ohos.app.ability.wantConstant.d.ts|
+|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:ACTION_SHOW_ALARMS = "ohos.want.action.showAlarms"|NA|@ohos.app.ability.wantConstant.d.ts|
+|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:ACTION_SNOOZE_ALARM = "ohos.want.action.snoozeAlarm"|NA|@ohos.app.ability.wantConstant.d.ts|
+|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:ACTION_DISMISS_ALARM = "ohos.want.action.dismissAlarm"|NA|@ohos.app.ability.wantConstant.d.ts|
+|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:ACTION_DISMISS_TIMER = "ohos.want.action.dismissTimer"|NA|@ohos.app.ability.wantConstant.d.ts|
+|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:ACTION_SEND_SMS = "ohos.want.action.sendSms"|NA|@ohos.app.ability.wantConstant.d.ts|
+|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:ACTION_CHOOSE = "ohos.want.action.choose"|NA|@ohos.app.ability.wantConstant.d.ts|
+|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:ACTION_IMAGE_CAPTURE = "ohos.want.action.imageCapture"|NA|@ohos.app.ability.wantConstant.d.ts|
+|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:ACTION_VIDEO_CAPTURE = "ohos.want.action.videoCapture"|NA|@ohos.app.ability.wantConstant.d.ts|
+|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:ACTION_SELECT = "ohos.want.action.select"|NA|@ohos.app.ability.wantConstant.d.ts|
+|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:ACTION_SEND_DATA = "ohos.want.action.sendData"|NA|@ohos.app.ability.wantConstant.d.ts|
+|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:ACTION_SEND_MULTIPLE_DATA = "ohos.want.action.sendMultipleData"|NA|@ohos.app.ability.wantConstant.d.ts|
+|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:ACTION_SCAN_MEDIA_FILE = "ohos.want.action.scanMediaFile"|NA|@ohos.app.ability.wantConstant.d.ts|
+|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:ACTION_VIEW_DATA = "ohos.want.action.viewData"|NA|@ohos.app.ability.wantConstant.d.ts|
+|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:ACTION_EDIT_DATA = "ohos.want.action.editData"|NA|@ohos.app.ability.wantConstant.d.ts|
+|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:INTENT_PARAMS_INTENT = "ability.want.params.INTENT"|NA|@ohos.app.ability.wantConstant.d.ts|
+|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:INTENT_PARAMS_TITLE = "ability.want.params.TITLE"|NA|@ohos.app.ability.wantConstant.d.ts|
+|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:ACTION_FILE_SELECT = "ohos.action.fileSelect"|NA|@ohos.app.ability.wantConstant.d.ts|
+|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:PARAMS_STREAM = "ability.params.stream"|NA|@ohos.app.ability.wantConstant.d.ts|
+|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:ACTION_APP_ACCOUNT_AUTH = "ohos.appAccount.action.auth"|NA|@ohos.app.ability.wantConstant.d.ts|
+|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:ACTION_MARKET_DOWNLOAD = "ohos.want.action.marketDownload"|NA|@ohos.app.ability.wantConstant.d.ts|
+|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:ACTION_MARKET_CROWDTEST = "ohos.want.action.marketCrowdTest"|NA|@ohos.app.ability.wantConstant.d.ts|
+|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:DLP_PARAMS_SANDBOX = "ohos.dlp.params.sandbox"|NA|@ohos.app.ability.wantConstant.d.ts|
+|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:DLP_PARAMS_BUNDLE_NAME = "ohos.dlp.params.bundleName"|NA|@ohos.app.ability.wantConstant.d.ts|
+|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:DLP_PARAMS_MODULE_NAME = "ohos.dlp.params.moduleName"|NA|@ohos.app.ability.wantConstant.d.ts|
+|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:DLP_PARAMS_ABILITY_NAME = "ohos.dlp.params.abilityName"|NA|@ohos.app.ability.wantConstant.d.ts|
+|删除|模块名: ohos.app.ability.wantConstant
类名: Action
方法 or 属性:DLP_PARAMS_INDEX = "ohos.dlp.params.index"|NA|@ohos.app.ability.wantConstant.d.ts|
+|删除|模块名: ohos.app.ability.wantConstant
类名: Entity|NA|@ohos.app.ability.wantConstant.d.ts|
+|删除|模块名: ohos.app.ability.wantConstant
类名: Entity
方法 or 属性:ENTITY_DEFAULT = "entity.system.default"|NA|@ohos.app.ability.wantConstant.d.ts|
+|删除|模块名: ohos.app.ability.wantConstant
类名: Entity
方法 or 属性:ENTITY_HOME = "entity.system.home"|NA|@ohos.app.ability.wantConstant.d.ts|
+|删除|模块名: ohos.app.ability.wantConstant
类名: Entity
方法 or 属性:ENTITY_VOICE = "entity.system.voice"|NA|@ohos.app.ability.wantConstant.d.ts|
+|删除|模块名: ohos.app.ability.wantConstant
类名: Entity
方法 or 属性:ENTITY_BROWSABLE = "entity.system.browsable"|NA|@ohos.app.ability.wantConstant.d.ts|
+|删除|模块名: ohos.app.ability.wantConstant
类名: Entity
方法 or 属性:ENTITY_VIDEO = "entity.system.video"|NA|@ohos.app.ability.wantConstant.d.ts|
+|删除|模块名: ohos.app.ability.wantConstant
类名: Flags
方法 or 属性:FLAG_ABILITY_FORWARD_RESULT = 0x00000004|NA|@ohos.app.ability.wantConstant.d.ts|
+|删除|模块名: ohos.app.ability.wantConstant
类名: Flags
方法 or 属性:FLAG_ABILITY_CONTINUATION = 0x00000008|NA|@ohos.app.ability.wantConstant.d.ts|
+|删除|模块名: ohos.app.ability.wantConstant
类名: Flags
方法 or 属性:FLAG_NOT_OHOS_COMPONENT = 0x00000010|NA|@ohos.app.ability.wantConstant.d.ts|
+|删除|模块名: ohos.app.ability.wantConstant
类名: Flags
方法 or 属性:FLAG_ABILITY_FORM_ENABLED = 0x00000020|NA|@ohos.app.ability.wantConstant.d.ts|
+|删除|模块名: ohos.app.ability.wantConstant
类名: Flags
方法 or 属性:FLAG_AUTH_PERSISTABLE_URI_PERMISSION = 0x00000040|NA|@ohos.app.ability.wantConstant.d.ts|
+|删除|模块名: ohos.app.ability.wantConstant
类名: Flags
方法 or 属性:FLAG_AUTH_PREFIX_URI_PERMISSION = 0x00000080|NA|@ohos.app.ability.wantConstant.d.ts|
+|删除|模块名: ohos.app.ability.wantConstant
类名: Flags
方法 or 属性:FLAG_ABILITYSLICE_MULTI_DEVICE = 0x00000100|NA|@ohos.app.ability.wantConstant.d.ts|
+|删除|模块名: ohos.app.ability.wantConstant
类名: Flags
方法 or 属性:FLAG_START_FOREGROUND_ABILITY = 0x00000200|NA|@ohos.app.ability.wantConstant.d.ts|
+|删除|模块名: ohos.app.ability.wantConstant
类名: Flags
方法 or 属性:FLAG_ABILITY_CONTINUATION_REVERSIBLE = 0x00000400|NA|@ohos.app.ability.wantConstant.d.ts|
+|删除|模块名: ohos.app.ability.wantConstant
类名: Flags
方法 or 属性:FLAG_INSTALL_WITH_BACKGROUND_MODE = 0x80000000|NA|@ohos.app.ability.wantConstant.d.ts|
+|删除|模块名: ohos.app.ability.wantConstant
类名: Flags
方法 or 属性:FLAG_ABILITY_CLEAR_MISSION = 0x00008000|NA|@ohos.app.ability.wantConstant.d.ts|
+|删除|模块名: ohos.app.ability.wantConstant
类名: Flags
方法 or 属性:FLAG_ABILITY_NEW_MISSION = 0x10000000|NA|@ohos.app.ability.wantConstant.d.ts|
+|删除|模块名: ohos.app.ability.wantConstant
类名: Flags
方法 or 属性:FLAG_ABILITY_MISSION_TOP = 0x20000000|NA|@ohos.app.ability.wantConstant.d.ts|
+|删除|模块名: ohos.app.form.formInfo
类名: FormInfo
方法 or 属性:relatedBundleName: string;|NA|@ohos.app.form.formInfo.d.ts|
+|删除|模块名:ohos.continuation.continuationManager
类名:continuationManager
方法 or 属性:function on(type: "deviceConnect", token: number, callback: Callback\>): void;|NA|@ohos.continuation.continuationManager.d.ts|
+|删除|模块名:ohos.continuation.continuationManager
类名:continuationManager
方法 or 属性:function off(type: "deviceConnect", token: number): void;|NA|@ohos.continuation.continuationManager.d.ts|
+|删除|模块名:ohos.continuation.continuationManager
类名:continuationManager
方法 or 属性:function on(type: "deviceDisconnect", token: number, callback: Callback\>): void;|NA|@ohos.continuation.continuationManager.d.ts|
+|删除|模块名:ohos.continuation.continuationManager
类名:continuationManager
方法 or 属性:function off(type: "deviceDisconnect", token: number): void;|NA|@ohos.continuation.continuationManager.d.ts|
+|删除|模块名: abilityDelegator
类名: AbilityDelegator|NA|abilityDelegator.d.ts|
+|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:addAbilityMonitor(monitor: AbilityMonitor, callback: AsyncCallback\): void;|NA|abilityDelegator.d.ts|
+|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:addAbilityMonitor(monitor: AbilityMonitor): Promise\;|NA|abilityDelegator.d.ts|
+|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:addAbilityStageMonitor(monitor: AbilityStageMonitor, callback: AsyncCallback\): void;|NA|abilityDelegator.d.ts|
+|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:addAbilityStageMonitor(monitor: AbilityStageMonitor): Promise\;|NA|abilityDelegator.d.ts|
+|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:removeAbilityMonitor(monitor: AbilityMonitor, callback: AsyncCallback\): void;|NA|abilityDelegator.d.ts|
+|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:removeAbilityMonitor(monitor: AbilityMonitor): Promise\;|NA|abilityDelegator.d.ts|
+|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:removeAbilityStageMonitor(monitor: AbilityStageMonitor, callback: AsyncCallback\): void;|NA|abilityDelegator.d.ts|
+|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:removeAbilityStageMonitor(monitor: AbilityStageMonitor): Promise\;|NA|abilityDelegator.d.ts|
+|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:waitAbilityMonitor(monitor: AbilityMonitor, callback: AsyncCallback\): void;|NA|abilityDelegator.d.ts|
+|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:waitAbilityMonitor(monitor: AbilityMonitor, timeout: number, callback: AsyncCallback\): void;|NA|abilityDelegator.d.ts|
+|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:waitAbilityMonitor(monitor: AbilityMonitor, timeout?: number): Promise\;|NA|abilityDelegator.d.ts|
+|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:waitAbilityStageMonitor(monitor: AbilityStageMonitor, callback: AsyncCallback\): void;|NA|abilityDelegator.d.ts|
+|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:waitAbilityStageMonitor(monitor: AbilityStageMonitor, timeout: number, callback: AsyncCallback\): void;|NA|abilityDelegator.d.ts|
+|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:waitAbilityStageMonitor(monitor: AbilityStageMonitor, timeout?: number): Promise\;|NA|abilityDelegator.d.ts|
+|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:getAppContext(): Context;|NA|abilityDelegator.d.ts|
+|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:getAbilityState(ability: UIAbility): number;|NA|abilityDelegator.d.ts|
+|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:getCurrentTopAbility(callback: AsyncCallback\): void;|NA|abilityDelegator.d.ts|
+|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:getCurrentTopAbility(): Promise\|NA|abilityDelegator.d.ts|
+|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:startAbility(want: Want, callback: AsyncCallback\): void;|NA|abilityDelegator.d.ts|
+|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:startAbility(want: Want): Promise\;|NA|abilityDelegator.d.ts|
+|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:doAbilityForeground(ability: UIAbility, callback: AsyncCallback\): void;|NA|abilityDelegator.d.ts|
+|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:doAbilityForeground(ability: UIAbility): Promise\;|NA|abilityDelegator.d.ts|
+|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:doAbilityBackground(ability: UIAbility, callback: AsyncCallback\): void;|NA|abilityDelegator.d.ts|
+|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:doAbilityBackground(ability: UIAbility): Promise\;|NA|abilityDelegator.d.ts|
+|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:print(msg: string, callback: AsyncCallback\): void;|NA|abilityDelegator.d.ts|
+|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:print(msg: string): Promise\;|NA|abilityDelegator.d.ts|
+|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:printSync(msg: string): void;|NA|abilityDelegator.d.ts|
+|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:executeShellCommand(cmd: string, callback: AsyncCallback\): void;|NA|abilityDelegator.d.ts|
+|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:executeShellCommand(cmd: string, timeoutSecs: number, callback: AsyncCallback\): void;|NA|abilityDelegator.d.ts|
+|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:executeShellCommand(cmd: string, timeoutSecs?: number): Promise\;|NA|abilityDelegator.d.ts|
+|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:finishTest(msg: string, code: number, callback: AsyncCallback\): void;|NA|abilityDelegator.d.ts|
+|删除|模块名: abilityDelegator
类名: AbilityDelegator
方法 or 属性:finishTest(msg: string, code: number): Promise\;|NA|abilityDelegator.d.ts|
+|删除|模块名: abilityMonitor
类名: AbilityMonitor|NA|abilityMonitor.d.ts|
+|删除|模块名: abilityMonitor
类名: AbilityMonitor
方法 or 属性:abilityName: string;|NA|abilityMonitor.d.ts|
+|删除|模块名: abilityMonitor
类名: AbilityMonitor
方法 or 属性:moduleName?: string;|NA|abilityMonitor.d.ts|
+|删除|模块名: abilityMonitor
类名: AbilityMonitor
方法 or 属性:onAbilityCreate?:(ability: UIAbility) => void;|NA|abilityMonitor.d.ts|
+|删除|模块名: abilityMonitor
类名: AbilityMonitor
方法 or 属性:onAbilityForeground?:(ability: UIAbility) => void;|NA|abilityMonitor.d.ts|
+|删除|模块名: abilityMonitor
类名: AbilityMonitor
方法 or 属性:onAbilityBackground?:(ability: UIAbility) => void;|NA|abilityMonitor.d.ts|
+|删除|模块名: abilityMonitor
类名: AbilityMonitor
方法 or 属性:onAbilityDestroy?:(ability: UIAbility) => void;|NA|abilityMonitor.d.ts|
+|删除|模块名: abilityMonitor
类名: AbilityMonitor
方法 or 属性:onWindowStageCreate?:(ability: UIAbility) => void;|NA|abilityMonitor.d.ts|
+|删除|模块名: abilityMonitor
类名: AbilityMonitor
方法 or 属性:onWindowStageRestore?:(ability: UIAbility) => void;|NA|abilityMonitor.d.ts|
+|删除|模块名: abilityMonitor
类名: AbilityMonitor
方法 or 属性:onWindowStageDestroy?:(ability: UIAbility) => void;|NA|abilityMonitor.d.ts|
+|删除|模块名: abilityStageMonitor
类名: AbilityStageMonitor|NA|abilityStageMonitor.d.ts|
+|删除|模块名: abilityStageMonitor
类名: AbilityStageMonitor
方法 or 属性:moduleName: string;|NA|abilityStageMonitor.d.ts|
+|删除|模块名: abilityStageMonitor
类名: AbilityStageMonitor
方法 or 属性:srcEntrance: string;|NA|abilityStageMonitor.d.ts|
+|删除|模块名:ApplicationContext
类名:ApplicationContext
方法 or 属性:getProcessRunningInformation(): Promise\>;|NA|ApplicationContext.d.ts|
+|删除|模块名:ApplicationContext
类名:ApplicationContext
方法 or 属性:getProcessRunningInformation(callback: AsyncCallback\>): void;|NA|ApplicationContext.d.ts|
+|删除|模块名:ApplicationContext
类名:ApplicationContext
方法 or 属性:killProcessesBySelf(): Promise\;|NA|ApplicationContext.d.ts|
+|删除|模块名:ApplicationContext
类名:ApplicationContext
方法 or 属性:killProcessesBySelf(callback: AsyncCallback\);|NA|ApplicationContext.d.ts|
+|删除|模块名: Context
类名: AreaMode|NA|Context.d.ts|
+|删除|模块名: Context
类名: AreaMode
方法 or 属性:EL1 = 0|NA|Context.d.ts|
+|删除|模块名: Context
类名: AreaMode
方法 or 属性:EL2 = 1|NA|Context.d.ts|
+|删除|模块名: ProcessRunningInformation
类名: ProcessRunningInformation|NA|ProcessRunningInformation.d.ts|
+|删除|模块名: ProcessRunningInformation
类名: ProcessRunningInformation
方法 or 属性:pid: number;|NA|ProcessRunningInformation.d.ts|
+|删除|模块名: ProcessRunningInformation
类名: ProcessRunningInformation
方法 or 属性:uid: number;|NA|ProcessRunningInformation.d.ts|
+|删除|模块名: ProcessRunningInformation
类名: ProcessRunningInformation
方法 or 属性:processName: string;|NA|ProcessRunningInformation.d.ts|
+|删除|模块名: ProcessRunningInformation
类名: ProcessRunningInformation
方法 or 属性:bundleNames: Array\;|NA|ProcessRunningInformation.d.ts|
+|访问级别有变化|类名:WindowMode
访问级别:公开API|类名:WindowMode
访问级别:系统API|@ohos.app.ability.AbilityConstant.d.ts|
+|访问级别有变化|类名:StartOptions
方法 or 属性:windowMode?: number;
访问级别:公开API|类名:StartOptions
方法 or 属性:windowMode?: number;
访问级别:系统API|@ohos.app.ability.StartOptions.d.ts|
+|访问级别有变化|类名:ServiceExtensionContext
方法 or 属性:startAbility(want: Want, callback: AsyncCallback\): void;
访问级别:系统API|类名:ServiceExtensionContext
方法 or 属性:startAbility(want: Want, callback: AsyncCallback\): void;
访问级别:公开API|ServiceExtensionContext.d.ts|
+|访问级别有变化|类名:ServiceExtensionContext
方法 or 属性:startAbility(want: Want, options: StartOptions, callback: AsyncCallback\): void;
访问级别:系统API|类名:ServiceExtensionContext
方法 or 属性:startAbility(want: Want, options: StartOptions, callback: AsyncCallback\): void;
访问级别:公开API|ServiceExtensionContext.d.ts|
+|访问级别有变化|类名:ServiceExtensionContext
方法 or 属性:startAbility(want: Want, options?: StartOptions): Promise\;
访问级别:系统API|类名:ServiceExtensionContext
方法 or 属性:startAbility(want: Want, options?: StartOptions): Promise\;
访问级别:公开API|ServiceExtensionContext.d.ts|
+|访问级别有变化|类名:ServiceExtensionContext
方法 or 属性:terminateSelf(callback: AsyncCallback\): void;
访问级别:系统API|类名:ServiceExtensionContext
方法 or 属性:terminateSelf(callback: AsyncCallback\): void;
访问级别:公开API|ServiceExtensionContext.d.ts|
+|访问级别有变化|类名:ServiceExtensionContext
方法 or 属性:terminateSelf(): Promise\;
访问级别:系统API|类名:ServiceExtensionContext
方法 or 属性:terminateSelf(): Promise\;
访问级别:公开API|ServiceExtensionContext.d.ts|
+|访问级别有变化|类名:UIAbilityContext
方法 or 属性:startAbilityByCall(want: Want): Promise\;
访问级别:系统API|类名:UIAbilityContext
方法 or 属性:startAbilityByCall(want: Want): Promise\;
访问级别:公开API|UIAbilityContext.d.ts|
+|权限有变化|类名:distributedMissionManager
方法 or 属性:function continueMission(parameter: ContinueDeviceInfo, options: ContinueCallback, callback: AsyncCallback\): void;
权限:ohos.permission.MANAGE_MISSIONS|类名:distributedMissionManager
方法 or 属性:function continueMission(parameter: ContinueDeviceInfo, options: ContinueCallback, callback: AsyncCallback\): void;
权限:ohos.permission.MANAGE_MISSIONS and ohos.permission.DISTRIBUTED_DATASYNC|@ohos.distributedMissionManager.d.ts|
+|权限有变化|类名:distributedMissionManager
方法 or 属性:function continueMission(parameter: ContinueDeviceInfo, options: ContinueCallback): Promise\;
权限:ohos.permission.MANAGE_MISSIONS|类名:distributedMissionManager
方法 or 属性:function continueMission(parameter: ContinueDeviceInfo, options: ContinueCallback): Promise\;
权限:ohos.permission.MANAGE_MISSIONS and ohos.permission.DISTRIBUTED_DATASYNC|@ohos.distributedMissionManager.d.ts|
+|新增(权限)|类名:continuationManager
方法 or 属性:function registerContinuation(callback: AsyncCallback\): void;
权限:N/A|类名:continuationManager
方法 or 属性:function registerContinuation(callback: AsyncCallback\): void;
权限:ohos.permission.DISTRIBUTED_DATASYNC|@ohos.continuation.continuationManager.d.ts|
+|新增(权限)|类名:continuationManager
方法 or 属性:function registerContinuation(options: ContinuationExtraParams, callback: AsyncCallback\): void;
权限:N/A|类名:continuationManager
方法 or 属性:function registerContinuation(options: ContinuationExtraParams, callback: AsyncCallback\): void;
权限:ohos.permission.DISTRIBUTED_DATASYNC|@ohos.continuation.continuationManager.d.ts|
+|新增(权限)|类名:continuationManager
方法 or 属性:function registerContinuation(options?: ContinuationExtraParams): Promise\;
权限:N/A|类名:continuationManager
方法 or 属性:function registerContinuation(options?: ContinuationExtraParams): Promise\;
权限:ohos.permission.DISTRIBUTED_DATASYNC|@ohos.continuation.continuationManager.d.ts|
+|新增(权限)|类名:continuationManager
方法 or 属性:function unregisterContinuation(token: number, callback: AsyncCallback\): void;
权限:N/A|类名:continuationManager
方法 or 属性:function unregisterContinuation(token: number, callback: AsyncCallback\): void;
权限:ohos.permission.DISTRIBUTED_DATASYNC|@ohos.continuation.continuationManager.d.ts|
+|新增(权限)|类名:continuationManager
方法 or 属性:function unregisterContinuation(token: number): Promise\;
权限:N/A|类名:continuationManager
方法 or 属性:function unregisterContinuation(token: number): Promise\;
权限:ohos.permission.DISTRIBUTED_DATASYNC|@ohos.continuation.continuationManager.d.ts|
+|新增(权限)|类名:continuationManager
方法 or 属性:function updateContinuationState(token: number, deviceId: string, status: DeviceConnectState, callback: AsyncCallback\): void;
权限:N/A|类名:continuationManager
方法 or 属性:function updateContinuationState(token: number, deviceId: string, status: DeviceConnectState, callback: AsyncCallback\): void;
权限:ohos.permission.DISTRIBUTED_DATASYNC|@ohos.continuation.continuationManager.d.ts|
+|新增(权限)|类名:continuationManager
方法 or 属性:function updateContinuationState(token: number, deviceId: string, status: DeviceConnectState): Promise\;
权限:N/A|类名:continuationManager
方法 or 属性:function updateContinuationState(token: number, deviceId: string, status: DeviceConnectState): Promise\;
权限:ohos.permission.DISTRIBUTED_DATASYNC|@ohos.continuation.continuationManager.d.ts|
+|新增(权限)|类名:continuationManager
方法 or 属性:function startContinuationDeviceManager(token: number, callback: AsyncCallback\): void;
权限:N/A|类名:continuationManager
方法 or 属性:function startContinuationDeviceManager(token: number, callback: AsyncCallback\): void;
权限:ohos.permission.DISTRIBUTED_DATASYNC|@ohos.continuation.continuationManager.d.ts|
+|新增(权限)|类名:continuationManager
方法 or 属性:function startContinuationDeviceManager(token: number, options: ContinuationExtraParams, callback: AsyncCallback\): void;
权限:N/A|类名:continuationManager
方法 or 属性:function startContinuationDeviceManager(token: number, options: ContinuationExtraParams, callback: AsyncCallback\): void;
权限:ohos.permission.DISTRIBUTED_DATASYNC|@ohos.continuation.continuationManager.d.ts|
+|新增(权限)|类名:continuationManager
方法 or 属性:function startContinuationDeviceManager(token: number, options?: ContinuationExtraParams): Promise\;
权限:N/A|类名:continuationManager
方法 or 属性:function startContinuationDeviceManager(token: number, options?: ContinuationExtraParams): Promise\;
权限:ohos.permission.DISTRIBUTED_DATASYNC|@ohos.continuation.continuationManager.d.ts|
+|函数有变化|类名:CalleeCallback
方法 or 属性:(indata: rpc.MessageParcel): rpc.Sequenceable;
|类名:CalleeCallback
方法 or 属性:(indata: rpc.MessageSequence): rpc.Parcelable;
|@ohos.app.ability.UIAbility.d.ts|
+|函数有变化|类名:Caller
方法 or 属性:call(method: string, data: rpc.Sequenceable): Promise\;
|类名:Caller
方法 or 属性:call(method: string, data: rpc.Parcelable): Promise\;
|@ohos.app.ability.UIAbility.d.ts|
+|函数有变化|类名:Caller
方法 or 属性:callWithResult(method: string, data: rpc.Sequenceable): Promise\;
|类名:Caller
方法 or 属性:callWithResult(method: string, data: rpc.Parcelable): Promise\;
|@ohos.app.ability.UIAbility.d.ts|
+|函数有变化|类名:UIAbility
方法 or 属性:onContinue(wantParam: { [key: string]: any }): AbilityConstant.OnContinueResult;
|类名:UIAbility
方法 or 属性:onContinue(wantParam: { [key: string]: Object }): AbilityConstant.OnContinueResult;
|@ohos.app.ability.UIAbility.d.ts|
+|函数有变化|类名:UIAbility
方法 or 属性:onSaveState(reason: AbilityConstant.StateType, wantParam : {[key: string]: any}): AbilityConstant.OnSaveResult;
|类名:UIAbility
方法 or 属性:onSaveState(reason: AbilityConstant.StateType, wantParam : {[key: string]: Object}): AbilityConstant.OnSaveResult;
|@ohos.app.ability.UIAbility.d.ts|
+|函数有变化|类名:FormExtensionAbility
方法 or 属性:onShareForm?(formId: string): { [key: string]: any };
|类名:FormExtensionAbility
方法 or 属性:onShareForm?(formId: string): { [key: string]: Object };
|@ohos.app.form.FormExtensionAbility.d.ts|
diff --git a/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-account.md b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-account.md
new file mode 100644
index 0000000000000000000000000000000000000000..1554a18346dd53b275e99792447aac4c481fd1b5
--- /dev/null
+++ b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-account.md
@@ -0,0 +1,55 @@
+| 操作 | 旧版本 | 新版本 | d.ts文件 |
+| ---- | ------ | ------ | -------- |
+|新增|NA|类名:Authenticator
方法or属性:checkAccountRemovable(name: string, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts|
+|新增|NA|类名:AccountManager
方法or属性:checkOsAccountConstraintEnabled(localId: number, constraint: string, callback: AsyncCallback\): void;|@ohos.account.osAccount.d.ts|
+|新增|NA|类名:AccountManager
方法or属性:checkOsAccountConstraintEnabled(localId: number, constraint: string): Promise\;|@ohos.account.osAccount.d.ts|
+|新增|NA|类名:AccountManager
方法or属性:getOsAccountLocalId(callback: AsyncCallback\): void;|@ohos.account.osAccount.d.ts|
+|新增|NA|类名:AccountManager
方法or属性:getOsAccountLocalId(): Promise\;|@ohos.account.osAccount.d.ts|
+|新增|NA|类名:AccountManager
方法or属性:getOsAccountLocalIdForUid(uid: number, callback: AsyncCallback\): void;|@ohos.account.osAccount.d.ts|
+|新增|NA|类名:AccountManager
方法or属性:getOsAccountLocalIdForUid(uid: number): Promise\;|@ohos.account.osAccount.d.ts|
+|新增|NA|类名:AccountManager
方法or属性:getOsAccountLocalIdForDomain(domainInfo: DomainAccountInfo, callback: AsyncCallback\): void;|@ohos.account.osAccount.d.ts|
+|新增|NA|类名:AccountManager
方法or属性:getOsAccountLocalIdForDomain(domainInfo: DomainAccountInfo): Promise\;|@ohos.account.osAccount.d.ts|
+|新增|NA|类名:AccountManager
方法or属性:getActivatedOsAccountLocalIds(callback: AsyncCallback\>): void;|@ohos.account.osAccount.d.ts|
+|新增|NA|类名:AccountManager
方法or属性:getActivatedOsAccountLocalIds(): Promise\>;|@ohos.account.osAccount.d.ts|
+|新增|NA|类名:AccountManager
方法or属性:getOsAccountLocalIdForSerialNumber(serialNumber: number, callback: AsyncCallback\): void;|@ohos.account.osAccount.d.ts|
+|新增|NA|类名:AccountManager
方法or属性:getOsAccountLocalIdForSerialNumber(serialNumber: number): Promise\;|@ohos.account.osAccount.d.ts|
+|新增|NA|类名:AccountManager
方法or属性:getSerialNumberForOsAccountLocalId(localId: number, callback: AsyncCallback\): void;|@ohos.account.osAccount.d.ts|
+|新增|NA|类名:AccountManager
方法or属性:getSerialNumberForOsAccountLocalId(localId: number): Promise\;|@ohos.account.osAccount.d.ts|
+|新增|NA|类名:AccountManager
方法or属性:getBundleIdForUid(uid: number, callback: AsyncCallback\): void;|@ohos.account.osAccount.d.ts|
+|新增|NA|类名:AccountManager
方法or属性:getBundleIdForUid(uid: number): Promise\;|@ohos.account.osAccount.d.ts|
+|新增|NA|类名:AccountManager
方法or属性:getOsAccountConstraintSourceTypes(localId: number, constraint: string, callback: AsyncCallback\>): void;|@ohos.account.osAccount.d.ts|
+|新增|NA|类名:AccountManager
方法or属性:getOsAccountConstraintSourceTypes(localId: number, constraint: string): Promise\>;|@ohos.account.osAccount.d.ts|
+|删除|模块名: ohos.account.appAccount
类名: OAuthTokenInfo
方法 or 属性:account?: AppAccountInfo;|NA|@ohos.account.appAccount.d.ts|
+|删除|模块名: ohos.account.appAccount
类名: AuthenticatorCallback
方法 or 属性:onRequestContinued?: () => void;|NA|@ohos.account.appAccount.d.ts|
+|删除|模块名:ohos.account.appAccount
类名:Authenticator
方法 or 属性:isAccountRemovable(name: string, callback: AuthCallback): void;|NA|@ohos.account.appAccount.d.ts|
+|删除|模块名:ohos.account.osAccount
类名:AccountManager
方法 or 属性:checkConstraintEnabled(localId: number, constraint: string, callback: AsyncCallback\): void;|NA|@ohos.account.osAccount.d.ts|
+|删除|模块名:ohos.account.osAccount
类名:AccountManager
方法 or 属性:checkConstraintEnabled(localId: number, constraint: string): Promise\;|NA|@ohos.account.osAccount.d.ts|
+|删除|模块名:ohos.account.osAccount
类名:AccountManager
方法 or 属性:queryOsAccountLocalIdFromProcess(callback: AsyncCallback\): void;|NA|@ohos.account.osAccount.d.ts|
+|删除|模块名:ohos.account.osAccount
类名:AccountManager
方法 or 属性:queryOsAccountLocalIdFromProcess(): Promise\;|NA|@ohos.account.osAccount.d.ts|
+|删除|模块名:ohos.account.osAccount
类名:AccountManager
方法 or 属性:queryOsAccountLocalIdFromUid(uid: number, callback: AsyncCallback\): void;|NA|@ohos.account.osAccount.d.ts|
+|删除|模块名:ohos.account.osAccount
类名:AccountManager
方法 or 属性:queryOsAccountLocalIdFromUid(uid: number): Promise\;|NA|@ohos.account.osAccount.d.ts|
+|删除|模块名:ohos.account.osAccount
类名:AccountManager
方法 or 属性:queryOsAccountLocalIdFromDomain(domainInfo: DomainAccountInfo, callback: AsyncCallback\): void;|NA|@ohos.account.osAccount.d.ts|
+|删除|模块名:ohos.account.osAccount
类名:AccountManager
方法 or 属性:queryOsAccountLocalIdFromDomain(domainInfo: DomainAccountInfo): Promise\;|NA|@ohos.account.osAccount.d.ts|
+|删除|模块名:ohos.account.osAccount
类名:AccountManager
方法 or 属性:getActivatedOsAccountIds(callback: AsyncCallback\>): void;|NA|@ohos.account.osAccount.d.ts|
+|删除|模块名:ohos.account.osAccount
类名:AccountManager
方法 or 属性:getActivatedOsAccountIds(): Promise\>;|NA|@ohos.account.osAccount.d.ts|
+|删除|模块名:ohos.account.osAccount
类名:AccountManager
方法 or 属性:queryOsAccountLocalIdBySerialNumber(serialNumber: number, callback: AsyncCallback\): void;|NA|@ohos.account.osAccount.d.ts|
+|删除|模块名:ohos.account.osAccount
类名:AccountManager
方法 or 属性:queryOsAccountLocalIdBySerialNumber(serialNumber: number): Promise\;|NA|@ohos.account.osAccount.d.ts|
+|删除|模块名:ohos.account.osAccount
类名:AccountManager
方法 or 属性:querySerialNumberByOsAccountLocalId(localId: number, callback: AsyncCallback\): void;|NA|@ohos.account.osAccount.d.ts|
+|删除|模块名:ohos.account.osAccount
类名:AccountManager
方法 or 属性:querySerialNumberByOsAccountLocalId(localId: number): Promise\;|NA|@ohos.account.osAccount.d.ts|
+|删除|模块名:ohos.account.osAccount
类名:AccountManager
方法 or 属性:getBundleIdFromUid(uid: number, callback: AsyncCallback\): void;|NA|@ohos.account.osAccount.d.ts|
+|删除|模块名:ohos.account.osAccount
类名:AccountManager
方法 or 属性:getBundleIdFromUid(uid: number): Promise\;|NA|@ohos.account.osAccount.d.ts|
+|删除|模块名:ohos.account.osAccount
类名:AccountManager
方法 or 属性:queryOsAccountConstraintSourceTypes(localId: number, constraint: string, callback: AsyncCallback\>): void;|NA|@ohos.account.osAccount.d.ts|
+|删除|模块名:ohos.account.osAccount
类名:AccountManager
方法 or 属性:queryOsAccountConstraintSourceTypes(localId: number, constraint: string): Promise\>;|NA|@ohos.account.osAccount.d.ts|
+|起始版本有变化|类名:ConstraintSourceType
方法 or 属性:CONSTRAINT_NOT_EXIST = 0
起始版本:N/A|类名:ConstraintSourceType
方法 or 属性:CONSTRAINT_NOT_EXIST = 0
起始版本:9|@ohos.account.osAccount.d.ts|
+|起始版本有变化|类名:ConstraintSourceType
方法 or 属性:CONSTRAINT_TYPE_BASE = 1
起始版本:N/A|类名:ConstraintSourceType
方法 or 属性:CONSTRAINT_TYPE_BASE = 1
起始版本:9|@ohos.account.osAccount.d.ts|
+|起始版本有变化|类名:ConstraintSourceType
方法 or 属性:CONSTRAINT_TYPE_DEVICE_OWNER = 2
起始版本:N/A|类名:ConstraintSourceType
方法 or 属性:CONSTRAINT_TYPE_DEVICE_OWNER = 2
起始版本:9|@ohos.account.osAccount.d.ts|
+|起始版本有变化|类名:ConstraintSourceType
方法 or 属性:CONSTRAINT_TYPE_PROFILE_OWNER = 3
起始版本:N/A|类名:ConstraintSourceType
方法 or 属性:CONSTRAINT_TYPE_PROFILE_OWNER = 3
起始版本:9|@ohos.account.osAccount.d.ts|
+|起始版本有变化|类名:ConstraintSourceTypeInfo
方法 or 属性:localId: number;
起始版本:N/A|类名:ConstraintSourceTypeInfo
方法 or 属性:localId: number;
起始版本:9|@ohos.account.osAccount.d.ts|
+|起始版本有变化|类名:ConstraintSourceTypeInfo
方法 or 属性:type: ConstraintSourceType;
起始版本:N/A|类名:ConstraintSourceTypeInfo
方法 or 属性:type: ConstraintSourceType;
起始版本:9|@ohos.account.osAccount.d.ts|
+|删除(权限)|类名:AccountManager
方法 or 属性:checkOsAccountVerified(callback: AsyncCallback\): void;
权限:ohos.permission.MANAGE_LOCAL_ACCOUNTS or ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS|类名:AccountManager
方法 or 属性:checkOsAccountVerified(callback: AsyncCallback\): void;
权限:N/A|@ohos.account.osAccount.d.ts|
+|新增(错误码)|NA|类名:PINAuth
方法 or 属性:unregisterInputer(): void;
错误码内容: 201|@ohos.account.osAccount.d.ts|
+|新增(错误码)|NA|类名:UserIdentityManager
方法 or 属性:closeSession(): void;
错误码内容: 201|@ohos.account.osAccount.d.ts|
+|函数有变化|类名:AccountManager
方法 or 属性:checkOsAccountVerified(localId?: number): Promise\;
|类名:AccountManager
方法 or 属性:checkOsAccountVerified(): Promise\;
|@ohos.account.osAccount.d.ts|
+|函数有变化|类名:AccountManager
方法 or 属性:checkOsAccountVerified(localId?: number): Promise\;
|类名:AccountManager
方法 or 属性:checkOsAccountVerified(localId: number): Promise\;
|@ohos.account.osAccount.d.ts|
+|函数有变化|类名:IInputData
方法 or 属性:onSetData: (pinSubType: AuthSubType, data: Uint8Array) => void;
|类名:IInputData
方法 or 属性:onSetData: (authSubType: AuthSubType, data: Uint8Array) => void;
|@ohos.account.osAccount.d.ts|
+|函数有变化|类名:IInputer
方法 or 属性:onGetData: (pinSubType: AuthSubType, callback: IInputData) => void;
|类名:IInputer
方法 or 属性:onGetData: (authSubType: AuthSubType, callback: IInputData) => void;
|@ohos.account.osAccount.d.ts|
diff --git a/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-application.md b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-application.md
new file mode 100644
index 0000000000000000000000000000000000000000..7a13694e554b8cba70412e6bfb14b1035a907607
--- /dev/null
+++ b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-application.md
@@ -0,0 +1,4 @@
+| 操作 | 旧版本 | 新版本 | d.ts文件 |
+| ---- | ------ | ------ | -------- |
+|新增(错误码)|NA|类名:call
方法 or 属性:function makeCall(phoneNumber: string, callback: AsyncCallback\): void;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts|
+|新增(错误码)|NA|类名:call
方法 or 属性:function makeCall(phoneNumber: string): Promise\;
错误码内容: 401, 8300001, 8300002, 8300003, 8300999|@ohos.telephony.call.d.ts|
diff --git a/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-arkui.md b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-arkui.md
new file mode 100644
index 0000000000000000000000000000000000000000..650285b5020b56c0fc8aaf4a992dbc32d5d0389d
--- /dev/null
+++ b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-arkui.md
@@ -0,0 +1,1231 @@
+| 操作 | 旧版本 | 新版本 | d.ts文件 |
+| ---- | ------ | ------ | -------- |
+|新增|NA|模块名: ohos.font
类名: font|@ohos.font.d.ts|
+|新增|NA|模块名: ohos.font
类名: FontOptions|@ohos.font.d.ts|
+|新增|NA|模块名: ohos.font
类名: FontOptions
方法 or 属性: familyName: string;|@ohos.font.d.ts|
+|新增|NA|模块名: ohos.font
类名: FontOptions
方法 or 属性: familySrc: string;|@ohos.font.d.ts|
+|新增|NA|模块名: ohos.font
类名: font
方法 or 属性: function registerFont(options: FontOptions):void;|@ohos.font.d.ts|
+|新增|NA|模块名: ohos.measure
类名: MeasureOptions|@ohos.measure.d.ts|
+|新增|NA|模块名: ohos.measure
类名: MeasureOptions
方法 or 属性: textContent: string;|@ohos.measure.d.ts|
+|新增|NA|模块名: ohos.measure
类名: MeasureOptions
方法 or 属性: fontSize?: number \| string \| Resource;|@ohos.measure.d.ts|
+|新增|NA|模块名: ohos.measure
类名: MeasureOptions
方法 or 属性: fontStyle?: number \| FontStyle;|@ohos.measure.d.ts|
+|新增|NA|模块名: ohos.measure
类名: MeasureOptions
方法 or 属性: fontWeight?: number \| string \| FontWeight;|@ohos.measure.d.ts|
+|新增|NA|模块名: ohos.measure
类名: MeasureOptions
方法 or 属性: fontFamily?: string \| Resource;|@ohos.measure.d.ts|
+|新增|NA|模块名: ohos.measure
类名: MeasureOptions
方法 or 属性: letterSpacing?: number \| string;|@ohos.measure.d.ts|
+|新增|NA|模块名: ohos.measure
类名: MeasureText|@ohos.measure.d.ts|
+|新增|NA|模块名: ohos.measure
类名: MeasureText
方法 or 属性: static measureText(options: MeasureOptions): number;|@ohos.measure.d.ts|
+|新增|NA|类名:PushParameterForStage
方法or属性:target: Want;|@ohos.pluginComponent.d.ts|
+|新增|NA|类名:RequestParameterForStage
方法or属性:target: Want;|@ohos.pluginComponent.d.ts|
+|新增|NA|类名:ShowToastOptions
方法or属性:message: string;|@ohos.prompt.d.ts|
+|新增|NA|类名:Button
方法or属性:text: string;|@ohos.prompt.d.ts|
+|新增|NA|类名:Button
方法or属性:color: string;|@ohos.prompt.d.ts|
+|新增|NA|类名:ShowDialogOptions
方法or属性:title?: string;|@ohos.prompt.d.ts|
+|新增|NA|类名:ShowDialogOptions
方法or属性:message?: string;|@ohos.prompt.d.ts|
+|新增|NA|类名:ActionMenuOptions
方法or属性:title?: string;|@ohos.prompt.d.ts|
+|新增|NA|类名:router
方法or属性:function showAlertBeforeBackPage(options: EnableAlertOptions):void;|@ohos.router.d.ts|
+|新增|NA|类名:router
方法or属性:function hideAlertBeforeBackPage():void;|@ohos.router.d.ts|
+|新增|NA|类名:CanvasRenderer
方法or属性:filter: string;|canvas.d.ts|
+|新增|NA|类名:CanvasRenderer
方法or属性:imageSmoothingQuality: ImageSmoothingQuality;|canvas.d.ts|
+|新增|NA|类名:CanvasRenderer
方法or属性:direction: CanvasDirection;|canvas.d.ts|
+|新增|NA|类名:global
方法or属性:declare const Concurrent: MethodDecorator;|common.d.ts|
+|新增|NA|类名:BorderImageOption
方法or属性:source?: string \| Resource \| LinearGradient,|common.d.ts|
+|新增|NA|模块名: common
类名: LinearGradient|common.d.ts|
+|新增|NA|类名:LinearGradient
方法or属性:|common.d.ts|
+|新增|NA|模块名: common
类名: LinearGradient
方法 or 属性:angle?: number \| string;|common.d.ts|
+|新增|NA|类名:LinearGradient
方法or属性:angle?: number \| string;|common.d.ts|
+|新增|NA|模块名: common
类名: LinearGradient
方法 or 属性:direction?: GradientDirection;|common.d.ts|
+|新增|NA|类名:LinearGradient
方法or属性:direction?: GradientDirection;|common.d.ts|
+|新增|NA|模块名: common
类名: LinearGradient
方法 or 属性:colors: Array\;|common.d.ts|
+|新增|NA|类名:LinearGradient
方法or属性:colors: Array\;|common.d.ts|
+|新增|NA|模块名: common
类名: LinearGradient
方法 or 属性:repeating?: boolean;|common.d.ts|
+|新增|NA|类名:LinearGradient
方法or属性:repeating?: boolean;|common.d.ts|
+|新增|NA|类名:ImageAttribute
方法or属性:draggable(value: boolean): ImageAttribute;|image.d.ts|
+|新增|NA|类名:ListAttribute
方法or属性:onScrollStart(event: () => void): ListAttribute;|list.d.ts|
+|新增|NA|类名:ListAttribute
方法or属性:onScrollFrameBegin(event: (offset: number, state: ScrollState) => { offsetRemain: number }): ListAttribute;|list.d.ts|
+|新增|NA|模块名: menu
类名: MenuInterface|menu.d.ts|
+|新增|NA|模块名: menu
类名: MenuInterface
方法 or 属性: (): MenuAttribute;|menu.d.ts|
+|新增|NA|模块名: menu
类名: MenuAttribute|menu.d.ts|
+|新增|NA|模块名: menu
类名: MenuAttribute
方法 or 属性: fontSize(value: Length): MenuAttribute;|menu.d.ts|
+|新增|NA|模块名: menu
类名: global
方法 or 属性: declare const Menu: MenuInterface;|menu.d.ts|
+|新增|NA|模块名: menu
类名: global
方法 or 属性: declare const MenuInstance: MenuAttribute;|menu.d.ts|
+|新增|NA|模块名: menu_item
类名: MenuItemOptions|menu_item.d.ts|
+|新增|NA|模块名: menu_item
类名: MenuItemOptions
方法 or 属性: startIcon?: ResourceStr;|menu_item.d.ts|
+|新增|NA|模块名: menu_item
类名: MenuItemOptions
方法 or 属性: content?: ResourceStr;|menu_item.d.ts|
+|新增|NA|模块名: menu_item
类名: MenuItemOptions
方法 or 属性: endIcon?: ResourceStr;|menu_item.d.ts|
+|新增|NA|模块名: menu_item
类名: MenuItemOptions
方法 or 属性: labelInfo?: ResourceStr;|menu_item.d.ts|
+|新增|NA|模块名: menu_item
类名: MenuItemOptions
方法 or 属性: builder?: CustomBuilder;|menu_item.d.ts|
+|新增|NA|模块名: menu_item
类名: MenuItemInterface|menu_item.d.ts|
+|新增|NA|模块名: menu_item
类名: MenuItemInterface
方法 or 属性: (value?: MenuItemOptions \| CustomBuilder): MenuItemAttribute;|menu_item.d.ts|
+|新增|NA|模块名: menu_item
类名: MenuItemAttribute|menu_item.d.ts|
+|新增|NA|模块名: menu_item
类名: MenuItemAttribute
方法 or 属性: selected(value: boolean): MenuItemAttribute;|menu_item.d.ts|
+|新增|NA|模块名: menu_item
类名: MenuItemAttribute
方法 or 属性: selectIcon(value: boolean): MenuItemAttribute;|menu_item.d.ts|
+|新增|NA|模块名: menu_item
类名: MenuItemAttribute
方法 or 属性: onChange(callback: (selected: boolean) => void): MenuItemAttribute;|menu_item.d.ts|
+|新增|NA|模块名: menu_item
类名: global
方法 or 属性: declare const MenuItem: MenuItemInterface;|menu_item.d.ts|
+|新增|NA|模块名: menu_item
类名: global
方法 or 属性: declare const MenuItemInstance: MenuItemAttribute;|menu_item.d.ts|
+|新增|NA|模块名: menu_item_group
类名: MenuItemGroupOptions|menu_item_group.d.ts|
+|新增|NA|模块名: menu_item_group
类名: MenuItemGroupOptions
方法 or 属性: header?: ResourceStr \| CustomBuilder;|menu_item_group.d.ts|
+|新增|NA|模块名: menu_item_group
类名: MenuItemGroupOptions
方法 or 属性: footer?: ResourceStr \| CustomBuilder;|menu_item_group.d.ts|
+|新增|NA|模块名: menu_item_group
类名: MenuItemGroupInterface|menu_item_group.d.ts|
+|新增|NA|模块名: menu_item_group
类名: MenuItemGroupInterface
方法 or 属性: (value?: MenuItemGroupOptions): MenuItemGroupAttribute;|menu_item_group.d.ts|
+|新增|NA|模块名: menu_item_group
类名: MenuItemGroupAttribute|menu_item_group.d.ts|
+|新增|NA|模块名: menu_item_group
类名: global
方法 or 属性: declare const MenuItemGroup: MenuItemGroupInterface;|menu_item_group.d.ts|
+|新增|NA|模块名: menu_item_group
类名: global
方法 or 属性: declare const MenuItemGroupInstance: MenuItemGroupAttribute;|menu_item_group.d.ts|
+|新增|NA|类名:PluginComponentTemplate
方法or属性:bundleName: string;|plugin_component.d.ts|
+|新增|NA|类名:ScrollAttribute
方法or属性:onScrollStart(event: () => void): ScrollAttribute;|scroll.d.ts|
+|新增|NA|类名:ScrollAttribute
方法or属性:onScrollStop(event: () => void): ScrollAttribute;|scroll.d.ts|
+|新增|NA|类名:ScrollAttribute
方法or属性:onScrollFrameBegin(event: (offset: number, state: ScrollState) => { offsetRemain: number }): ScrollAttribute;|scroll.d.ts|
+|新增|NA|类名:ShapeInterface
方法or属性:(value: PixelMap): ShapeAttribute;|shape.d.ts|
+|新增|NA|类名:ShapeInterface
方法or属性:(): ShapeAttribute;|shape.d.ts|
+|新增|NA|模块名: tab_content
类名: SubTabBarStyle|tab_content.d.ts|
+|新增|NA|类名:SubTabBarStyle
方法or属性:|tab_content.d.ts|
+|新增|NA|模块名: tab_content
类名: SubTabBarStyle
方法 or 属性:constructor(content: string \| Resource);|tab_content.d.ts|
+|新增|NA|类名:SubTabBarStyle
方法or属性:constructor(content: string \| Resource);|tab_content.d.ts|
+|新增|NA|模块名: tab_content
类名: BottomTabBarStyle|tab_content.d.ts|
+|新增|NA|类名:BottomTabBarStyle
方法or属性:|tab_content.d.ts|
+|新增|NA|模块名: tab_content
类名: BottomTabBarStyle
方法 or 属性:constructor(icon: string \| Resource, text: string \| Resource);|tab_content.d.ts|
+|新增|NA|类名:BottomTabBarStyle
方法or属性:constructor(icon: string \| Resource, text: string \| Resource);|tab_content.d.ts|
+|新增|NA|类名:TabContentAttribute
方法or属性:tabBar(value: SubTabBarStyle \| BottomTabBarStyle): TabContentAttribute;|tab_content.d.ts|
+|删除|模块名:ohos.pluginComponent
类名:PushParameterForStage
方法 or 属性:want: Want;|NA|@ohos.pluginComponent.d.ts|
+|删除|模块名:ohos.pluginComponent
类名:RequestParameterForStage
方法 or 属性:want: Want;|NA|@ohos.pluginComponent.d.ts|
+|删除|模块名:ohos.router
类名:router
方法 or 属性:function enableBackPageAlert(options: EnableAlertOptions):void;|NA|@ohos.router.d.ts|
+|删除|模块名:canvas
类名:CanvasRenderer
方法 or 属性:filter(filter: string): void;|NA|canvas.d.ts|
+|删除|模块名:canvas
类名:CanvasRenderer
方法 or 属性:imageSmoothingQuality(quality: ImageSmoothingQuality): void;|NA|canvas.d.ts|
+|删除|模块名:canvas
类名:CanvasRenderer
方法 or 属性:direction(direction: CanvasDirection): void;|NA|canvas.d.ts|
+|删除|模块名:list
类名:ListAttribute
方法 or 属性:onScrollBegin(event: (dx: number, dy: number) => { dxRemain: number, dyRemain: number }): ListAttribute;|NA|list.d.ts|
+|删除|模块名:plugin_component
类名:PluginComponentTemplate
方法 or 属性:ability: string;|NA|plugin_component.d.ts|
+|删除|模块名:scroll
类名:ScrollAttribute
方法 or 属性:onScrollBegin(event: (dx: number, dy: number) => { dxRemain: number, dyRemain: number }): ScrollAttribute;|NA|scroll.d.ts|
+|删除|模块名: web
类名: WebMessagePort|NA|web.d.ts|
+|删除|模块名: web
类名: WebMessagePort
方法 or 属性:constructor();|NA|web.d.ts|
+|删除|模块名: web
类名: WebMessagePort
方法 or 属性:close(): void;|NA|web.d.ts|
+|删除|模块名: web
类名: WebMessagePort
方法 or 属性:postMessageEvent(message: WebMessageEvent): void;|NA|web.d.ts|
+|删除|模块名: web
类名: WebMessagePort
方法 or 属性:onMessageEvent(callback: (result: string) => void): void;|NA|web.d.ts|
+|删除|模块名: web
类名: WebMessageEvent|NA|web.d.ts|
+|删除|模块名: web
类名: WebMessageEvent
方法 or 属性:constructor();|NA|web.d.ts|
+|删除|模块名: web
类名: WebMessageEvent
方法 or 属性:getData(): string;|NA|web.d.ts|
+|删除|模块名: web
类名: WebMessageEvent
方法 or 属性:setData(data: string): void;|NA|web.d.ts|
+|删除|模块名: web
类名: WebMessageEvent
方法 or 属性:getPorts(): Array\;|NA|web.d.ts|
+|删除|模块名: web
类名: WebMessageEvent
方法 or 属性:setPorts(ports: Array\): void;|NA|web.d.ts|
+|删除|模块名: web
类名: HitTestValue|NA|web.d.ts|
+|删除|模块名: web
类名: HitTestValue
方法 or 属性:constructor();|NA|web.d.ts|
+|删除|模块名: web
类名: HitTestValue
方法 or 属性:getType(): HitTestType;|NA|web.d.ts|
+|删除|模块名: web
类名: HitTestValue
方法 or 属性:getExtra(): string;|NA|web.d.ts|
+|删除|模块名: web
类名: WebCookie
方法 or 属性:isCookieAllowed(): boolean;|NA|web.d.ts|
+|删除|模块名: web
类名: WebCookie
方法 or 属性:isThirdPartyCookieAllowed(): boolean;|NA|web.d.ts|
+|删除|模块名: web
类名: WebCookie
方法 or 属性:isFileURICookieAllowed(): boolean;|NA|web.d.ts|
+|删除|模块名: web
类名: WebCookie
方法 or 属性:putAcceptCookieEnabled(accept: boolean): void;|NA|web.d.ts|
+|删除|模块名: web
类名: WebCookie
方法 or 属性:putAcceptThirdPartyCookieEnabled(accept: boolean): void;|NA|web.d.ts|
+|删除|模块名: web
类名: WebCookie
方法 or 属性:putAcceptFileURICookieEnabled(accept: boolean): void;|NA|web.d.ts|
+|删除|模块名: web
类名: WebCookie
方法 or 属性:setCookie(url: string, value: string): boolean;|NA|web.d.ts|
+|删除|模块名: web
类名: WebCookie
方法 or 属性:saveCookieSync(): boolean;|NA|web.d.ts|
+|删除|模块名: web
类名: WebCookie
方法 or 属性:getCookie(url: string): string;|NA|web.d.ts|
+|删除|模块名: web
类名: WebCookie
方法 or 属性:existCookie(): boolean;|NA|web.d.ts|
+|删除|模块名: web
类名: WebCookie
方法 or 属性:deleteEntireCookie(): void;|NA|web.d.ts|
+|删除|模块名: web
类名: WebCookie
方法 or 属性:deleteSessionCookie(): void;|NA|web.d.ts|
+|删除|模块名: web
类名: WebCookie
方法 or 属性:deleteExpiredCookie(): void;|NA|web.d.ts|
+|删除|模块名: web
类名: WebController
方法 or 属性:zoomIn(): boolean;|NA|web.d.ts|
+|删除|模块名: web
类名: WebController
方法 or 属性:zoomOut(): boolean;|NA|web.d.ts|
+|删除|模块名: web
类名: WebController
方法 or 属性:createWebMessagePorts(): Array\;|NA|web.d.ts|
+|删除|模块名: web
类名: WebController
方法 or 属性:postMessage(options: { message: WebMessageEvent, uri: string}): void;|NA|web.d.ts|
+|删除|模块名: web
类名: WebController
方法 or 属性:getHitTestValue(): HitTestValue;|NA|web.d.ts|
+|删除|模块名: web
类名: WebController
方法 or 属性:getWebId(): number;|NA|web.d.ts|
+|删除|模块名: web
类名: WebController
方法 or 属性:getDefaultUserAgent(): string;|NA|web.d.ts|
+|删除|模块名: web
类名: WebController
方法 or 属性:getTitle(): string;|NA|web.d.ts|
+|删除|模块名: web
类名: WebController
方法 or 属性:getPageHeight(): number;|NA|web.d.ts|
+|删除|模块名: web
类名: WebController
方法 or 属性:backOrForward(step: number): void;|NA|web.d.ts|
+|删除|模块名: web
类名: WebController
方法 or 属性:searchAllAsync(searchString: string): void;|NA|web.d.ts|
+|删除|模块名: web
类名: WebController
方法 or 属性:clearMatches(): void;|NA|web.d.ts|
+|删除|模块名: web
类名: WebController
方法 or 属性:searchNext(forward: boolean): void;|NA|web.d.ts|
+|删除|模块名: web
类名: WebController
方法 or 属性:clearSslCache(): void;|NA|web.d.ts|
+|删除|模块名: web
类名: WebController
方法 or 属性:clearClientAuthenticationCache(): void;|NA|web.d.ts|
+|删除|模块名: web
类名: WebController
方法 or 属性:getUrl(): string;|NA|web.d.ts|
+|删除|模块名: web
类名: WebAttribute
方法 or 属性:webDebuggingAccess(webDebuggingAccess: boolean): WebAttribute;|NA|web.d.ts|
+|访问级别有变化|类名:curves
方法 or 属性:function springMotion(response?: number, dampingFraction?: number, overlapDuration?: number): ICurve;
访问级别:系统API|类名:curves
方法 or 属性:function springMotion(response?: number, dampingFraction?: number, overlapDuration?: number): ICurve;
访问级别:公开API|@ohos.curves.d.ts|
+|访问级别有变化|类名:curves
方法 or 属性:function responsiveSpringMotion(response?: number, dampingFraction?: number, overlapDuration?: number): ICurve;
访问级别:系统API|类名:curves
方法 or 属性:function responsiveSpringMotion(response?: number, dampingFraction?: number, overlapDuration?: number): ICurve;
访问级别:公开API|@ohos.curves.d.ts|
+|访问级别有变化|类名:global
方法 or 属性:declare const Animator: AnimatorInterface;
访问级别:公开API|类名:global
方法 or 属性:declare const Animator: AnimatorInterface;
访问级别:系统API|animator.d.ts|
+|访问级别有变化|类名:global
方法 or 属性:declare const AnimatorInstance: AnimatorAttribute;
访问级别:公开API|类名:global
方法 or 属性:declare const AnimatorInstance: AnimatorAttribute;
访问级别:系统API|animator.d.ts|
+|访问级别有变化|类名:global
方法 or 属性:declare const Calendar: CalendarInterface;
访问级别:公开API|类名:global
方法 or 属性:declare const Calendar: CalendarInterface;
访问级别:系统API|calendar.d.ts|
+|访问级别有变化|类名:global
方法 or 属性:declare const CalendarInstance: CalendarAttribute;
访问级别:公开API|类名:global
方法 or 属性:declare const CalendarInstance: CalendarAttribute;
访问级别:系统API|calendar.d.ts|
+|访问级别有变化|类名:
方法 or 属性:function postCardAction(component: Object, action: Object): void;
访问级别:系统API|类名:
方法 or 属性:function postCardAction(component: Object, action: Object): void;
访问级别:公开API|common.d.ts|
+|访问级别有变化|类名:BlurStyle
方法 or 属性:Thin
访问级别:系统API|类名:BlurStyle
方法 or 属性:Thin
访问级别:公开API|common.d.ts|
+|访问级别有变化|类名:BlurStyle
方法 or 属性:Regular
访问级别:系统API|类名:BlurStyle
方法 or 属性:Regular
访问级别:公开API|common.d.ts|
+|访问级别有变化|类名:BlurStyle
方法 or 属性:Thick
访问级别:系统API|类名:BlurStyle
方法 or 属性:Thick
访问级别:公开API|common.d.ts|
+|访问级别有变化|类名:CommonMethod
方法 or 属性:backgroundBlurStyle(value: BlurStyle): T;
访问级别:系统API|类名:CommonMethod
方法 or 属性:backgroundBlurStyle(value: BlurStyle): T;
访问级别:公开API|common.d.ts|
+|访问级别有变化|类名:global
方法 or 属性:declare const FormComponent: FormComponentInterface;
访问级别:公开API|类名:global
方法 or 属性:declare const FormComponent: FormComponentInterface;
访问级别:系统API|form_component.d.ts|
+|访问级别有变化|类名:global
方法 or 属性:declare const FormComponentInstance: FormComponentAttribute;
访问级别:公开API|类名:global
方法 or 属性:declare const FormComponentInstance: FormComponentAttribute;
访问级别:系统API|form_component.d.ts|
+|访问级别有变化|类名:global
方法 or 属性:declare const PluginComponent: PluginComponentInterface;
访问级别:公开API|类名:global
方法 or 属性:declare const PluginComponent: PluginComponentInterface;
访问级别:系统API|plugin_component.d.ts|
+|访问级别有变化|类名:global
方法 or 属性:declare const PluginComponentInstance: PluginComponentAttribute;
访问级别:公开API|类名:global
方法 or 属性:declare const PluginComponentInstance: PluginComponentAttribute;
访问级别:系统API|plugin_component.d.ts|
+|访问级别有变化|类名:global
方法 or 属性:declare const RemoteWindow: RemoteWindowInterface;
访问级别:公开API|类名:global
方法 or 属性:declare const RemoteWindow: RemoteWindowInterface;
访问级别:系统API|remote_window.d.ts|
+|访问级别有变化|类名:global
方法 or 属性:declare const RemoteWindowInstance: RemoteWindowAttribute;
访问级别:公开API|类名:global
方法 or 属性:declare const RemoteWindowInstance: RemoteWindowAttribute;
访问级别:系统API|remote_window.d.ts|
+|废弃版本有变化|类名:router
方法 or 属性:function disableAlertBeforeBackPage():void;
废弃版本:N/A|类名:router
方法 or 属性:function disableAlertBeforeBackPage():void;
废弃版本:9
代替接口:ohos.router.router|@ohos.router.d.ts|
+|废弃版本有变化|类名:GridItemAttribute
方法 or 属性:forceRebuild(value: boolean): GridItemAttribute;
废弃版本:N/A|类名:GridItemAttribute
方法 or 属性:forceRebuild(value: boolean): GridItemAttribute;
废弃版本:9
代替接口:N/A|gridItem.d.ts|
+|废弃版本有变化|类名:global
方法 or 属性:declare const GridContainer: GridContainerInterface
废弃版本:N/A|类名:global
方法 or 属性:declare const GridContainer: GridContainerInterface
废弃版本:9
代替接口:grid_col/|grid_container.d.ts|
+|废弃版本有变化|类名:global
方法 or 属性:declare const GridContainerInstance: GridContainerAttribute;
废弃版本:N/A|类名:global
方法 or 属性:declare const GridContainerInstance: GridContainerAttribute;
废弃版本:9
代替接口:grid_col/|grid_container.d.ts|
+|废弃版本有变化|类名:ScrollAttribute
方法 or 属性:onScrollEnd(event: () => void): ScrollAttribute;
废弃版本:N/A|类名:ScrollAttribute
方法 or 属性:onScrollEnd(event: () => void): ScrollAttribute;
废弃版本:9
代替接口:scroll/Scroll|scroll.d.ts|
+|起始版本有变化|类名:CanvasPattern
起始版本:8|类名:CanvasPattern
起始版本:9|canvaspattern.d.ts|
+|起始版本有变化|类名:CanvasPattern
方法 or 属性:setTransform(transform?: Matrix2D): void;
起始版本:8|类名:CanvasPattern
方法 or 属性:setTransform(transform?: Matrix2D): void;
起始版本:9|canvaspattern.d.ts|
+|起始版本有变化|类名:Matrix2D
起始版本:8|类名:Matrix2D
起始版本:9|canvaspattern.d.ts|
+|起始版本有变化|类名:Matrix2D
方法 or 属性:scaleX?: number;
起始版本:8|类名:Matrix2D
方法 or 属性:scaleX?: number;
起始版本:9|canvaspattern.d.ts|
+|起始版本有变化|类名:Matrix2D
方法 or 属性:rotateY?: number;
起始版本:8|类名:Matrix2D
方法 or 属性:rotateY?: number;
起始版本:9|canvaspattern.d.ts|
+|起始版本有变化|类名:Matrix2D
方法 or 属性:rotateX?: number;
起始版本:8|类名:Matrix2D
方法 or 属性:rotateX?: number;
起始版本:9|canvaspattern.d.ts|
+|起始版本有变化|类名:Matrix2D
方法 or 属性:scaleY?: number;
起始版本:8|类名:Matrix2D
方法 or 属性:scaleY?: number;
起始版本:9|canvaspattern.d.ts|
+|起始版本有变化|类名:Matrix2D
方法 or 属性:translateX?: number;
起始版本:8|类名:Matrix2D
方法 or 属性:translateX?: number;
起始版本:9|canvaspattern.d.ts|
+|起始版本有变化|类名:Matrix2D
方法 or 属性:translateY?: number;
起始版本:8|类名:Matrix2D
方法 or 属性:translateY?: number;
起始版本:9|canvaspattern.d.ts|
+|起始版本有变化|类名:Matrix2D
方法 or 属性:identity(): Matrix2D;
起始版本:8|类名:Matrix2D
方法 or 属性:identity(): Matrix2D;
起始版本:9|canvaspattern.d.ts|
+|起始版本有变化|类名:Matrix2D
方法 or 属性:invert(): Matrix2D;
起始版本:8|类名:Matrix2D
方法 or 属性:invert(): Matrix2D;
起始版本:9|canvaspattern.d.ts|
+|起始版本有变化|类名:Matrix2D
方法 or 属性:multiply(other?: Matrix2D): Matrix2D;
起始版本:8|类名:Matrix2D
方法 or 属性:multiply(other?: Matrix2D): Matrix2D;
起始版本:9|canvaspattern.d.ts|
+|起始版本有变化|类名:Matrix2D
方法 or 属性:rotate(rx?: number, ry?: number): Matrix2D;
起始版本:8|类名:Matrix2D
方法 or 属性:rotate(rx?: number, ry?: number): Matrix2D;
起始版本:9|canvaspattern.d.ts|
+|起始版本有变化|类名:Matrix2D
方法 or 属性:translate(tx?: number, ty?: number): Matrix2D;
起始版本:8|类名:Matrix2D
方法 or 属性:translate(tx?: number, ty?: number): Matrix2D;
起始版本:9|canvaspattern.d.ts|
+|起始版本有变化|类名:Matrix2D
方法 or 属性:scale(sx?: number, sy?: number): Matrix2D;
起始版本:8|类名:Matrix2D
方法 or 属性:scale(sx?: number, sy?: number): Matrix2D;
起始版本:9|canvaspattern.d.ts|
+|起始版本有变化|类名:Matrix2D
方法 or 属性:constructor();
起始版本:8|类名:Matrix2D
方法 or 属性:constructor();
起始版本:9|canvaspattern.d.ts|
+|起始版本有变化|类名:console
起始版本:7|类名:console
起始版本:9|global.d.ts|
+|起始版本有变化|类名:console
方法 or 属性:static debug(message: string, ...arguments: any[]): void;
起始版本:7|类名:console
方法 or 属性:static debug(message: string, ...arguments: any[]): void;
起始版本:9|global.d.ts|
+|起始版本有变化|类名:console
方法 or 属性:static log(message: string, ...arguments: any[]): void;
起始版本:7|类名:console
方法 or 属性:static log(message: string, ...arguments: any[]): void;
起始版本:9|global.d.ts|
+|起始版本有变化|类名:console
方法 or 属性:static info(message: string, ...arguments: any[]): void;
起始版本:7|类名:console
方法 or 属性:static info(message: string, ...arguments: any[]): void;
起始版本:9|global.d.ts|
+|起始版本有变化|类名:console
方法 or 属性:static warn(message: string, ...arguments: any[]): void;
起始版本:7|类名:console
方法 or 属性:static warn(message: string, ...arguments: any[]): void;
起始版本:9|global.d.ts|
+|起始版本有变化|类名:console
方法 or 属性:static error(message: string, ...arguments: any[]): void;
起始版本:7|类名:console
方法 or 属性:static error(message: string, ...arguments: any[]): void;
起始版本:9|global.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const AbilityComponent: AbilityComponentInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const AbilityComponent: AbilityComponentInterface;
起始版本:9|ability_component.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const AbilityComponentInstance: AbilityComponentAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const AbilityComponentInstance: AbilityComponentAttribute;
起始版本:9|ability_component.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const AlphabetIndexer: AlphabetIndexerInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const AlphabetIndexer: AlphabetIndexerInterface;
起始版本:7|alphabet_indexer.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const AlphabetIndexerInstance: AlphabetIndexerAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const AlphabetIndexerInstance: AlphabetIndexerAttribute;
起始版本:7|alphabet_indexer.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Animator: AnimatorInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Animator: AnimatorInterface;
起始版本:7|animator.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const AnimatorInstance: AnimatorAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const AnimatorInstance: AnimatorAttribute;
起始版本:7|animator.d.ts|
+|起始版本有变化|类名:BadgePosition
起始版本:7|类名:BadgePosition
起始版本:9|badge.d.ts|
+|起始版本有变化|类名:BadgePosition
方法 or 属性:RightTop
起始版本:7|类名:BadgePosition
方法 or 属性:RightTop
起始版本:9|badge.d.ts|
+|起始版本有变化|类名:BadgePosition
方法 or 属性:Right
起始版本:7|类名:BadgePosition
方法 or 属性:Right
起始版本:9|badge.d.ts|
+|起始版本有变化|类名:BadgePosition
方法 or 属性:Left
起始版本:7|类名:BadgePosition
方法 or 属性:Left
起始版本:9|badge.d.ts|
+|起始版本有变化|类名:BadgeStyle
起始版本:7|类名:BadgeStyle
起始版本:9|badge.d.ts|
+|起始版本有变化|类名:BadgeStyle
方法 or 属性:color?: ResourceColor;
起始版本:7|类名:BadgeStyle
方法 or 属性:color?: ResourceColor;
起始版本:9|badge.d.ts|
+|起始版本有变化|类名:BadgeStyle
方法 or 属性:fontSize?: number \| string;
起始版本:7|类名:BadgeStyle
方法 or 属性:fontSize?: number \| string;
起始版本:9|badge.d.ts|
+|起始版本有变化|类名:BadgeStyle
方法 or 属性:badgeSize?: number \| string;
起始版本:7|类名:BadgeStyle
方法 or 属性:badgeSize?: number \| string;
起始版本:9|badge.d.ts|
+|起始版本有变化|类名:BadgeStyle
方法 or 属性:badgeColor?: ResourceColor;
起始版本:7|类名:BadgeStyle
方法 or 属性:badgeColor?: ResourceColor;
起始版本:9|badge.d.ts|
+|起始版本有变化|类名:BadgeParam
起始版本:7|类名:BadgeParam
起始版本:9|badge.d.ts|
+|起始版本有变化|类名:BadgeParam
方法 or 属性:position?: BadgePosition;
起始版本:7|类名:BadgeParam
方法 or 属性:position?: BadgePosition;
起始版本:9|badge.d.ts|
+|起始版本有变化|类名:BadgeParam
方法 or 属性:style: BadgeStyle;
起始版本:7|类名:BadgeParam
方法 or 属性:style: BadgeStyle;
起始版本:9|badge.d.ts|
+|起始版本有变化|类名:BadgeParamWithNumber
起始版本:7|类名:BadgeParamWithNumber
起始版本:9|badge.d.ts|
+|起始版本有变化|类名:BadgeParamWithNumber
方法 or 属性:count: number;
起始版本:7|类名:BadgeParamWithNumber
方法 or 属性:count: number;
起始版本:9|badge.d.ts|
+|起始版本有变化|类名:BadgeParamWithNumber
方法 or 属性:maxCount?: number;
起始版本:7|类名:BadgeParamWithNumber
方法 or 属性:maxCount?: number;
起始版本:9|badge.d.ts|
+|起始版本有变化|类名:BadgeParamWithString
起始版本:7|类名:BadgeParamWithString
起始版本:9|badge.d.ts|
+|起始版本有变化|类名:BadgeParamWithString
方法 or 属性:value: string;
起始版本:7|类名:BadgeParamWithString
方法 or 属性:value: string;
起始版本:9|badge.d.ts|
+|起始版本有变化|类名:BadgeInterface
起始版本:7|类名:BadgeInterface
起始版本:9|badge.d.ts|
+|起始版本有变化|类名:BadgeInterface
方法 or 属性:(value: BadgeParamWithNumber): BadgeAttribute;
起始版本:7|类名:BadgeInterface
方法 or 属性:(value: BadgeParamWithNumber): BadgeAttribute;
起始版本:9|badge.d.ts|
+|起始版本有变化|类名:BadgeInterface
方法 or 属性:(value: BadgeParamWithString): BadgeAttribute;
起始版本:7|类名:BadgeInterface
方法 or 属性:(value: BadgeParamWithString): BadgeAttribute;
起始版本:9|badge.d.ts|
+|起始版本有变化|类名:BadgeAttribute
起始版本:7|类名:BadgeAttribute
起始版本:9|badge.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Badge: BadgeInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Badge: BadgeInterface;
起始版本:9|badge.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const BadgeInstance: BadgeAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const BadgeInstance: BadgeAttribute;
起始版本:9|badge.d.ts|
+|起始版本有变化|类名:BlankInterface
起始版本:7|类名:BlankInterface
起始版本:9|blank.d.ts|
+|起始版本有变化|类名:BlankInterface
方法 or 属性:(min?: number \| string): BlankAttribute;
起始版本:7|类名:BlankInterface
方法 or 属性:(min?: number \| string): BlankAttribute;
起始版本:9|blank.d.ts|
+|起始版本有变化|类名:BlankAttribute
起始版本:7|类名:BlankAttribute
起始版本:9|blank.d.ts|
+|起始版本有变化|类名:BlankAttribute
方法 or 属性:color(value: ResourceColor): BlankAttribute;
起始版本:7|类名:BlankAttribute
方法 or 属性:color(value: ResourceColor): BlankAttribute;
起始版本:9|blank.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Blank: BlankInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Blank: BlankInterface;
起始版本:9|blank.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const BlankInstance: BlankAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const BlankInstance: BlankAttribute;
起始版本:9|blank.d.ts|
+|起始版本有变化|类名:ButtonType
起始版本:7|类名:ButtonType
起始版本:9|button.d.ts|
+|起始版本有变化|类名:ButtonType
方法 or 属性:Capsule
起始版本:7|类名:ButtonType
方法 or 属性:Capsule
起始版本:9|button.d.ts|
+|起始版本有变化|类名:ButtonType
方法 or 属性:Circle
起始版本:7|类名:ButtonType
方法 or 属性:Circle
起始版本:9|button.d.ts|
+|起始版本有变化|类名:ButtonType
方法 or 属性:Normal
起始版本:7|类名:ButtonType
方法 or 属性:Normal
起始版本:9|button.d.ts|
+|起始版本有变化|类名:ButtonOptions
起始版本:7|类名:ButtonOptions
起始版本:9|button.d.ts|
+|起始版本有变化|类名:ButtonOptions
方法 or 属性:type?: ButtonType;
起始版本:7|类名:ButtonOptions
方法 or 属性:type?: ButtonType;
起始版本:9|button.d.ts|
+|起始版本有变化|类名:ButtonOptions
方法 or 属性:stateEffect?: boolean;
起始版本:7|类名:ButtonOptions
方法 or 属性:stateEffect?: boolean;
起始版本:9|button.d.ts|
+|起始版本有变化|类名:ButtonInterface
起始版本:7|类名:ButtonInterface
起始版本:9|button.d.ts|
+|起始版本有变化|类名:ButtonInterface
方法 or 属性:(): ButtonAttribute;
起始版本:7|类名:ButtonInterface
方法 or 属性:(): ButtonAttribute;
起始版本:9|button.d.ts|
+|起始版本有变化|类名:ButtonInterface
方法 or 属性:(options: ButtonOptions): ButtonAttribute;
起始版本:7|类名:ButtonInterface
方法 or 属性:(options: ButtonOptions): ButtonAttribute;
起始版本:9|button.d.ts|
+|起始版本有变化|类名:ButtonInterface
方法 or 属性:(label: ResourceStr, options?: ButtonOptions): ButtonAttribute;
起始版本:7|类名:ButtonInterface
方法 or 属性:(label: ResourceStr, options?: ButtonOptions): ButtonAttribute;
起始版本:9|button.d.ts|
+|起始版本有变化|类名:ButtonAttribute
起始版本:7|类名:ButtonAttribute
起始版本:9|button.d.ts|
+|起始版本有变化|类名:ButtonAttribute
方法 or 属性:type(value: ButtonType): ButtonAttribute;
起始版本:7|类名:ButtonAttribute
方法 or 属性:type(value: ButtonType): ButtonAttribute;
起始版本:9|button.d.ts|
+|起始版本有变化|类名:ButtonAttribute
方法 or 属性:stateEffect(value: boolean): ButtonAttribute;
起始版本:7|类名:ButtonAttribute
方法 or 属性:stateEffect(value: boolean): ButtonAttribute;
起始版本:9|button.d.ts|
+|起始版本有变化|类名:ButtonAttribute
方法 or 属性:fontColor(value: ResourceColor): ButtonAttribute;
起始版本:7|类名:ButtonAttribute
方法 or 属性:fontColor(value: ResourceColor): ButtonAttribute;
起始版本:9|button.d.ts|
+|起始版本有变化|类名:ButtonAttribute
方法 or 属性:fontSize(value: Length): ButtonAttribute;
起始版本:7|类名:ButtonAttribute
方法 or 属性:fontSize(value: Length): ButtonAttribute;
起始版本:9|button.d.ts|
+|起始版本有变化|类名:ButtonAttribute
方法 or 属性:fontWeight(value: number \| FontWeight \| string): ButtonAttribute;
起始版本:7|类名:ButtonAttribute
方法 or 属性:fontWeight(value: number \| FontWeight \| string): ButtonAttribute;
起始版本:9|button.d.ts|
+|起始版本有变化|类名:ButtonAttribute
方法 or 属性:fontStyle(value: FontStyle): ButtonAttribute;
起始版本:8|类名:ButtonAttribute
方法 or 属性:fontStyle(value: FontStyle): ButtonAttribute;
起始版本:9|button.d.ts|
+|起始版本有变化|类名:ButtonAttribute
方法 or 属性:fontFamily(value: string \| Resource): ButtonAttribute;
起始版本:8|类名:ButtonAttribute
方法 or 属性:fontFamily(value: string \| Resource): ButtonAttribute;
起始版本:9|button.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Button: ButtonInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Button: ButtonInterface;
起始版本:9|button.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const ButtonInstance: ButtonAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const ButtonInstance: ButtonAttribute;
起始版本:9|button.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Calendar: CalendarInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Calendar: CalendarInterface;
起始版本:7|calendar.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const CalendarInstance: CalendarAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const CalendarInstance: CalendarAttribute;
起始版本:7|calendar.d.ts|
+|起始版本有变化|类名:CanvasGradient
起始版本:8|类名:CanvasGradient
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasGradient
方法 or 属性:addColorStop(offset: number, color: string): void;
起始版本:8|类名:CanvasGradient
方法 or 属性:addColorStop(offset: number, color: string): void;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasPath
起始版本:8|类名:CanvasPath
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasPath
方法 or 属性:arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
起始版本:8|类名:CanvasPath
方法 or 属性:arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasPath
方法 or 属性:arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;
起始版本:8|类名:CanvasPath
方法 or 属性:arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasPath
方法 or 属性:bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;
起始版本:8|类名:CanvasPath
方法 or 属性:bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasPath
方法 or 属性:closePath(): void;
起始版本:8|类名:CanvasPath
方法 or 属性:closePath(): void;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasPath
方法 or 属性:ellipse(
x: number,
y: number,
radiusX: number,
radiusY: number,
rotation: number,
startAngle: number,
endAngle: number,
counterclockwise?: boolean,
): void;
起始版本:8|类名:CanvasPath
方法 or 属性:ellipse(
x: number,
y: number,
radiusX: number,
radiusY: number,
rotation: number,
startAngle: number,
endAngle: number,
counterclockwise?: boolean,
): void;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasPath
方法 or 属性:lineTo(x: number, y: number): void;
起始版本:8|类名:CanvasPath
方法 or 属性:lineTo(x: number, y: number): void;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasPath
方法 or 属性:moveTo(x: number, y: number): void;
起始版本:8|类名:CanvasPath
方法 or 属性:moveTo(x: number, y: number): void;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasPath
方法 or 属性:quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
起始版本:8|类名:CanvasPath
方法 or 属性:quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasPath
方法 or 属性:rect(x: number, y: number, w: number, h: number): void;
起始版本:8|类名:CanvasPath
方法 or 属性:rect(x: number, y: number, w: number, h: number): void;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:Path2D
起始版本:8|类名:Path2D
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:Path2D
方法 or 属性:addPath(path: Path2D, transform?: Matrix2D): void;
起始版本:8|类名:Path2D
方法 or 属性:addPath(path: Path2D, transform?: Matrix2D): void;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:Path2D
方法 or 属性:constructor();
起始版本:8|类名:Path2D
方法 or 属性:constructor();
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:Path2D
方法 or 属性:constructor(path: Path2D);
起始版本:8|类名:Path2D
方法 or 属性:constructor(path: Path2D);
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:Path2D
方法 or 属性:constructor(d: string);
起始版本:8|类名:Path2D
方法 or 属性:constructor(d: string);
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:TextMetrics
起始版本:8|类名:TextMetrics
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:TextMetrics
方法 or 属性:readonly actualBoundingBoxAscent: number;
起始版本:8|类名:TextMetrics
方法 or 属性:readonly actualBoundingBoxAscent: number;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:TextMetrics
方法 or 属性:readonly actualBoundingBoxDescent: number;
起始版本:8|类名:TextMetrics
方法 or 属性:readonly actualBoundingBoxDescent: number;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:TextMetrics
方法 or 属性:readonly actualBoundingBoxLeft: number;
起始版本:8|类名:TextMetrics
方法 or 属性:readonly actualBoundingBoxLeft: number;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:TextMetrics
方法 or 属性:readonly actualBoundingBoxRight: number;
起始版本:8|类名:TextMetrics
方法 or 属性:readonly actualBoundingBoxRight: number;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:TextMetrics
方法 or 属性:readonly alphabeticBaseline: number;
起始版本:8|类名:TextMetrics
方法 or 属性:readonly alphabeticBaseline: number;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:TextMetrics
方法 or 属性:readonly emHeightAscent: number;
起始版本:8|类名:TextMetrics
方法 or 属性:readonly emHeightAscent: number;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:TextMetrics
方法 or 属性:readonly emHeightDescent: number;
起始版本:8|类名:TextMetrics
方法 or 属性:readonly emHeightDescent: number;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:TextMetrics
方法 or 属性:readonly fontBoundingBoxAscent: number;
起始版本:8|类名:TextMetrics
方法 or 属性:readonly fontBoundingBoxAscent: number;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:TextMetrics
方法 or 属性:readonly fontBoundingBoxDescent: number;
起始版本:8|类名:TextMetrics
方法 or 属性:readonly fontBoundingBoxDescent: number;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:TextMetrics
方法 or 属性:readonly hangingBaseline: number;
起始版本:8|类名:TextMetrics
方法 or 属性:readonly hangingBaseline: number;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:TextMetrics
方法 or 属性:readonly ideographicBaseline: number;
起始版本:8|类名:TextMetrics
方法 or 属性:readonly ideographicBaseline: number;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:TextMetrics
方法 or 属性:readonly width: number;
起始版本:8|类名:TextMetrics
方法 or 属性:readonly width: number;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:TextMetrics
方法 or 属性:readonly height: number;
起始版本:8|类名:TextMetrics
方法 or 属性:readonly height: number;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:ImageBitmap
起始版本:8|类名:ImageBitmap
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:ImageBitmap
方法 or 属性:readonly height: number;
起始版本:8|类名:ImageBitmap
方法 or 属性:readonly height: number;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:ImageBitmap
方法 or 属性:readonly width: number;
起始版本:8|类名:ImageBitmap
方法 or 属性:readonly width: number;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:ImageBitmap
方法 or 属性:close(): void;
起始版本:8|类名:ImageBitmap
方法 or 属性:close(): void;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:ImageBitmap
方法 or 属性:constructor(src: string);
起始版本:8|类名:ImageBitmap
方法 or 属性:constructor(src: string);
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:ImageData
起始版本:8|类名:ImageData
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:ImageData
方法 or 属性:readonly data: Uint8ClampedArray;
起始版本:8|类名:ImageData
方法 or 属性:readonly data: Uint8ClampedArray;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:ImageData
方法 or 属性:readonly height: number;
起始版本:8|类名:ImageData
方法 or 属性:readonly height: number;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:ImageData
方法 or 属性:readonly width: number;
起始版本:8|类名:ImageData
方法 or 属性:readonly width: number;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:ImageData
方法 or 属性:constructor(width: number, height: number, data?: Uint8ClampedArray);
起始版本:8|类名:ImageData
方法 or 属性:constructor(width: number, height: number, data?: Uint8ClampedArray);
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:RenderingContextSettings
起始版本:8|类名:RenderingContextSettings
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:RenderingContextSettings
方法 or 属性:antialias?: boolean;
起始版本:8|类名:RenderingContextSettings
方法 or 属性:antialias?: boolean;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:RenderingContextSettings
方法 or 属性:constructor(antialias?: boolean);
起始版本:8|类名:RenderingContextSettings
方法 or 属性:constructor(antialias?: boolean);
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderer
起始版本:8|类名:CanvasRenderer
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderer
方法 or 属性:globalAlpha: number;
起始版本:8|类名:CanvasRenderer
方法 or 属性:globalAlpha: number;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderer
方法 or 属性:globalCompositeOperation: string;
起始版本:8|类名:CanvasRenderer
方法 or 属性:globalCompositeOperation: string;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderer
方法 or 属性:drawImage(image: ImageBitmap \| PixelMap, dx: number, dy: number): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:drawImage(image: ImageBitmap \| PixelMap, dx: number, dy: number): void;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderer
方法 or 属性:drawImage(image: ImageBitmap \| PixelMap, dx: number, dy: number, dw: number, dh: number): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:drawImage(image: ImageBitmap \| PixelMap, dx: number, dy: number, dw: number, dh: number): void;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderer
方法 or 属性:drawImage(
image: ImageBitmap \| PixelMap,
sx: number,
sy: number,
sw: number,
sh: number,
dx: number,
dy: number,
dw: number,
dh: number,
): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:drawImage(
image: ImageBitmap \| PixelMap,
sx: number,
sy: number,
sw: number,
sh: number,
dx: number,
dy: number,
dw: number,
dh: number,
): void;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderer
方法 or 属性:beginPath(): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:beginPath(): void;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderer
方法 or 属性:clip(fillRule?: CanvasFillRule): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:clip(fillRule?: CanvasFillRule): void;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderer
方法 or 属性:clip(path: Path2D, fillRule?: CanvasFillRule): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:clip(path: Path2D, fillRule?: CanvasFillRule): void;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderer
方法 or 属性:fill(fillRule?: CanvasFillRule): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:fill(fillRule?: CanvasFillRule): void;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderer
方法 or 属性:fill(path: Path2D, fillRule?: CanvasFillRule): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:fill(path: Path2D, fillRule?: CanvasFillRule): void;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderer
方法 or 属性:stroke(): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:stroke(): void;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderer
方法 or 属性:stroke(path: Path2D): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:stroke(path: Path2D): void;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderer
方法 or 属性:fillStyle: string \| CanvasGradient \| CanvasPattern;
起始版本:8|类名:CanvasRenderer
方法 or 属性:fillStyle: string \| CanvasGradient \| CanvasPattern;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderer
方法 or 属性:strokeStyle: string \| CanvasGradient \| CanvasPattern;
起始版本:8|类名:CanvasRenderer
方法 or 属性:strokeStyle: string \| CanvasGradient \| CanvasPattern;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderer
方法 or 属性:createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;
起始版本:8|类名:CanvasRenderer
方法 or 属性:createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderer
方法 or 属性:createPattern(image: ImageBitmap, repetition: string \| null): CanvasPattern \| null;
起始版本:8|类名:CanvasRenderer
方法 or 属性:createPattern(image: ImageBitmap, repetition: string \| null): CanvasPattern \| null;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderer
方法 or 属性:createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;
起始版本:8|类名:CanvasRenderer
方法 or 属性:createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderer
方法 or 属性:createImageData(sw: number, sh: number): ImageData;
起始版本:8|类名:CanvasRenderer
方法 or 属性:createImageData(sw: number, sh: number): ImageData;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderer
方法 or 属性:createImageData(imagedata: ImageData): ImageData;
起始版本:8|类名:CanvasRenderer
方法 or 属性:createImageData(imagedata: ImageData): ImageData;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderer
方法 or 属性:getImageData(sx: number, sy: number, sw: number, sh: number): ImageData;
起始版本:8|类名:CanvasRenderer
方法 or 属性:getImageData(sx: number, sy: number, sw: number, sh: number): ImageData;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderer
方法 or 属性:putImageData(imagedata: ImageData, dx: number, dy: number): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:putImageData(imagedata: ImageData, dx: number, dy: number): void;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderer
方法 or 属性:putImageData(
imagedata: ImageData,
dx: number,
dy: number,
dirtyX: number,
dirtyY: number,
dirtyWidth: number,
dirtyHeight: number,
): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:putImageData(
imagedata: ImageData,
dx: number,
dy: number,
dirtyX: number,
dirtyY: number,
dirtyWidth: number,
dirtyHeight: number,
): void;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderer
方法 or 属性:imageSmoothingEnabled: boolean;
起始版本:8|类名:CanvasRenderer
方法 or 属性:imageSmoothingEnabled: boolean;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderer
方法 or 属性:lineCap: CanvasLineCap;
起始版本:8|类名:CanvasRenderer
方法 or 属性:lineCap: CanvasLineCap;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderer
方法 or 属性:lineDashOffset: number;
起始版本:8|类名:CanvasRenderer
方法 or 属性:lineDashOffset: number;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderer
方法 or 属性:lineJoin: CanvasLineJoin;
起始版本:8|类名:CanvasRenderer
方法 or 属性:lineJoin: CanvasLineJoin;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderer
方法 or 属性:lineWidth: number;
起始版本:8|类名:CanvasRenderer
方法 or 属性:lineWidth: number;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderer
方法 or 属性:miterLimit: number;
起始版本:8|类名:CanvasRenderer
方法 or 属性:miterLimit: number;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderer
方法 or 属性:getLineDash(): number[];
起始版本:8|类名:CanvasRenderer
方法 or 属性:getLineDash(): number[];
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderer
方法 or 属性:setLineDash(segments: number[]): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:setLineDash(segments: number[]): void;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderer
方法 or 属性:clearRect(x: number, y: number, w: number, h: number): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:clearRect(x: number, y: number, w: number, h: number): void;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderer
方法 or 属性:fillRect(x: number, y: number, w: number, h: number): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:fillRect(x: number, y: number, w: number, h: number): void;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderer
方法 or 属性:strokeRect(x: number, y: number, w: number, h: number): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:strokeRect(x: number, y: number, w: number, h: number): void;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderer
方法 or 属性:shadowBlur: number;
起始版本:8|类名:CanvasRenderer
方法 or 属性:shadowBlur: number;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderer
方法 or 属性:shadowColor: string;
起始版本:8|类名:CanvasRenderer
方法 or 属性:shadowColor: string;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderer
方法 or 属性:shadowOffsetX: number;
起始版本:8|类名:CanvasRenderer
方法 or 属性:shadowOffsetX: number;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderer
方法 or 属性:shadowOffsetY: number;
起始版本:8|类名:CanvasRenderer
方法 or 属性:shadowOffsetY: number;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderer
方法 or 属性:restore(): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:restore(): void;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderer
方法 or 属性:save(): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:save(): void;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderer
方法 or 属性:fillText(text: string, x: number, y: number, maxWidth?: number): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:fillText(text: string, x: number, y: number, maxWidth?: number): void;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderer
方法 or 属性:measureText(text: string): TextMetrics;
起始版本:8|类名:CanvasRenderer
方法 or 属性:measureText(text: string): TextMetrics;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderer
方法 or 属性:strokeText(text: string, x: number, y: number, maxWidth?: number): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:strokeText(text: string, x: number, y: number, maxWidth?: number): void;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderer
方法 or 属性:font: string;
起始版本:8|类名:CanvasRenderer
方法 or 属性:font: string;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderer
方法 or 属性:textAlign: CanvasTextAlign;
起始版本:8|类名:CanvasRenderer
方法 or 属性:textAlign: CanvasTextAlign;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderer
方法 or 属性:textBaseline: CanvasTextBaseline;
起始版本:8|类名:CanvasRenderer
方法 or 属性:textBaseline: CanvasTextBaseline;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderer
方法 or 属性:getTransform(): Matrix2D;
起始版本:8|类名:CanvasRenderer
方法 or 属性:getTransform(): Matrix2D;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderer
方法 or 属性:resetTransform(): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:resetTransform(): void;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderer
方法 or 属性:rotate(angle: number): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:rotate(angle: number): void;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderer
方法 or 属性:scale(x: number, y: number): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:scale(x: number, y: number): void;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderer
方法 or 属性:setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderer
方法 or 属性:setTransform(transform?: Matrix2D): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:setTransform(transform?: Matrix2D): void;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderer
方法 or 属性:transform(a: number, b: number, c: number, d: number, e: number, f: number): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:transform(a: number, b: number, c: number, d: number, e: number, f: number): void;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderer
方法 or 属性:translate(x: number, y: number): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:translate(x: number, y: number): void;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderer
方法 or 属性:transferFromImageBitmap(bitmap: ImageBitmap): void;
起始版本:8|类名:CanvasRenderer
方法 or 属性:transferFromImageBitmap(bitmap: ImageBitmap): void;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderingContext2D
起始版本:8|类名:CanvasRenderingContext2D
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderingContext2D
方法 or 属性:readonly height: number;
起始版本:8|类名:CanvasRenderingContext2D
方法 or 属性:readonly height: number;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderingContext2D
方法 or 属性:readonly width: number;
起始版本:8|类名:CanvasRenderingContext2D
方法 or 属性:readonly width: number;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderingContext2D
方法 or 属性:toDataURL(type?: string, quality?: any): string;
起始版本:8|类名:CanvasRenderingContext2D
方法 or 属性:toDataURL(type?: string, quality?: any): string;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasRenderingContext2D
方法 or 属性:constructor(settings?: RenderingContextSettings);
起始版本:8|类名:CanvasRenderingContext2D
方法 or 属性:constructor(settings?: RenderingContextSettings);
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:OffscreenCanvasRenderingContext2D
起始版本:8|类名:OffscreenCanvasRenderingContext2D
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:OffscreenCanvasRenderingContext2D
方法 or 属性:toDataURL(type?: string, quality?: any): string;
起始版本:8|类名:OffscreenCanvasRenderingContext2D
方法 or 属性:toDataURL(type?: string, quality?: any): string;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:OffscreenCanvasRenderingContext2D
方法 or 属性:transferToImageBitmap(): ImageBitmap;
起始版本:8|类名:OffscreenCanvasRenderingContext2D
方法 or 属性:transferToImageBitmap(): ImageBitmap;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:OffscreenCanvasRenderingContext2D
方法 or 属性:constructor(width: number, height: number, settings?: RenderingContextSettings);
起始版本:8|类名:OffscreenCanvasRenderingContext2D
方法 or 属性:constructor(width: number, height: number, settings?: RenderingContextSettings);
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:OffscreenCanvas
起始版本:8|类名:OffscreenCanvas
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:OffscreenCanvas
方法 or 属性:height: number;
起始版本:8|类名:OffscreenCanvas
方法 or 属性:height: number;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:OffscreenCanvas
方法 or 属性:width: number;
起始版本:8|类名:OffscreenCanvas
方法 or 属性:width: number;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:OffscreenCanvas
方法 or 属性:transferToImageBitmap(): ImageBitmap;
起始版本:8|类名:OffscreenCanvas
方法 or 属性:transferToImageBitmap(): ImageBitmap;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:OffscreenCanvas
方法 or 属性:constructor(width: number, height: number);
起始版本:8|类名:OffscreenCanvas
方法 or 属性:constructor(width: number, height: number);
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasInterface
起始版本:8|类名:CanvasInterface
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasInterface
方法 or 属性:(context?: CanvasRenderingContext2D): CanvasAttribute;
起始版本:8|类名:CanvasInterface
方法 or 属性:(context?: CanvasRenderingContext2D): CanvasAttribute;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CanvasAttribute
方法 or 属性:onReady(event: () => void): CanvasAttribute;
起始版本:8|类名:CanvasAttribute
方法 or 属性:onReady(event: () => void): CanvasAttribute;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Canvas: CanvasInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Canvas: CanvasInterface;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const CanvasInstance: CanvasAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const CanvasInstance: CanvasAttribute;
起始版本:9|canvas.d.ts|
+|起始版本有变化|类名:CheckboxOptions
起始版本:8|类名:CheckboxOptions
起始版本:9|checkbox.d.ts|
+|起始版本有变化|类名:CheckboxOptions
方法 or 属性:name?: string;
起始版本:8|类名:CheckboxOptions
方法 or 属性:name?: string;
起始版本:9|checkbox.d.ts|
+|起始版本有变化|类名:CheckboxOptions
方法 or 属性:group?: string;
起始版本:8|类名:CheckboxOptions
方法 or 属性:group?: string;
起始版本:9|checkbox.d.ts|
+|起始版本有变化|类名:CheckboxInterface
起始版本:8|类名:CheckboxInterface
起始版本:9|checkbox.d.ts|
+|起始版本有变化|类名:CheckboxInterface
方法 or 属性:(options?: CheckboxOptions): CheckboxAttribute;
起始版本:8|类名:CheckboxInterface
方法 or 属性:(options?: CheckboxOptions): CheckboxAttribute;
起始版本:9|checkbox.d.ts|
+|起始版本有变化|类名:CheckboxAttribute
起始版本:8|类名:CheckboxAttribute
起始版本:9|checkbox.d.ts|
+|起始版本有变化|类名:CheckboxAttribute
方法 or 属性:select(value: boolean): CheckboxAttribute;
起始版本:8|类名:CheckboxAttribute
方法 or 属性:select(value: boolean): CheckboxAttribute;
起始版本:9|checkbox.d.ts|
+|起始版本有变化|类名:CheckboxAttribute
方法 or 属性:selectedColor(value: ResourceColor): CheckboxAttribute;
起始版本:8|类名:CheckboxAttribute
方法 or 属性:selectedColor(value: ResourceColor): CheckboxAttribute;
起始版本:9|checkbox.d.ts|
+|起始版本有变化|类名:CheckboxAttribute
方法 or 属性:onChange(callback: (value: boolean) => void): CheckboxAttribute;
起始版本:8|类名:CheckboxAttribute
方法 or 属性:onChange(callback: (value: boolean) => void): CheckboxAttribute;
起始版本:9|checkbox.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Checkbox: CheckboxInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Checkbox: CheckboxInterface;
起始版本:9|checkbox.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const CheckboxInstance: CheckboxAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const CheckboxInstance: CheckboxAttribute;
起始版本:9|checkbox.d.ts|
+|起始版本有变化|类名:SelectStatus
起始版本:8|类名:SelectStatus
起始版本:9|checkboxgroup.d.ts|
+|起始版本有变化|类名:SelectStatus
方法 or 属性:All
起始版本:8|类名:SelectStatus
方法 or 属性:All
起始版本:9|checkboxgroup.d.ts|
+|起始版本有变化|类名:SelectStatus
方法 or 属性:Part
起始版本:8|类名:SelectStatus
方法 or 属性:Part
起始版本:9|checkboxgroup.d.ts|
+|起始版本有变化|类名:SelectStatus
方法 or 属性:None
起始版本:8|类名:SelectStatus
方法 or 属性:None
起始版本:9|checkboxgroup.d.ts|
+|起始版本有变化|类名:CheckboxGroupOptions
起始版本:8|类名:CheckboxGroupOptions
起始版本:9|checkboxgroup.d.ts|
+|起始版本有变化|类名:CheckboxGroupOptions
方法 or 属性:group?: string;
起始版本:8|类名:CheckboxGroupOptions
方法 or 属性:group?: string;
起始版本:9|checkboxgroup.d.ts|
+|起始版本有变化|类名:CheckboxGroupResult
起始版本:8|类名:CheckboxGroupResult
起始版本:9|checkboxgroup.d.ts|
+|起始版本有变化|类名:CheckboxGroupResult
方法 or 属性:name: Array\;
起始版本:8|类名:CheckboxGroupResult
方法 or 属性:name: Array\;
起始版本:9|checkboxgroup.d.ts|
+|起始版本有变化|类名:CheckboxGroupResult
方法 or 属性:status: SelectStatus;
起始版本:8|类名:CheckboxGroupResult
方法 or 属性:status: SelectStatus;
起始版本:9|checkboxgroup.d.ts|
+|起始版本有变化|类名:CheckboxGroupInterface
起始版本:8|类名:CheckboxGroupInterface
起始版本:9|checkboxgroup.d.ts|
+|起始版本有变化|类名:CheckboxGroupInterface
方法 or 属性:(options?: CheckboxGroupOptions): CheckboxGroupAttribute;
起始版本:8|类名:CheckboxGroupInterface
方法 or 属性:(options?: CheckboxGroupOptions): CheckboxGroupAttribute;
起始版本:9|checkboxgroup.d.ts|
+|起始版本有变化|类名:CheckboxGroupAttribute
起始版本:8|类名:CheckboxGroupAttribute
起始版本:9|checkboxgroup.d.ts|
+|起始版本有变化|类名:CheckboxGroupAttribute
方法 or 属性:selectAll(value: boolean): CheckboxGroupAttribute;
起始版本:8|类名:CheckboxGroupAttribute
方法 or 属性:selectAll(value: boolean): CheckboxGroupAttribute;
起始版本:9|checkboxgroup.d.ts|
+|起始版本有变化|类名:CheckboxGroupAttribute
方法 or 属性:selectedColor(value: ResourceColor): CheckboxGroupAttribute;
起始版本:8|类名:CheckboxGroupAttribute
方法 or 属性:selectedColor(value: ResourceColor): CheckboxGroupAttribute;
起始版本:9|checkboxgroup.d.ts|
+|起始版本有变化|类名:CheckboxGroupAttribute
方法 or 属性:onChange(callback: (event: CheckboxGroupResult) => void): CheckboxGroupAttribute;
起始版本:8|类名:CheckboxGroupAttribute
方法 or 属性:onChange(callback: (event: CheckboxGroupResult) => void): CheckboxGroupAttribute;
起始版本:9|checkboxgroup.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const CheckboxGroup: CheckboxGroupInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const CheckboxGroup: CheckboxGroupInterface;
起始版本:9|checkboxgroup.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const CheckboxGroupInstance: CheckboxGroupAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const CheckboxGroupInstance: CheckboxGroupAttribute;
起始版本:9|checkboxgroup.d.ts|
+|起始版本有变化|类名:CircleOptions
起始版本:7|类名:CircleOptions
起始版本:9|circle.d.ts|
+|起始版本有变化|类名:CircleOptions
方法 or 属性:width?: string \| number;
起始版本:7|类名:CircleOptions
方法 or 属性:width?: string \| number;
起始版本:9|circle.d.ts|
+|起始版本有变化|类名:CircleOptions
方法 or 属性:height?: string \| number;
起始版本:7|类名:CircleOptions
方法 or 属性:height?: string \| number;
起始版本:9|circle.d.ts|
+|起始版本有变化|类名:CircleInterface
起始版本:7|类名:CircleInterface
起始版本:9|circle.d.ts|
+|起始版本有变化|类名:CircleInterface
方法 or 属性:new (value?: CircleOptions): CircleAttribute;
起始版本:7|类名:CircleInterface
方法 or 属性:new (value?: CircleOptions): CircleAttribute;
起始版本:9|circle.d.ts|
+|起始版本有变化|类名:CircleInterface
方法 or 属性:(value?: CircleOptions): CircleAttribute;
起始版本:7|类名:CircleInterface
方法 or 属性:(value?: CircleOptions): CircleAttribute;
起始版本:9|circle.d.ts|
+|起始版本有变化|类名:CircleAttribute
起始版本:7|类名:CircleAttribute
起始版本:9|circle.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Circle: CircleInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Circle: CircleInterface;
起始版本:9|circle.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const CircleInstance: CircleAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const CircleInstance: CircleAttribute;
起始版本:9|circle.d.ts|
+|起始版本有变化|类名:ColumnInterface
起始版本:7|类名:ColumnInterface
起始版本:9|column.d.ts|
+|起始版本有变化|类名:ColumnInterface
方法 or 属性:(value?: { space?: string \| number }): ColumnAttribute;
起始版本:7|类名:ColumnInterface
方法 or 属性:(value?: { space?: string \| number }): ColumnAttribute;
起始版本:9|column.d.ts|
+|起始版本有变化|类名:ColumnAttribute
起始版本:7|类名:ColumnAttribute
起始版本:9|column.d.ts|
+|起始版本有变化|类名:ColumnAttribute
方法 or 属性:alignItems(value: HorizontalAlign): ColumnAttribute;
起始版本:7|类名:ColumnAttribute
方法 or 属性:alignItems(value: HorizontalAlign): ColumnAttribute;
起始版本:9|column.d.ts|
+|起始版本有变化|类名:ColumnAttribute
方法 or 属性:justifyContent(value: FlexAlign): ColumnAttribute;
起始版本:8|类名:ColumnAttribute
方法 or 属性:justifyContent(value: FlexAlign): ColumnAttribute;
起始版本:9|column.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Column: ColumnInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Column: ColumnInterface;
起始版本:9|column.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const ColumnInstance: ColumnAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const ColumnInstance: ColumnAttribute;
起始版本:9|column.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const ColumnSplitInstance: ColumnSplitAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const ColumnSplitInstance: ColumnSplitAttribute;
起始版本:7|column_split.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const ColumnSplit: ColumnSplitInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const ColumnSplit: ColumnSplitInterface;
起始版本:7|column_split.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Component: ClassDecorator;
起始版本:7|类名:global
方法 or 属性:declare const Component: ClassDecorator;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Observed: ClassDecorator;
起始版本:7|类名:global
方法 or 属性:declare const Observed: ClassDecorator;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Preview: ClassDecorator & ((value: PreviewParams) => ClassDecorator);
起始版本:7|类名:global
方法 or 属性:declare const Preview: ClassDecorator & ((value: PreviewParams) => ClassDecorator);
起始版本:9|common.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const BuilderParam: PropertyDecorator;
起始版本:7|类名:global
方法 or 属性:declare const BuilderParam: PropertyDecorator;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const State: PropertyDecorator;
起始版本:7|类名:global
方法 or 属性:declare const State: PropertyDecorator;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Prop: PropertyDecorator;
起始版本:7|类名:global
方法 or 属性:declare const Prop: PropertyDecorator;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Link: PropertyDecorator;
起始版本:7|类名:global
方法 or 属性:declare const Link: PropertyDecorator;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const ObjectLink: PropertyDecorator;
起始版本:7|类名:global
方法 or 属性:declare const ObjectLink: PropertyDecorator;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Provide: PropertyDecorator & ((value: string) => PropertyDecorator);
起始版本:7|类名:global
方法 or 属性:declare const Provide: PropertyDecorator & ((value: string) => PropertyDecorator);
起始版本:9|common.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Consume: PropertyDecorator & ((value: string) => PropertyDecorator);
起始版本:7|类名:global
方法 or 属性:declare const Consume: PropertyDecorator & ((value: string) => PropertyDecorator);
起始版本:9|common.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Watch: (value: string) => PropertyDecorator;
起始版本:7|类名:global
方法 or 属性:declare const Watch: (value: string) => PropertyDecorator;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Builder: MethodDecorator;
起始版本:7|类名:global
方法 or 属性:declare const Builder: MethodDecorator;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Styles: MethodDecorator;
起始版本:8|类名:global
方法 or 属性:declare const Styles: MethodDecorator;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Extend: MethodDecorator & ((value: any) => MethodDecorator);
起始版本:7|类名:global
方法 or 属性:declare const Extend: MethodDecorator & ((value: any) => MethodDecorator);
起始版本:9|common.d.ts|
+|起始版本有变化|类名:Configuration
起始版本:7|类名:Configuration
起始版本:9|common.d.ts|
+|起始版本有变化|类名:Configuration
方法 or 属性:readonly colorMode: string;
起始版本:7|类名:Configuration
方法 or 属性:readonly colorMode: string;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:Configuration
方法 or 属性:readonly fontScale: number;
起始版本:7|类名:Configuration
方法 or 属性:readonly fontScale: number;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:Rectangle
起始版本:8|类名:Rectangle
起始版本:9|common.d.ts|
+|起始版本有变化|类名:Rectangle
方法 or 属性:x?: Length;
起始版本:8|类名:Rectangle
方法 or 属性:x?: Length;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:Rectangle
方法 or 属性:y?: Length;
起始版本:8|类名:Rectangle
方法 or 属性:y?: Length;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:Rectangle
方法 or 属性:width?: Length;
起始版本:8|类名:Rectangle
方法 or 属性:width?: Length;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:Rectangle
方法 or 属性:height?: Length;
起始版本:8|类名:Rectangle
方法 or 属性:height?: Length;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:
方法 or 属性:function $r(value: string, ...params: any[]): Resource;
起始版本:7|类名:
方法 or 属性:function $r(value: string, ...params: any[]): Resource;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:
方法 or 属性:function $rawfile(value: string): Resource;
起始版本:7|类名:
方法 or 属性:function $rawfile(value: string): Resource;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:AnimateParam
起始版本:7|类名:AnimateParam
起始版本:9|common.d.ts|
+|起始版本有变化|类名:AnimateParam
方法 or 属性:duration?: number;
起始版本:7|类名:AnimateParam
方法 or 属性:duration?: number;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:AnimateParam
方法 or 属性:playMode?: PlayMode;
起始版本:7|类名:AnimateParam
方法 or 属性:playMode?: PlayMode;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:AnimateParam
方法 or 属性:onFinish?: () => void;
起始版本:7|类名:AnimateParam
方法 or 属性:onFinish?: () => void;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:TranslateOptions
起始版本:7|类名:TranslateOptions
起始版本:9|common.d.ts|
+|起始版本有变化|类名:TranslateOptions
方法 or 属性:x?: number \| string;
起始版本:7|类名:TranslateOptions
方法 or 属性:x?: number \| string;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:TranslateOptions
方法 or 属性:y?: number \| string;
起始版本:7|类名:TranslateOptions
方法 or 属性:y?: number \| string;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:TranslateOptions
方法 or 属性:z?: number \| string;
起始版本:7|类名:TranslateOptions
方法 or 属性:z?: number \| string;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:ScaleOptions
起始版本:7|类名:ScaleOptions
起始版本:9|common.d.ts|
+|起始版本有变化|类名:ScaleOptions
方法 or 属性:x?: number;
起始版本:7|类名:ScaleOptions
方法 or 属性:x?: number;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:ScaleOptions
方法 or 属性:y?: number;
起始版本:7|类名:ScaleOptions
方法 or 属性:y?: number;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:ScaleOptions
方法 or 属性:z?: number;
起始版本:7|类名:ScaleOptions
方法 or 属性:z?: number;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:ScaleOptions
方法 or 属性:centerX?: number \| string;
起始版本:7|类名:ScaleOptions
方法 or 属性:centerX?: number \| string;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:ScaleOptions
方法 or 属性:centerY?: number \| string;
起始版本:7|类名:ScaleOptions
方法 or 属性:centerY?: number \| string;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:RotateOptions
方法 or 属性:x?: number;
起始版本:7|类名:RotateOptions
方法 or 属性:x?: number;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:RotateOptions
方法 or 属性:y?: number;
起始版本:7|类名:RotateOptions
方法 or 属性:y?: number;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:RotateOptions
方法 or 属性:z?: number;
起始版本:7|类名:RotateOptions
方法 or 属性:z?: number;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:RotateOptions
方法 or 属性:centerX?: number \| string;
起始版本:7|类名:RotateOptions
方法 or 属性:centerX?: number \| string;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:RotateOptions
方法 or 属性:centerY?: number \| string;
起始版本:7|类名:RotateOptions
方法 or 属性:centerY?: number \| string;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:RotateOptions
方法 or 属性:angle: number \| string;
起始版本:7|类名:RotateOptions
方法 or 属性:angle: number \| string;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:TransitionOptions
起始版本:7|类名:TransitionOptions
起始版本:9|common.d.ts|
+|起始版本有变化|类名:TransitionOptions
方法 or 属性:type?: TransitionType;
起始版本:7|类名:TransitionOptions
方法 or 属性:type?: TransitionType;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:TransitionOptions
方法 or 属性:opacity?: number;
起始版本:7|类名:TransitionOptions
方法 or 属性:opacity?: number;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:TransitionOptions
方法 or 属性:translate?: TranslateOptions;
起始版本:7|类名:TransitionOptions
方法 or 属性:translate?: TranslateOptions;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:TransitionOptions
方法 or 属性:scale?: ScaleOptions;
起始版本:7|类名:TransitionOptions
方法 or 属性:scale?: ScaleOptions;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:TransitionOptions
方法 or 属性:rotate?: RotateOptions;
起始版本:7|类名:TransitionOptions
方法 or 属性:rotate?: RotateOptions;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:
方法 or 属性:function animateTo(value: AnimateParam, event: () => void): void;
起始版本:7|类名:
方法 or 属性:function animateTo(value: AnimateParam, event: () => void): void;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:
方法 or 属性:function vp2px(value: number): number;
起始版本:7|类名:
方法 or 属性:function vp2px(value: number): number;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:
方法 or 属性:function px2vp(value: number): number;
起始版本:7|类名:
方法 or 属性:function px2vp(value: number): number;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:
方法 or 属性:function fp2px(value: number): number;
起始版本:7|类名:
方法 or 属性:function fp2px(value: number): number;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:
方法 or 属性:function px2fp(value: number): number;
起始版本:7|类名:
方法 or 属性:function px2fp(value: number): number;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:
方法 or 属性:function lpx2px(value: number): number;
起始版本:7|类名:
方法 or 属性:function lpx2px(value: number): number;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:
方法 or 属性:function px2lpx(value: number): number;
起始版本:7|类名:
方法 or 属性:function px2lpx(value: number): number;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:EventTarget
起始版本:8|类名:EventTarget
起始版本:9|common.d.ts|
+|起始版本有变化|类名:EventTarget
方法 or 属性:area: Area;
起始版本:8|类名:EventTarget
方法 or 属性:area: Area;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:BaseEvent
起始版本:8|类名:BaseEvent
起始版本:9|common.d.ts|
+|起始版本有变化|类名:BaseEvent
方法 or 属性:target: EventTarget;
起始版本:8|类名:BaseEvent
方法 or 属性:target: EventTarget;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:BaseEvent
方法 or 属性:timestamp: number;
起始版本:8|类名:BaseEvent
方法 or 属性:timestamp: number;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:BaseEvent
方法 or 属性:source: SourceType;
起始版本:8|类名:BaseEvent
方法 or 属性:source: SourceType;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:ClickEvent
起始版本:7|类名:ClickEvent
起始版本:9|common.d.ts|
+|起始版本有变化|类名:ClickEvent
方法 or 属性:screenX: number;
起始版本:7|类名:ClickEvent
方法 or 属性:screenX: number;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:ClickEvent
方法 or 属性:screenY: number;
起始版本:7|类名:ClickEvent
方法 or 属性:screenY: number;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:ClickEvent
方法 or 属性:x: number;
起始版本:7|类名:ClickEvent
方法 or 属性:x: number;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:ClickEvent
方法 or 属性:y: number;
起始版本:7|类名:ClickEvent
方法 or 属性:y: number;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:StateStyles
起始版本:8|类名:StateStyles
起始版本:9|common.d.ts|
+|起始版本有变化|类名:StateStyles
方法 or 属性:normal?: any;
起始版本:8|类名:StateStyles
方法 or 属性:normal?: any;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:StateStyles
方法 or 属性:pressed?: any;
起始版本:8|类名:StateStyles
方法 or 属性:pressed?: any;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:StateStyles
方法 or 属性:disabled?: any;
起始版本:8|类名:StateStyles
方法 or 属性:disabled?: any;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:StateStyles
方法 or 属性:focused?: any;
起始版本:8|类名:StateStyles
方法 or 属性:focused?: any;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:StateStyles
方法 or 属性:clicked?: any;
起始版本:8|类名:StateStyles
方法 or 属性:clicked?: any;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
起始版本:7|类名:CommonMethod
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:constructor();
起始版本:7|类名:CommonMethod
方法 or 属性:constructor();
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:width(value: Length): T;
起始版本:7|类名:CommonMethod
方法 or 属性:width(value: Length): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:height(value: Length): T;
起始版本:7|类名:CommonMethod
方法 or 属性:height(value: Length): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:responseRegion(value: Array\ \| Rectangle): T;
起始版本:8|类名:CommonMethod
方法 or 属性:responseRegion(value: Array\ \| Rectangle): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:size(value: SizeOptions): T;
起始版本:7|类名:CommonMethod
方法 or 属性:size(value: SizeOptions): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:constraintSize(value: ConstraintSizeOptions): T;
起始版本:7|类名:CommonMethod
方法 or 属性:constraintSize(value: ConstraintSizeOptions): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:layoutWeight(value: number \| string): T;
起始版本:7|类名:CommonMethod
方法 or 属性:layoutWeight(value: number \| string): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:padding(value: Padding \| Length): T;
起始版本:7|类名:CommonMethod
方法 or 属性:padding(value: Padding \| Length): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:margin(value: Margin \| Length): T;
起始版本:7|类名:CommonMethod
方法 or 属性:margin(value: Margin \| Length): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:backgroundColor(value: ResourceColor): T;
起始版本:7|类名:CommonMethod
方法 or 属性:backgroundColor(value: ResourceColor): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:backgroundImage(src: ResourceStr, repeat?: ImageRepeat): T;
起始版本:7|类名:CommonMethod
方法 or 属性:backgroundImage(src: ResourceStr, repeat?: ImageRepeat): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:backgroundImageSize(value: SizeOptions \| ImageSize): T;
起始版本:7|类名:CommonMethod
方法 or 属性:backgroundImageSize(value: SizeOptions \| ImageSize): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:backgroundImagePosition(value: Position \| Alignment): T;
起始版本:7|类名:CommonMethod
方法 or 属性:backgroundImagePosition(value: Position \| Alignment): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:opacity(value: number \| Resource): T;
起始版本:7|类名:CommonMethod
方法 or 属性:opacity(value: number \| Resource): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:border(value: BorderOptions): T;
起始版本:7|类名:CommonMethod
方法 or 属性:border(value: BorderOptions): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:borderStyle(value: BorderStyle): T;
起始版本:7|类名:CommonMethod
方法 or 属性:borderStyle(value: BorderStyle): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:borderWidth(value: Length): T;
起始版本:7|类名:CommonMethod
方法 or 属性:borderWidth(value: Length): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:borderColor(value: ResourceColor): T;
起始版本:7|类名:CommonMethod
方法 or 属性:borderColor(value: ResourceColor): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:borderRadius(value: Length): T;
起始版本:7|类名:CommonMethod
方法 or 属性:borderRadius(value: Length): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:onClick(event: (event?: ClickEvent) => void): T;
起始版本:7|类名:CommonMethod
方法 or 属性:onClick(event: (event?: ClickEvent) => void): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:animation(value: AnimateParam): T;
起始版本:7|类名:CommonMethod
方法 or 属性:animation(value: AnimateParam): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:transition(value: TransitionOptions): T;
起始版本:7|类名:CommonMethod
方法 or 属性:transition(value: TransitionOptions): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:blur(value: number): T;
起始版本:7|类名:CommonMethod
方法 or 属性:blur(value: number): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:brightness(value: number): T;
起始版本:7|类名:CommonMethod
方法 or 属性:brightness(value: number): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:contrast(value: number): T;
起始版本:7|类名:CommonMethod
方法 or 属性:contrast(value: number): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:grayscale(value: number): T;
起始版本:7|类名:CommonMethod
方法 or 属性:grayscale(value: number): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:colorBlend(value: Color \| string \| Resource): T;
起始版本:7|类名:CommonMethod
方法 or 属性:colorBlend(value: Color \| string \| Resource): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:saturate(value: number): T;
起始版本:7|类名:CommonMethod
方法 or 属性:saturate(value: number): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:sepia(value: number): T;
起始版本:7|类名:CommonMethod
方法 or 属性:sepia(value: number): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:invert(value: number): T;
起始版本:7|类名:CommonMethod
方法 or 属性:invert(value: number): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:hueRotate(value: number \| string): T;
起始版本:7|类名:CommonMethod
方法 or 属性:hueRotate(value: number \| string): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:backdropBlur(value: number): T;
起始版本:7|类名:CommonMethod
方法 or 属性:backdropBlur(value: number): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:translate(value: TranslateOptions): T;
起始版本:7|类名:CommonMethod
方法 or 属性:translate(value: TranslateOptions): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:scale(value: ScaleOptions): T;
起始版本:7|类名:CommonMethod
方法 or 属性:scale(value: ScaleOptions): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:rotate(value: RotateOptions): T;
起始版本:7|类名:CommonMethod
方法 or 属性:rotate(value: RotateOptions): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:onAppear(event: () => void): T;
起始版本:7|类名:CommonMethod
方法 or 属性:onAppear(event: () => void): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:onDisAppear(event: () => void): T;
起始版本:7|类名:CommonMethod
方法 or 属性:onDisAppear(event: () => void): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:visibility(value: Visibility): T;
起始版本:7|类名:CommonMethod
方法 or 属性:visibility(value: Visibility): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:flexGrow(value: number): T;
起始版本:7|类名:CommonMethod
方法 or 属性:flexGrow(value: number): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:flexShrink(value: number): T;
起始版本:7|类名:CommonMethod
方法 or 属性:flexShrink(value: number): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:flexBasis(value: number \| string): T;
起始版本:7|类名:CommonMethod
方法 or 属性:flexBasis(value: number \| string): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:alignSelf(value: ItemAlign): T;
起始版本:7|类名:CommonMethod
方法 or 属性:alignSelf(value: ItemAlign): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:displayPriority(value: number): T;
起始版本:7|类名:CommonMethod
方法 or 属性:displayPriority(value: number): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:zIndex(value: number): T;
起始版本:7|类名:CommonMethod
方法 or 属性:zIndex(value: number): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:direction(value: Direction): T;
起始版本:7|类名:CommonMethod
方法 or 属性:direction(value: Direction): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:align(value: Alignment): T;
起始版本:7|类名:CommonMethod
方法 or 属性:align(value: Alignment): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:position(value: Position): T;
起始版本:7|类名:CommonMethod
方法 or 属性:position(value: Position): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:markAnchor(value: Position): T;
起始版本:7|类名:CommonMethod
方法 or 属性:markAnchor(value: Position): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:offset(value: Position): T;
起始版本:7|类名:CommonMethod
方法 or 属性:offset(value: Position): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:enabled(value: boolean): T;
起始版本:7|类名:CommonMethod
方法 or 属性:enabled(value: boolean): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:aspectRatio(value: number): T;
起始版本:7|类名:CommonMethod
方法 or 属性:aspectRatio(value: number): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:overlay(value: string, options?: { align?: Alignment; offset?: { x?: number; y?: number } }): T;
起始版本:7|类名:CommonMethod
方法 or 属性:overlay(value: string, options?: { align?: Alignment; offset?: { x?: number; y?: number } }): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:linearGradient(value: {
angle?: number \| string;
direction?: GradientDirection;
colors: Array\;
repeating?: boolean;
}): T;
起始版本:7|类名:CommonMethod
方法 or 属性:linearGradient(value: {
angle?: number \| string;
direction?: GradientDirection;
colors: Array\;
repeating?: boolean;
}): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:sweepGradient(value: {
center: Array\;
start?: number \| string;
end?: number \| string;
rotation?: number \| string;
colors: Array\;
repeating?: boolean;
}): T;
起始版本:7|类名:CommonMethod
方法 or 属性:sweepGradient(value: {
center: Array\;
start?: number \| string;
end?: number \| string;
rotation?: number \| string;
colors: Array\;
repeating?: boolean;
}): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:radialGradient(value: { center: Array\; radius: number \| string; colors: Array\; repeating?: boolean }): T;
起始版本:7|类名:CommonMethod
方法 or 属性:radialGradient(value: { center: Array\; radius: number \| string; colors: Array\; repeating?: boolean }): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:shadow(value: {
radius: number \| Resource;
color?: Color \| string \| Resource;
offsetX?: number \| Resource;
offsetY?: number \| Resource;
}): T;
起始版本:7|类名:CommonMethod
方法 or 属性:shadow(value: {
radius: number \| Resource;
color?: Color \| string \| Resource;
offsetX?: number \| Resource;
offsetY?: number \| Resource;
}): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:clip(value: boolean \| CircleAttribute \| EllipseAttribute \| PathAttribute \| RectAttribute): T;
起始版本:7|类名:CommonMethod
方法 or 属性:clip(value: boolean \| CircleAttribute \| EllipseAttribute \| PathAttribute \| RectAttribute): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:mask(value: CircleAttribute \| EllipseAttribute \| PathAttribute \| RectAttribute): T;
起始版本:7|类名:CommonMethod
方法 or 属性:mask(value: CircleAttribute \| EllipseAttribute \| PathAttribute \| RectAttribute): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:id(value: string): T;
起始版本:8|类名:CommonMethod
方法 or 属性:id(value: string): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonMethod
方法 or 属性:stateStyles(value: StateStyles): T;
起始版本:8|类名:CommonMethod
方法 or 属性:stateStyles(value: StateStyles): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonAttribute
起始版本:7|类名:CommonAttribute
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonInterface
起始版本:7|类名:CommonInterface
起始版本:9|common.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const CommonInstance: CommonAttribute;
起始版本:7|类名:global
方法 or 属性:declare const CommonInstance: CommonAttribute;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Common: CommonInterface;
起始版本:7|类名:global
方法 or 属性:declare const Common: CommonInterface;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonShapeMethod
起始版本:7|类名:CommonShapeMethod
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonShapeMethod
方法 or 属性:constructor();
起始版本:7|类名:CommonShapeMethod
方法 or 属性:constructor();
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonShapeMethod
方法 or 属性:stroke(value: ResourceColor): T;
起始版本:7|类名:CommonShapeMethod
方法 or 属性:stroke(value: ResourceColor): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonShapeMethod
方法 or 属性:fill(value: ResourceColor): T;
起始版本:7|类名:CommonShapeMethod
方法 or 属性:fill(value: ResourceColor): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonShapeMethod
方法 or 属性:strokeDashOffset(value: number \| string): T;
起始版本:7|类名:CommonShapeMethod
方法 or 属性:strokeDashOffset(value: number \| string): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonShapeMethod
方法 or 属性:strokeLineCap(value: LineCapStyle): T;
起始版本:7|类名:CommonShapeMethod
方法 or 属性:strokeLineCap(value: LineCapStyle): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonShapeMethod
方法 or 属性:strokeLineJoin(value: LineJoinStyle): T;
起始版本:7|类名:CommonShapeMethod
方法 or 属性:strokeLineJoin(value: LineJoinStyle): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonShapeMethod
方法 or 属性:strokeMiterLimit(value: number \| string): T;
起始版本:7|类名:CommonShapeMethod
方法 or 属性:strokeMiterLimit(value: number \| string): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonShapeMethod
方法 or 属性:strokeOpacity(value: number \| string \| Resource): T;
起始版本:7|类名:CommonShapeMethod
方法 or 属性:strokeOpacity(value: number \| string \| Resource): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonShapeMethod
方法 or 属性:fillOpacity(value: number \| string \| Resource): T;
起始版本:7|类名:CommonShapeMethod
方法 or 属性:fillOpacity(value: number \| string \| Resource): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonShapeMethod
方法 or 属性:strokeWidth(value: Length): T;
起始版本:7|类名:CommonShapeMethod
方法 or 属性:strokeWidth(value: Length): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonShapeMethod
方法 or 属性:antiAlias(value: boolean): T;
起始版本:7|类名:CommonShapeMethod
方法 or 属性:antiAlias(value: boolean): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CommonShapeMethod
方法 or 属性:strokeDashArray(value: Array\): T;
起始版本:7|类名:CommonShapeMethod
方法 or 属性:strokeDashArray(value: Array\): T;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CustomComponent
方法 or 属性:build(): void;
起始版本:7|类名:CustomComponent
方法 or 属性:build(): void;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CustomComponent
方法 or 属性:aboutToAppear?(): void;
起始版本:7|类名:CustomComponent
方法 or 属性:aboutToAppear?(): void;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CustomComponent
方法 or 属性:aboutToDisappear?(): void;
起始版本:7|类名:CustomComponent
方法 or 属性:aboutToDisappear?(): void;
起始版本:9|common.d.ts|
+|起始版本有变化|类名:View
起始版本:7|类名:View
起始版本:9|common.d.ts|
+|起始版本有变化|类名:CounterInterface
起始版本:7|类名:CounterInterface
起始版本:9|counter.d.ts|
+|起始版本有变化|类名:CounterInterface
方法 or 属性:(): CounterAttribute;
起始版本:7|类名:CounterInterface
方法 or 属性:(): CounterAttribute;
起始版本:9|counter.d.ts|
+|起始版本有变化|类名:CounterAttribute
起始版本:7|类名:CounterAttribute
起始版本:9|counter.d.ts|
+|起始版本有变化|类名:CounterAttribute
方法 or 属性:onInc(event: () => void): CounterAttribute;
起始版本:7|类名:CounterAttribute
方法 or 属性:onInc(event: () => void): CounterAttribute;
起始版本:9|counter.d.ts|
+|起始版本有变化|类名:CounterAttribute
方法 or 属性:onDec(event: () => void): CounterAttribute;
起始版本:7|类名:CounterAttribute
方法 or 属性:onDec(event: () => void): CounterAttribute;
起始版本:9|counter.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const CounterInstance: CounterAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const CounterInstance: CounterAttribute;
起始版本:9|counter.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Counter: CounterInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Counter: CounterInterface;
起始版本:9|counter.d.ts|
+|起始版本有变化|类名:DataPanelType
起始版本:8|类名:DataPanelType
起始版本:9|data_panel.d.ts|
+|起始版本有变化|类名:DataPanelType
方法 or 属性:Line
起始版本:8|类名:DataPanelType
方法 or 属性:Line
起始版本:9|data_panel.d.ts|
+|起始版本有变化|类名:DataPanelType
方法 or 属性:Circle
起始版本:8|类名:DataPanelType
方法 or 属性:Circle
起始版本:9|data_panel.d.ts|
+|起始版本有变化|类名:DataPanelOptions
起始版本:7|类名:DataPanelOptions
起始版本:9|data_panel.d.ts|
+|起始版本有变化|类名:DataPanelOptions
方法 or 属性:values: number[];
起始版本:7|类名:DataPanelOptions
方法 or 属性:values: number[];
起始版本:9|data_panel.d.ts|
+|起始版本有变化|类名:DataPanelOptions
方法 or 属性:max?: number;
起始版本:7|类名:DataPanelOptions
方法 or 属性:max?: number;
起始版本:9|data_panel.d.ts|
+|起始版本有变化|类名:DataPanelOptions
方法 or 属性:type?: DataPanelType;
起始版本:8|类名:DataPanelOptions
方法 or 属性:type?: DataPanelType;
起始版本:9|data_panel.d.ts|
+|起始版本有变化|类名:DataPanelInterface
起始版本:7|类名:DataPanelInterface
起始版本:9|data_panel.d.ts|
+|起始版本有变化|类名:DataPanelInterface
方法 or 属性:(options: DataPanelOptions): DataPanelAttribute;
起始版本:7|类名:DataPanelInterface
方法 or 属性:(options: DataPanelOptions): DataPanelAttribute;
起始版本:9|data_panel.d.ts|
+|起始版本有变化|类名:DataPanelAttribute
起始版本:7|类名:DataPanelAttribute
起始版本:9|data_panel.d.ts|
+|起始版本有变化|类名:DataPanelAttribute
方法 or 属性:closeEffect(value: boolean): DataPanelAttribute;
起始版本:7|类名:DataPanelAttribute
方法 or 属性:closeEffect(value: boolean): DataPanelAttribute;
起始版本:9|data_panel.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const DataPanel: DataPanelInterface
起始版本:N/A|类名:global
方法 or 属性:declare const DataPanel: DataPanelInterface
起始版本:9|data_panel.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const DataPanelInstance: DataPanelAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const DataPanelInstance: DataPanelAttribute;
起始版本:9|data_panel.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const DatePicker: DatePickerInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const DatePicker: DatePickerInterface;
起始版本:8|date_picker.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const DatePickerInstance: DatePickerAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const DatePickerInstance: DatePickerAttribute;
起始版本:8|date_picker.d.ts|
+|起始版本有变化|类名:DividerInterface
起始版本:7|类名:DividerInterface
起始版本:9|divider.d.ts|
+|起始版本有变化|类名:DividerInterface
方法 or 属性:(): DividerAttribute;
起始版本:7|类名:DividerInterface
方法 or 属性:(): DividerAttribute;
起始版本:9|divider.d.ts|
+|起始版本有变化|类名:DividerAttribute
起始版本:7|类名:DividerAttribute
起始版本:9|divider.d.ts|
+|起始版本有变化|类名:DividerAttribute
方法 or 属性:vertical(value: boolean): DividerAttribute;
起始版本:7|类名:DividerAttribute
方法 or 属性:vertical(value: boolean): DividerAttribute;
起始版本:9|divider.d.ts|
+|起始版本有变化|类名:DividerAttribute
方法 or 属性:color(value: ResourceColor): DividerAttribute;
起始版本:7|类名:DividerAttribute
方法 or 属性:color(value: ResourceColor): DividerAttribute;
起始版本:9|divider.d.ts|
+|起始版本有变化|类名:DividerAttribute
方法 or 属性:strokeWidth(value: number \| string): DividerAttribute;
起始版本:7|类名:DividerAttribute
方法 or 属性:strokeWidth(value: number \| string): DividerAttribute;
起始版本:9|divider.d.ts|
+|起始版本有变化|类名:DividerAttribute
方法 or 属性:lineCap(value: LineCapStyle): DividerAttribute;
起始版本:7|类名:DividerAttribute
方法 or 属性:lineCap(value: LineCapStyle): DividerAttribute;
起始版本:9|divider.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Divider: DividerInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Divider: DividerInterface;
起始版本:9|divider.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const DividerInstance: DividerAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const DividerInstance: DividerAttribute;
起始版本:9|divider.d.ts|
+|起始版本有变化|类名:EllipseInterface
起始版本:7|类名:EllipseInterface
起始版本:9|ellipse.d.ts|
+|起始版本有变化|类名:EllipseInterface
方法 or 属性:new (value?: { width?: string \| number; height?: string \| number }): EllipseAttribute;
起始版本:7|类名:EllipseInterface
方法 or 属性:new (value?: { width?: string \| number; height?: string \| number }): EllipseAttribute;
起始版本:9|ellipse.d.ts|
+|起始版本有变化|类名:EllipseInterface
方法 or 属性:(value?: { width?: string \| number; height?: string \| number }): EllipseAttribute;
起始版本:7|类名:EllipseInterface
方法 or 属性:(value?: { width?: string \| number; height?: string \| number }): EllipseAttribute;
起始版本:9|ellipse.d.ts|
+|起始版本有变化|类名:EllipseAttribute
起始版本:7|类名:EllipseAttribute
起始版本:9|ellipse.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Ellipse: EllipseInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Ellipse: EllipseInterface;
起始版本:9|ellipse.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const EllipseInstance: EllipseAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const EllipseInstance: EllipseAttribute;
起始版本:9|ellipse.d.ts|
+|起始版本有变化|类名:Color
起始版本:7|类名:Color
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Color
方法 or 属性:White
起始版本:7|类名:Color
方法 or 属性:White
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Color
方法 or 属性:Black
起始版本:7|类名:Color
方法 or 属性:Black
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Color
方法 or 属性:Blue
起始版本:7|类名:Color
方法 or 属性:Blue
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Color
方法 or 属性:Brown
起始版本:7|类名:Color
方法 or 属性:Brown
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Color
方法 or 属性:Gray
起始版本:7|类名:Color
方法 or 属性:Gray
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Color
方法 or 属性:Green
起始版本:7|类名:Color
方法 or 属性:Green
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Color
方法 or 属性:Grey
起始版本:7|类名:Color
方法 or 属性:Grey
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Color
方法 or 属性:Orange
起始版本:7|类名:Color
方法 or 属性:Orange
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Color
方法 or 属性:Pink
起始版本:7|类名:Color
方法 or 属性:Pink
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Color
方法 or 属性:Red
起始版本:7|类名:Color
方法 or 属性:Red
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Color
方法 or 属性:Yellow
起始版本:7|类名:Color
方法 or 属性:Yellow
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:ImageFit
起始版本:7|类名:ImageFit
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:ImageFit
方法 or 属性:Contain
起始版本:7|类名:ImageFit
方法 or 属性:Contain
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:ImageFit
方法 or 属性:Cover
起始版本:7|类名:ImageFit
方法 or 属性:Cover
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:ImageFit
方法 or 属性:Auto
起始版本:7|类名:ImageFit
方法 or 属性:Auto
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:ImageFit
方法 or 属性:Fill
起始版本:7|类名:ImageFit
方法 or 属性:Fill
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:ImageFit
方法 or 属性:ScaleDown
起始版本:7|类名:ImageFit
方法 or 属性:ScaleDown
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:ImageFit
方法 or 属性:None
起始版本:7|类名:ImageFit
方法 or 属性:None
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:BorderStyle
起始版本:7|类名:BorderStyle
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:BorderStyle
方法 or 属性:Dotted
起始版本:7|类名:BorderStyle
方法 or 属性:Dotted
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:BorderStyle
方法 or 属性:Dashed
起始版本:7|类名:BorderStyle
方法 or 属性:Dashed
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:BorderStyle
方法 or 属性:Solid
起始版本:7|类名:BorderStyle
方法 or 属性:Solid
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:LineJoinStyle
起始版本:7|类名:LineJoinStyle
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:LineJoinStyle
方法 or 属性:Miter
起始版本:7|类名:LineJoinStyle
方法 or 属性:Miter
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:LineJoinStyle
方法 or 属性:Round
起始版本:7|类名:LineJoinStyle
方法 or 属性:Round
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:LineJoinStyle
方法 or 属性:Bevel
起始版本:7|类名:LineJoinStyle
方法 or 属性:Bevel
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:TouchType
起始版本:7|类名:TouchType
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:TouchType
方法 or 属性:Down
起始版本:7|类名:TouchType
方法 or 属性:Down
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:TouchType
方法 or 属性:Up
起始版本:7|类名:TouchType
方法 or 属性:Up
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:TouchType
方法 or 属性:Move
起始版本:7|类名:TouchType
方法 or 属性:Move
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:TouchType
方法 or 属性:Cancel
起始版本:7|类名:TouchType
方法 or 属性:Cancel
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:MouseButton
起始版本:8|类名:MouseButton
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:MouseButton
方法 or 属性:Left
起始版本:8|类名:MouseButton
方法 or 属性:Left
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:MouseButton
方法 or 属性:Right
起始版本:8|类名:MouseButton
方法 or 属性:Right
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:MouseButton
方法 or 属性:Middle
起始版本:8|类名:MouseButton
方法 or 属性:Middle
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:MouseButton
方法 or 属性:Back
起始版本:8|类名:MouseButton
方法 or 属性:Back
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:MouseButton
方法 or 属性:Forward
起始版本:8|类名:MouseButton
方法 or 属性:Forward
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:MouseButton
方法 or 属性:None
起始版本:8|类名:MouseButton
方法 or 属性:None
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:MouseAction
起始版本:8|类名:MouseAction
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:MouseAction
方法 or 属性:Press
起始版本:8|类名:MouseAction
方法 or 属性:Press
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:MouseAction
方法 or 属性:Release
起始版本:8|类名:MouseAction
方法 or 属性:Release
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:MouseAction
方法 or 属性:Move
起始版本:8|类名:MouseAction
方法 or 属性:Move
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:MouseAction
方法 or 属性:Hover
起始版本:8|类名:MouseAction
方法 or 属性:Hover
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:AnimationStatus
起始版本:7|类名:AnimationStatus
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:AnimationStatus
方法 or 属性:Initial
起始版本:7|类名:AnimationStatus
方法 or 属性:Initial
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:AnimationStatus
方法 or 属性:Running
起始版本:7|类名:AnimationStatus
方法 or 属性:Running
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:AnimationStatus
方法 or 属性:Paused
起始版本:7|类名:AnimationStatus
方法 or 属性:Paused
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:AnimationStatus
方法 or 属性:Stopped
起始版本:7|类名:AnimationStatus
方法 or 属性:Stopped
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Curve
起始版本:7|类名:Curve
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Curve
方法 or 属性:Linear
起始版本:7|类名:Curve
方法 or 属性:Linear
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Curve
方法 or 属性:Ease
起始版本:7|类名:Curve
方法 or 属性:Ease
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Curve
方法 or 属性:EaseIn
起始版本:7|类名:Curve
方法 or 属性:EaseIn
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Curve
方法 or 属性:EaseOut
起始版本:7|类名:Curve
方法 or 属性:EaseOut
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Curve
方法 or 属性:EaseInOut
起始版本:7|类名:Curve
方法 or 属性:EaseInOut
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Curve
方法 or 属性:FastOutSlowIn
起始版本:7|类名:Curve
方法 or 属性:FastOutSlowIn
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Curve
方法 or 属性:LinearOutSlowIn
起始版本:7|类名:Curve
方法 or 属性:LinearOutSlowIn
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Curve
方法 or 属性:FastOutLinearIn
起始版本:7|类名:Curve
方法 or 属性:FastOutLinearIn
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Curve
方法 or 属性:ExtremeDeceleration
起始版本:7|类名:Curve
方法 or 属性:ExtremeDeceleration
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Curve
方法 or 属性:Sharp
起始版本:7|类名:Curve
方法 or 属性:Sharp
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Curve
方法 or 属性:Rhythm
起始版本:7|类名:Curve
方法 or 属性:Rhythm
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Curve
方法 or 属性:Smooth
起始版本:7|类名:Curve
方法 or 属性:Smooth
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Curve
方法 or 属性:Friction
起始版本:7|类名:Curve
方法 or 属性:Friction
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:FillMode
起始版本:7|类名:FillMode
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:FillMode
方法 or 属性:None
起始版本:7|类名:FillMode
方法 or 属性:None
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:FillMode
方法 or 属性:Forwards
起始版本:7|类名:FillMode
方法 or 属性:Forwards
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:FillMode
方法 or 属性:Backwards
起始版本:7|类名:FillMode
方法 or 属性:Backwards
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:FillMode
方法 or 属性:Both
起始版本:7|类名:FillMode
方法 or 属性:Both
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:PlayMode
起始版本:7|类名:PlayMode
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:PlayMode
方法 or 属性:Normal
起始版本:7|类名:PlayMode
方法 or 属性:Normal
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:PlayMode
方法 or 属性:Reverse
起始版本:7|类名:PlayMode
方法 or 属性:Reverse
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:PlayMode
方法 or 属性:Alternate
起始版本:7|类名:PlayMode
方法 or 属性:Alternate
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:PlayMode
方法 or 属性:AlternateReverse
起始版本:7|类名:PlayMode
方法 or 属性:AlternateReverse
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:KeyType
起始版本:7|类名:KeyType
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:KeyType
方法 or 属性:Down
起始版本:7|类名:KeyType
方法 or 属性:Down
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:KeyType
方法 or 属性:Up
起始版本:7|类名:KeyType
方法 or 属性:Up
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:KeySource
起始版本:7|类名:KeySource
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:KeySource
方法 or 属性:Unknown
起始版本:7|类名:KeySource
方法 or 属性:Unknown
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:KeySource
方法 or 属性:Keyboard
起始版本:7|类名:KeySource
方法 or 属性:Keyboard
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Edge
起始版本:7|类名:Edge
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Edge
方法 or 属性:Top
起始版本:7|类名:Edge
方法 or 属性:Top
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Edge
方法 or 属性:Bottom
起始版本:7|类名:Edge
方法 or 属性:Bottom
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Edge
方法 or 属性:Start
起始版本:7|类名:Edge
方法 or 属性:Start
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Edge
方法 or 属性:End
起始版本:7|类名:Edge
方法 or 属性:End
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Week
起始版本:7|类名:Week
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Week
方法 or 属性:Mon
起始版本:7|类名:Week
方法 or 属性:Mon
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Week
方法 or 属性:Tue
起始版本:7|类名:Week
方法 or 属性:Tue
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Week
方法 or 属性:Wed
起始版本:7|类名:Week
方法 or 属性:Wed
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Week
方法 or 属性:Thur
起始版本:7|类名:Week
方法 or 属性:Thur
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Week
方法 or 属性:Fri
起始版本:7|类名:Week
方法 or 属性:Fri
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Week
方法 or 属性:Sat
起始版本:7|类名:Week
方法 or 属性:Sat
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Week
方法 or 属性:Sun
起始版本:7|类名:Week
方法 or 属性:Sun
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Direction
起始版本:7|类名:Direction
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Direction
方法 or 属性:Ltr
起始版本:7|类名:Direction
方法 or 属性:Ltr
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Direction
方法 or 属性:Rtl
起始版本:7|类名:Direction
方法 or 属性:Rtl
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Direction
方法 or 属性:Auto
起始版本:7|类名:Direction
方法 or 属性:Auto
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:BarState
起始版本:7|类名:BarState
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:BarState
方法 or 属性:Off
起始版本:7|类名:BarState
方法 or 属性:Off
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:BarState
方法 or 属性:Auto
起始版本:7|类名:BarState
方法 or 属性:Auto
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:BarState
方法 or 属性:On
起始版本:7|类名:BarState
方法 or 属性:On
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:EdgeEffect
起始版本:7|类名:EdgeEffect
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:EdgeEffect
方法 or 属性:Spring
起始版本:7|类名:EdgeEffect
方法 or 属性:Spring
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:EdgeEffect
方法 or 属性:Fade
起始版本:7|类名:EdgeEffect
方法 or 属性:Fade
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:EdgeEffect
方法 or 属性:None
起始版本:7|类名:EdgeEffect
方法 or 属性:None
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Alignment
起始版本:7|类名:Alignment
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Alignment
方法 or 属性:TopStart
起始版本:7|类名:Alignment
方法 or 属性:TopStart
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Alignment
方法 or 属性:Top
起始版本:7|类名:Alignment
方法 or 属性:Top
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Alignment
方法 or 属性:TopEnd
起始版本:7|类名:Alignment
方法 or 属性:TopEnd
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Alignment
方法 or 属性:Start
起始版本:7|类名:Alignment
方法 or 属性:Start
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Alignment
方法 or 属性:Center
起始版本:7|类名:Alignment
方法 or 属性:Center
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Alignment
方法 or 属性:End
起始版本:7|类名:Alignment
方法 or 属性:End
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Alignment
方法 or 属性:BottomStart
起始版本:7|类名:Alignment
方法 or 属性:BottomStart
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Alignment
方法 or 属性:Bottom
起始版本:7|类名:Alignment
方法 or 属性:Bottom
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Alignment
方法 or 属性:BottomEnd
起始版本:7|类名:Alignment
方法 or 属性:BottomEnd
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:TransitionType
起始版本:7|类名:TransitionType
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:TransitionType
方法 or 属性:All
起始版本:7|类名:TransitionType
方法 or 属性:All
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:TransitionType
方法 or 属性:Insert
起始版本:7|类名:TransitionType
方法 or 属性:Insert
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:TransitionType
方法 or 属性:Delete
起始版本:7|类名:TransitionType
方法 or 属性:Delete
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:RelateType
起始版本:7|类名:RelateType
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:RelateType
方法 or 属性:FILL
起始版本:7|类名:RelateType
方法 or 属性:FILL
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:RelateType
方法 or 属性:FIT
起始版本:7|类名:RelateType
方法 or 属性:FIT
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Visibility
起始版本:7|类名:Visibility
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Visibility
方法 or 属性:Visible
起始版本:7|类名:Visibility
方法 or 属性:Visible
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Visibility
方法 or 属性:Hidden
起始版本:7|类名:Visibility
方法 or 属性:Hidden
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Visibility
方法 or 属性:None
起始版本:7|类名:Visibility
方法 or 属性:None
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:LineCapStyle
起始版本:7|类名:LineCapStyle
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:LineCapStyle
方法 or 属性:Butt
起始版本:7|类名:LineCapStyle
方法 or 属性:Butt
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:LineCapStyle
方法 or 属性:Round
起始版本:7|类名:LineCapStyle
方法 or 属性:Round
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:LineCapStyle
方法 or 属性:Square
起始版本:7|类名:LineCapStyle
方法 or 属性:Square
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Axis
起始版本:7|类名:Axis
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Axis
方法 or 属性:Vertical
起始版本:7|类名:Axis
方法 or 属性:Vertical
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Axis
方法 or 属性:Horizontal
起始版本:7|类名:Axis
方法 or 属性:Horizontal
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:HorizontalAlign
起始版本:7|类名:HorizontalAlign
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:HorizontalAlign
方法 or 属性:Start
起始版本:7|类名:HorizontalAlign
方法 or 属性:Start
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:HorizontalAlign
方法 or 属性:Center
起始版本:7|类名:HorizontalAlign
方法 or 属性:Center
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:HorizontalAlign
方法 or 属性:End
起始版本:7|类名:HorizontalAlign
方法 or 属性:End
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:FlexAlign
起始版本:7|类名:FlexAlign
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:FlexAlign
方法 or 属性:Start
起始版本:7|类名:FlexAlign
方法 or 属性:Start
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:FlexAlign
方法 or 属性:Center
起始版本:7|类名:FlexAlign
方法 or 属性:Center
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:FlexAlign
方法 or 属性:End
起始版本:7|类名:FlexAlign
方法 or 属性:End
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:FlexAlign
方法 or 属性:SpaceBetween
起始版本:7|类名:FlexAlign
方法 or 属性:SpaceBetween
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:FlexAlign
方法 or 属性:SpaceAround
起始版本:7|类名:FlexAlign
方法 or 属性:SpaceAround
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:FlexAlign
方法 or 属性:SpaceEvenly
起始版本:7|类名:FlexAlign
方法 or 属性:SpaceEvenly
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:ItemAlign
起始版本:7|类名:ItemAlign
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:ItemAlign
方法 or 属性:Auto
起始版本:7|类名:ItemAlign
方法 or 属性:Auto
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:ItemAlign
方法 or 属性:Start
起始版本:7|类名:ItemAlign
方法 or 属性:Start
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:ItemAlign
方法 or 属性:Center
起始版本:7|类名:ItemAlign
方法 or 属性:Center
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:ItemAlign
方法 or 属性:End
起始版本:7|类名:ItemAlign
方法 or 属性:End
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:ItemAlign
方法 or 属性:Baseline
起始版本:7|类名:ItemAlign
方法 or 属性:Baseline
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:ItemAlign
方法 or 属性:Stretch
起始版本:7|类名:ItemAlign
方法 or 属性:Stretch
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:FlexDirection
起始版本:7|类名:FlexDirection
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:FlexDirection
方法 or 属性:Row
起始版本:7|类名:FlexDirection
方法 or 属性:Row
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:FlexDirection
方法 or 属性:Column
起始版本:7|类名:FlexDirection
方法 or 属性:Column
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:FlexDirection
方法 or 属性:RowReverse
起始版本:7|类名:FlexDirection
方法 or 属性:RowReverse
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:FlexDirection
方法 or 属性:ColumnReverse
起始版本:7|类名:FlexDirection
方法 or 属性:ColumnReverse
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:FlexWrap
起始版本:7|类名:FlexWrap
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:FlexWrap
方法 or 属性:NoWrap
起始版本:7|类名:FlexWrap
方法 or 属性:NoWrap
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:FlexWrap
方法 or 属性:Wrap
起始版本:7|类名:FlexWrap
方法 or 属性:Wrap
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:FlexWrap
方法 or 属性:WrapReverse
起始版本:7|类名:FlexWrap
方法 or 属性:WrapReverse
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:VerticalAlign
起始版本:7|类名:VerticalAlign
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:VerticalAlign
方法 or 属性:Top
起始版本:7|类名:VerticalAlign
方法 or 属性:Top
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:VerticalAlign
方法 or 属性:Center
起始版本:7|类名:VerticalAlign
方法 or 属性:Center
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:VerticalAlign
方法 or 属性:Bottom
起始版本:7|类名:VerticalAlign
方法 or 属性:Bottom
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:ImageRepeat
起始版本:7|类名:ImageRepeat
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:ImageRepeat
方法 or 属性:NoRepeat
起始版本:7|类名:ImageRepeat
方法 or 属性:NoRepeat
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:ImageRepeat
方法 or 属性:X
起始版本:7|类名:ImageRepeat
方法 or 属性:X
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:ImageRepeat
方法 or 属性:Y
起始版本:7|类名:ImageRepeat
方法 or 属性:Y
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:ImageRepeat
方法 or 属性:XY
起始版本:7|类名:ImageRepeat
方法 or 属性:XY
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:ImageSize
起始版本:7|类名:ImageSize
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:ImageSize
方法 or 属性:Auto
起始版本:7|类名:ImageSize
方法 or 属性:Auto
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:ImageSize
方法 or 属性:Cover
起始版本:7|类名:ImageSize
方法 or 属性:Cover
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:ImageSize
方法 or 属性:Contain
起始版本:7|类名:ImageSize
方法 or 属性:Contain
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:GradientDirection
起始版本:7|类名:GradientDirection
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:GradientDirection
方法 or 属性:Left
起始版本:7|类名:GradientDirection
方法 or 属性:Left
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:GradientDirection
方法 or 属性:Top
起始版本:7|类名:GradientDirection
方法 or 属性:Top
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:GradientDirection
方法 or 属性:Right
起始版本:7|类名:GradientDirection
方法 or 属性:Right
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:GradientDirection
方法 or 属性:Bottom
起始版本:7|类名:GradientDirection
方法 or 属性:Bottom
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:GradientDirection
方法 or 属性:LeftTop
起始版本:7|类名:GradientDirection
方法 or 属性:LeftTop
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:GradientDirection
方法 or 属性:LeftBottom
起始版本:7|类名:GradientDirection
方法 or 属性:LeftBottom
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:GradientDirection
方法 or 属性:RightTop
起始版本:7|类名:GradientDirection
方法 or 属性:RightTop
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:GradientDirection
方法 or 属性:RightBottom
起始版本:7|类名:GradientDirection
方法 or 属性:RightBottom
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:GradientDirection
方法 or 属性:None
起始版本:7|类名:GradientDirection
方法 or 属性:None
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:SharedTransitionEffectType
起始版本:7|类名:SharedTransitionEffectType
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:SharedTransitionEffectType
方法 or 属性:Static
起始版本:7|类名:SharedTransitionEffectType
方法 or 属性:Static
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:SharedTransitionEffectType
方法 or 属性:Exchange
起始版本:7|类名:SharedTransitionEffectType
方法 or 属性:Exchange
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:FontStyle
起始版本:7|类名:FontStyle
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:FontStyle
方法 or 属性:Normal
起始版本:7|类名:FontStyle
方法 or 属性:Normal
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:FontStyle
方法 or 属性:Italic
起始版本:7|类名:FontStyle
方法 or 属性:Italic
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:FontWeight
起始版本:7|类名:FontWeight
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:FontWeight
方法 or 属性:Lighter
起始版本:7|类名:FontWeight
方法 or 属性:Lighter
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:FontWeight
方法 or 属性:Normal
起始版本:7|类名:FontWeight
方法 or 属性:Normal
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:FontWeight
方法 or 属性:Regular
起始版本:7|类名:FontWeight
方法 or 属性:Regular
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:FontWeight
方法 or 属性:Medium
起始版本:7|类名:FontWeight
方法 or 属性:Medium
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:FontWeight
方法 or 属性:Bold
起始版本:7|类名:FontWeight
方法 or 属性:Bold
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:FontWeight
方法 or 属性:Bolder
起始版本:7|类名:FontWeight
方法 or 属性:Bolder
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:TextAlign
起始版本:7|类名:TextAlign
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:TextAlign
方法 or 属性:Center
起始版本:7|类名:TextAlign
方法 or 属性:Center
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:TextAlign
方法 or 属性:Start
起始版本:7|类名:TextAlign
方法 or 属性:Start
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:TextAlign
方法 or 属性:End
起始版本:7|类名:TextAlign
方法 or 属性:End
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:TextOverflow
起始版本:7|类名:TextOverflow
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:TextOverflow
方法 or 属性:Clip
起始版本:7|类名:TextOverflow
方法 or 属性:Clip
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:TextOverflow
方法 or 属性:Ellipsis
起始版本:7|类名:TextOverflow
方法 or 属性:Ellipsis
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:TextOverflow
方法 or 属性:None
起始版本:7|类名:TextOverflow
方法 or 属性:None
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:TextDecorationType
起始版本:7|类名:TextDecorationType
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:TextDecorationType
方法 or 属性:None
起始版本:7|类名:TextDecorationType
方法 or 属性:None
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:TextDecorationType
方法 or 属性:Underline
起始版本:7|类名:TextDecorationType
方法 or 属性:Underline
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:TextDecorationType
方法 or 属性:Overline
起始版本:7|类名:TextDecorationType
方法 or 属性:Overline
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:TextDecorationType
方法 or 属性:LineThrough
起始版本:7|类名:TextDecorationType
方法 or 属性:LineThrough
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:TextCase
起始版本:7|类名:TextCase
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:TextCase
方法 or 属性:Normal
起始版本:7|类名:TextCase
方法 or 属性:Normal
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:TextCase
方法 or 属性:LowerCase
起始版本:7|类名:TextCase
方法 or 属性:LowerCase
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:TextCase
方法 or 属性:UpperCase
起始版本:7|类名:TextCase
方法 or 属性:UpperCase
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:ResponseType
起始版本:8|类名:ResponseType
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:ResponseType
方法 or 属性:RightClick
起始版本:8|类名:ResponseType
方法 or 属性:RightClick
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:ResponseType
方法 or 属性:LongPress
起始版本:8|类名:ResponseType
方法 or 属性:LongPress
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:HoverEffect
起始版本:8|类名:HoverEffect
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:HoverEffect
方法 or 属性:Auto
起始版本:8|类名:HoverEffect
方法 or 属性:Auto
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:HoverEffect
方法 or 属性:Scale
起始版本:8|类名:HoverEffect
方法 or 属性:Scale
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:HoverEffect
方法 or 属性:Highlight
起始版本:8|类名:HoverEffect
方法 or 属性:Highlight
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:HoverEffect
方法 or 属性:None
起始版本:8|类名:HoverEffect
方法 or 属性:None
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Placement
起始版本:8|类名:Placement
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Placement
方法 or 属性:Left
起始版本:8|类名:Placement
方法 or 属性:Left
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Placement
方法 or 属性:Right
起始版本:8|类名:Placement
方法 or 属性:Right
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Placement
方法 or 属性:Top
起始版本:8|类名:Placement
方法 or 属性:Top
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Placement
方法 or 属性:Bottom
起始版本:8|类名:Placement
方法 or 属性:Bottom
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Placement
方法 or 属性:TopLeft
起始版本:8|类名:Placement
方法 or 属性:TopLeft
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Placement
方法 or 属性:TopRight
起始版本:8|类名:Placement
方法 or 属性:TopRight
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Placement
方法 or 属性:BottomLeft
起始版本:8|类名:Placement
方法 or 属性:BottomLeft
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:Placement
方法 or 属性:BottomRight
起始版本:8|类名:Placement
方法 or 属性:BottomRight
起始版本:9|enums.d.ts|
+|起始版本有变化|类名:FlexOptions
起始版本:7|类名:FlexOptions
起始版本:9|flex.d.ts|
+|起始版本有变化|类名:FlexOptions
方法 or 属性:direction?: FlexDirection;
起始版本:7|类名:FlexOptions
方法 or 属性:direction?: FlexDirection;
起始版本:9|flex.d.ts|
+|起始版本有变化|类名:FlexOptions
方法 or 属性:wrap?: FlexWrap;
起始版本:7|类名:FlexOptions
方法 or 属性:wrap?: FlexWrap;
起始版本:9|flex.d.ts|
+|起始版本有变化|类名:FlexOptions
方法 or 属性:justifyContent?: FlexAlign;
起始版本:7|类名:FlexOptions
方法 or 属性:justifyContent?: FlexAlign;
起始版本:9|flex.d.ts|
+|起始版本有变化|类名:FlexOptions
方法 or 属性:alignItems?: ItemAlign;
起始版本:7|类名:FlexOptions
方法 or 属性:alignItems?: ItemAlign;
起始版本:9|flex.d.ts|
+|起始版本有变化|类名:FlexOptions
方法 or 属性:alignContent?: FlexAlign;
起始版本:7|类名:FlexOptions
方法 or 属性:alignContent?: FlexAlign;
起始版本:9|flex.d.ts|
+|起始版本有变化|类名:FlexInterface
起始版本:7|类名:FlexInterface
起始版本:9|flex.d.ts|
+|起始版本有变化|类名:FlexInterface
方法 or 属性:(value?: FlexOptions): FlexAttribute;
起始版本:7|类名:FlexInterface
方法 or 属性:(value?: FlexOptions): FlexAttribute;
起始版本:9|flex.d.ts|
+|起始版本有变化|类名:FlexAttribute
起始版本:7|类名:FlexAttribute
起始版本:9|flex.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Flex: FlexInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Flex: FlexInterface;
起始版本:9|flex.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const FlexInstance: FlexAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const FlexInstance: FlexAttribute;
起始版本:9|flex.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const FlowItem: FlowItemInterface
起始版本:N/A|类名:global
方法 or 属性:declare const FlowItem: FlowItemInterface
起始版本:9|flow_item.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const FlowItemInstance: FlowItemAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const FlowItemInstance: FlowItemAttribute;
起始版本:9|flow_item.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const FormComponent: FormComponentInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const FormComponent: FormComponentInterface;
起始版本:7|form_component.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const FormComponentInstance: FormComponentAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const FormComponentInstance: FormComponentAttribute;
起始版本:7|form_component.d.ts|
+|起始版本有变化|类名:ForEachInterface
起始版本:7|类名:ForEachInterface
起始版本:9|for_each.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const ForEach: ForEachInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const ForEach: ForEachInterface;
起始版本:9|for_each.d.ts|
+|起始版本有变化|类名:GaugeInterface
起始版本:8|类名:GaugeInterface
起始版本:9|gauge.d.ts|
+|起始版本有变化|类名:GaugeInterface
方法 or 属性:(options: { value: number; min?: number; max?: number }): GaugeAttribute;
起始版本:8|类名:GaugeInterface
方法 or 属性:(options: { value: number; min?: number; max?: number }): GaugeAttribute;
起始版本:9|gauge.d.ts|
+|起始版本有变化|类名:GaugeAttribute
起始版本:8|类名:GaugeAttribute
起始版本:9|gauge.d.ts|
+|起始版本有变化|类名:GaugeAttribute
方法 or 属性:value(value: number): GaugeAttribute;
起始版本:8|类名:GaugeAttribute
方法 or 属性:value(value: number): GaugeAttribute;
起始版本:9|gauge.d.ts|
+|起始版本有变化|类名:GaugeAttribute
方法 or 属性:startAngle(angle: number): GaugeAttribute;
起始版本:8|类名:GaugeAttribute
方法 or 属性:startAngle(angle: number): GaugeAttribute;
起始版本:9|gauge.d.ts|
+|起始版本有变化|类名:GaugeAttribute
方法 or 属性:endAngle(angle: number): GaugeAttribute;
起始版本:8|类名:GaugeAttribute
方法 or 属性:endAngle(angle: number): GaugeAttribute;
起始版本:9|gauge.d.ts|
+|起始版本有变化|类名:GaugeAttribute
方法 or 属性:colors(colors: Array\): GaugeAttribute;
起始版本:8|类名:GaugeAttribute
方法 or 属性:colors(colors: Array\): GaugeAttribute;
起始版本:9|gauge.d.ts|
+|起始版本有变化|类名:GaugeAttribute
方法 or 属性:strokeWidth(length: Length): GaugeAttribute;
起始版本:8|类名:GaugeAttribute
方法 or 属性:strokeWidth(length: Length): GaugeAttribute;
起始版本:9|gauge.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Gauge: GaugeInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Gauge: GaugeInterface;
起始版本:9|gauge.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const GaugeInstance: GaugeAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const GaugeInstance: GaugeAttribute;
起始版本:9|gauge.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const TapGesture: TapGestureInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const TapGesture: TapGestureInterface;
起始版本:7|gesture.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const LongPressGesture: LongPressGestureInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const LongPressGesture: LongPressGestureInterface;
起始版本:7|gesture.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const PanGesture: PanGestureInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const PanGesture: PanGestureInterface;
起始版本:7|gesture.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const SwipeGesture: SwipeGestureInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const SwipeGesture: SwipeGestureInterface;
起始版本:7|gesture.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const PinchGesture: PinchGestureInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const PinchGesture: PinchGestureInterface;
起始版本:7|gesture.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const RotationGesture: RotationGestureInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const RotationGesture: RotationGestureInterface;
起始版本:7|gesture.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const GestureGroup: GestureGroupInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const GestureGroup: GestureGroupInterface;
起始版本:7|gesture.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Grid: GridInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Grid: GridInterface;
起始版本:7|grid.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const GridInstance: GridAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const GridInstance: GridAttribute;
起始版本:7|grid.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const GridItem: GridItemInterface
起始版本:N/A|类名:global
方法 or 属性:declare const GridItem: GridItemInterface
起始版本:7|gridItem.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const GridItemInstance: GridItemAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const GridItemInstance: GridItemAttribute;
起始版本:7|gridItem.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const GridCol: GridColInterface
起始版本:N/A|类名:global
方法 or 属性:declare const GridCol: GridColInterface
起始版本:9|grid_col.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const GridColInstance: GridColAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const GridColInstance: GridColAttribute;
起始版本:9|grid_col.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const GridContainer: GridContainerInterface
起始版本:N/A|类名:global
方法 or 属性:declare const GridContainer: GridContainerInterface
起始版本:7|grid_container.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const GridContainerInstance: GridContainerAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const GridContainerInstance: GridContainerAttribute;
起始版本:7|grid_container.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const GridRow: GridRowInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const GridRow: GridRowInterface;
起始版本:9|grid_row.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const GridRowInstance: GridRowAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const GridRowInstance: GridRowAttribute;
起始版本:9|grid_row.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Hyperlink: HyperlinkInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Hyperlink: HyperlinkInterface;
起始版本:7|hyperlink.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const HyperlinkInterface: HyperlinkAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const HyperlinkInterface: HyperlinkAttribute;
起始版本:7|hyperlink.d.ts|
+|起始版本有变化|类名:ImageRenderMode
起始版本:7|类名:ImageRenderMode
起始版本:9|image.d.ts|
+|起始版本有变化|类名:ImageRenderMode
方法 or 属性:Original
起始版本:7|类名:ImageRenderMode
方法 or 属性:Original
起始版本:9|image.d.ts|
+|起始版本有变化|类名:ImageRenderMode
方法 or 属性:Template
起始版本:7|类名:ImageRenderMode
方法 or 属性:Template
起始版本:9|image.d.ts|
+|起始版本有变化|类名:ImageInterpolation
起始版本:7|类名:ImageInterpolation
起始版本:9|image.d.ts|
+|起始版本有变化|类名:ImageInterpolation
方法 or 属性:None
起始版本:7|类名:ImageInterpolation
方法 or 属性:None
起始版本:9|image.d.ts|
+|起始版本有变化|类名:ImageInterpolation
方法 or 属性:Low
起始版本:7|类名:ImageInterpolation
方法 or 属性:Low
起始版本:9|image.d.ts|
+|起始版本有变化|类名:ImageInterpolation
方法 or 属性:Medium
起始版本:7|类名:ImageInterpolation
方法 or 属性:Medium
起始版本:9|image.d.ts|
+|起始版本有变化|类名:ImageInterpolation
方法 or 属性:High
起始版本:7|类名:ImageInterpolation
方法 or 属性:High
起始版本:9|image.d.ts|
+|起始版本有变化|类名:ImageInterface
起始版本:7|类名:ImageInterface
起始版本:9|image.d.ts|
+|起始版本有变化|类名:ImageInterface
方法 or 属性:(src: string \| PixelMap \| Resource): ImageAttribute;
起始版本:7|类名:ImageInterface
方法 or 属性:(src: string \| PixelMap \| Resource): ImageAttribute;
起始版本:9|image.d.ts|
+|起始版本有变化|类名:ImageAttribute
起始版本:7|类名:ImageAttribute
起始版本:9|image.d.ts|
+|起始版本有变化|类名:ImageAttribute
方法 or 属性:alt(value: string \| Resource): ImageAttribute;
起始版本:7|类名:ImageAttribute
方法 or 属性:alt(value: string \| Resource): ImageAttribute;
起始版本:9|image.d.ts|
+|起始版本有变化|类名:ImageAttribute
方法 or 属性:matchTextDirection(value: boolean): ImageAttribute;
起始版本:7|类名:ImageAttribute
方法 or 属性:matchTextDirection(value: boolean): ImageAttribute;
起始版本:9|image.d.ts|
+|起始版本有变化|类名:ImageAttribute
方法 or 属性:fitOriginalSize(value: boolean): ImageAttribute;
起始版本:7|类名:ImageAttribute
方法 or 属性:fitOriginalSize(value: boolean): ImageAttribute;
起始版本:9|image.d.ts|
+|起始版本有变化|类名:ImageAttribute
方法 or 属性:fillColor(value: ResourceColor): ImageAttribute;
起始版本:7|类名:ImageAttribute
方法 or 属性:fillColor(value: ResourceColor): ImageAttribute;
起始版本:9|image.d.ts|
+|起始版本有变化|类名:ImageAttribute
方法 or 属性:objectFit(value: ImageFit): ImageAttribute;
起始版本:7|类名:ImageAttribute
方法 or 属性:objectFit(value: ImageFit): ImageAttribute;
起始版本:9|image.d.ts|
+|起始版本有变化|类名:ImageAttribute
方法 or 属性:objectRepeat(value: ImageRepeat): ImageAttribute;
起始版本:7|类名:ImageAttribute
方法 or 属性:objectRepeat(value: ImageRepeat): ImageAttribute;
起始版本:9|image.d.ts|
+|起始版本有变化|类名:ImageAttribute
方法 or 属性:autoResize(value: boolean): ImageAttribute;
起始版本:7|类名:ImageAttribute
方法 or 属性:autoResize(value: boolean): ImageAttribute;
起始版本:9|image.d.ts|
+|起始版本有变化|类名:ImageAttribute
方法 or 属性:renderMode(value: ImageRenderMode): ImageAttribute;
起始版本:7|类名:ImageAttribute
方法 or 属性:renderMode(value: ImageRenderMode): ImageAttribute;
起始版本:9|image.d.ts|
+|起始版本有变化|类名:ImageAttribute
方法 or 属性:interpolation(value: ImageInterpolation): ImageAttribute;
起始版本:7|类名:ImageAttribute
方法 or 属性:interpolation(value: ImageInterpolation): ImageAttribute;
起始版本:9|image.d.ts|
+|起始版本有变化|类名:ImageAttribute
方法 or 属性:sourceSize(value: { width: number; height: number }): ImageAttribute;
起始版本:7|类名:ImageAttribute
方法 or 属性:sourceSize(value: { width: number; height: number }): ImageAttribute;
起始版本:9|image.d.ts|
+|起始版本有变化|类名:ImageAttribute
方法 or 属性:syncLoad(value: boolean): ImageAttribute;
起始版本:8|类名:ImageAttribute
方法 or 属性:syncLoad(value: boolean): ImageAttribute;
起始版本:9|image.d.ts|
+|起始版本有变化|类名:ImageAttribute
方法 or 属性:onComplete(
callback: (event?: {
width: number;
height: number;
componentWidth: number;
componentHeight: number;
loadingStatus: number;
}) => void,
): ImageAttribute;
起始版本:7|类名:ImageAttribute
方法 or 属性:onComplete(
callback: (event?: {
width: number;
height: number;
componentWidth: number;
componentHeight: number;
loadingStatus: number;
}) => void,
): ImageAttribute;
起始版本:9|image.d.ts|
+|起始版本有变化|类名:ImageAttribute
方法 or 属性:onError(callback: (event?: { componentWidth: number; componentHeight: number }) => void): ImageAttribute;
起始版本:7|类名:ImageAttribute
方法 or 属性:onError(callback: (event?: { componentWidth: number; componentHeight: number }) => void): ImageAttribute;
起始版本:9|image.d.ts|
+|起始版本有变化|类名:ImageAttribute
方法 or 属性:onFinish(event: () => void): ImageAttribute;
起始版本:7|类名:ImageAttribute
方法 or 属性:onFinish(event: () => void): ImageAttribute;
起始版本:9|image.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Image: ImageInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Image: ImageInterface;
起始版本:9|image.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const ImageInstance: ImageAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const ImageInstance: ImageAttribute;
起始版本:9|image.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const ImageAnimator: ImageAnimatorInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const ImageAnimator: ImageAnimatorInterface;
起始版本:7|image_animator.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const ImageAnimatorInstance: ImageAnimatorAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const ImageAnimatorInstance: ImageAnimatorAttribute;
起始版本:7|image_animator.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const LazyForEach: LazyForEachInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const LazyForEach: LazyForEachInterface;
起始版本:7|lazy_for_each.d.ts|
+|起始版本有变化|类名:LineInterface
起始版本:7|类名:LineInterface
起始版本:9|line.d.ts|
+|起始版本有变化|类名:LineInterface
方法 or 属性:new (value?: { width?: string \| number; height?: string \| number }): LineAttribute;
起始版本:7|类名:LineInterface
方法 or 属性:new (value?: { width?: string \| number; height?: string \| number }): LineAttribute;
起始版本:9|line.d.ts|
+|起始版本有变化|类名:LineInterface
方法 or 属性:(value?: { width?: string \| number; height?: string \| number }): LineAttribute;
起始版本:7|类名:LineInterface
方法 or 属性:(value?: { width?: string \| number; height?: string \| number }): LineAttribute;
起始版本:9|line.d.ts|
+|起始版本有变化|类名:LineAttribute
起始版本:7|类名:LineAttribute
起始版本:9|line.d.ts|
+|起始版本有变化|类名:LineAttribute
方法 or 属性:startPoint(value: Array\): LineAttribute;
起始版本:7|类名:LineAttribute
方法 or 属性:startPoint(value: Array\): LineAttribute;
起始版本:9|line.d.ts|
+|起始版本有变化|类名:LineAttribute
方法 or 属性:endPoint(value: Array\): LineAttribute;
起始版本:7|类名:LineAttribute
方法 or 属性:endPoint(value: Array\): LineAttribute;
起始版本:9|line.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Line: LineInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Line: LineInterface;
起始版本:9|line.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const LineInstance: LineAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const LineInstance: LineAttribute;
起始版本:9|line.d.ts|
+|起始版本有变化|类名:ScrollState
起始版本:7|类名:ScrollState
起始版本:9|list.d.ts|
+|起始版本有变化|类名:ScrollState
方法 or 属性:Idle
起始版本:7|类名:ScrollState
方法 or 属性:Idle
起始版本:9|list.d.ts|
+|起始版本有变化|类名:ScrollState
方法 or 属性:Scroll
起始版本:7|类名:ScrollState
方法 or 属性:Scroll
起始版本:9|list.d.ts|
+|起始版本有变化|类名:ScrollState
方法 or 属性:Fling
起始版本:7|类名:ScrollState
方法 or 属性:Fling
起始版本:9|list.d.ts|
+|起始版本有变化|类名:ListInterface
起始版本:7|类名:ListInterface
起始版本:9|list.d.ts|
+|起始版本有变化|类名:ListInterface
方法 or 属性:(value?: { initialIndex?: number; space?: number \| string; scroller?: Scroller }): ListAttribute;
起始版本:7|类名:ListInterface
方法 or 属性:(value?: { initialIndex?: number; space?: number \| string; scroller?: Scroller }): ListAttribute;
起始版本:9|list.d.ts|
+|起始版本有变化|类名:ListAttribute
起始版本:7|类名:ListAttribute
起始版本:9|list.d.ts|
+|起始版本有变化|类名:ListAttribute
方法 or 属性:listDirection(value: Axis): ListAttribute;
起始版本:7|类名:ListAttribute
方法 or 属性:listDirection(value: Axis): ListAttribute;
起始版本:9|list.d.ts|
+|起始版本有变化|类名:ListAttribute
方法 or 属性:scrollBar(value: BarState): ListAttribute;
起始版本:7|类名:ListAttribute
方法 or 属性:scrollBar(value: BarState): ListAttribute;
起始版本:9|list.d.ts|
+|起始版本有变化|类名:ListAttribute
方法 or 属性:edgeEffect(value: EdgeEffect): ListAttribute;
起始版本:7|类名:ListAttribute
方法 or 属性:edgeEffect(value: EdgeEffect): ListAttribute;
起始版本:9|list.d.ts|
+|起始版本有变化|类名:ListAttribute
方法 or 属性:divider(
value: {
strokeWidth: Length;
color?: ResourceColor;
startMargin?: Length;
endMargin?: Length;
} \| null,
): ListAttribute;
起始版本:7|类名:ListAttribute
方法 or 属性:divider(
value: {
strokeWidth: Length;
color?: ResourceColor;
startMargin?: Length;
endMargin?: Length;
} \| null,
): ListAttribute;
起始版本:9|list.d.ts|
+|起始版本有变化|类名:ListAttribute
方法 or 属性:multiSelectable(value: boolean): ListAttribute;
起始版本:8|类名:ListAttribute
方法 or 属性:multiSelectable(value: boolean): ListAttribute;
起始版本:9|list.d.ts|
+|起始版本有变化|类名:ListAttribute
方法 or 属性:cachedCount(value: number): ListAttribute;
起始版本:7|类名:ListAttribute
方法 or 属性:cachedCount(value: number): ListAttribute;
起始版本:9|list.d.ts|
+|起始版本有变化|类名:ListAttribute
方法 or 属性:chainAnimation(value: boolean): ListAttribute;
起始版本:7|类名:ListAttribute
方法 or 属性:chainAnimation(value: boolean): ListAttribute;
起始版本:9|list.d.ts|
+|起始版本有变化|类名:ListAttribute
方法 or 属性:onScroll(event: (scrollOffset: number, scrollState: ScrollState) => void): ListAttribute;
起始版本:7|类名:ListAttribute
方法 or 属性:onScroll(event: (scrollOffset: number, scrollState: ScrollState) => void): ListAttribute;
起始版本:9|list.d.ts|
+|起始版本有变化|类名:ListAttribute
方法 or 属性:onScrollIndex(event: (start: number, end: number) => void): ListAttribute;
起始版本:7|类名:ListAttribute
方法 or 属性:onScrollIndex(event: (start: number, end: number) => void): ListAttribute;
起始版本:9|list.d.ts|
+|起始版本有变化|类名:ListAttribute
方法 or 属性:onReachStart(event: () => void): ListAttribute;
起始版本:7|类名:ListAttribute
方法 or 属性:onReachStart(event: () => void): ListAttribute;
起始版本:9|list.d.ts|
+|起始版本有变化|类名:ListAttribute
方法 or 属性:onReachEnd(event: () => void): ListAttribute;
起始版本:7|类名:ListAttribute
方法 or 属性:onReachEnd(event: () => void): ListAttribute;
起始版本:9|list.d.ts|
+|起始版本有变化|类名:ListAttribute
方法 or 属性:onScrollStop(event: () => void): ListAttribute;
起始版本:7|类名:ListAttribute
方法 or 属性:onScrollStop(event: () => void): ListAttribute;
起始版本:9|list.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const List: ListInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const List: ListInterface;
起始版本:9|list.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const ListInstance: ListAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const ListInstance: ListAttribute;
起始版本:9|list.d.ts|
+|起始版本有变化|类名:ListItemInterface
起始版本:7|类名:ListItemInterface
起始版本:9|list_item.d.ts|
+|起始版本有变化|类名:ListItemInterface
方法 or 属性:(value?: string): ListItemAttribute;
起始版本:7|类名:ListItemInterface
方法 or 属性:(value?: string): ListItemAttribute;
起始版本:9|list_item.d.ts|
+|起始版本有变化|类名:ListItemAttribute
起始版本:7|类名:ListItemAttribute
起始版本:9|list_item.d.ts|
+|起始版本有变化|类名:ListItemAttribute
方法 or 属性:onSelect(event: (isSelected: boolean) => void): ListItemAttribute;
起始版本:8|类名:ListItemAttribute
方法 or 属性:onSelect(event: (isSelected: boolean) => void): ListItemAttribute;
起始版本:9|list_item.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const ListItemInstance: ListItemAttribute;
起始版本:7|类名:global
方法 or 属性:declare const ListItemInstance: ListItemAttribute;
起始版本:9|list_item.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const ListItem: ListItemInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const ListItem: ListItemInterface;
起始版本:9|list_item.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const ListItemGroup: ListItemGroupInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const ListItemGroup: ListItemGroupInterface;
起始版本:9|list_item_group.d.ts|
+|起始版本有变化|类名:LoadingProgressStyle
起始版本:8|类名:LoadingProgressStyle
起始版本:9|loading_progress.d.ts|
+|起始版本有变化|类名:LoadingProgressStyle
方法 or 属性:Default
起始版本:8|类名:LoadingProgressStyle
方法 or 属性:Default
起始版本:9|loading_progress.d.ts|
+|起始版本有变化|类名:LoadingProgressStyle
方法 or 属性:Circular
起始版本:8|类名:LoadingProgressStyle
方法 or 属性:Circular
起始版本:9|loading_progress.d.ts|
+|起始版本有变化|类名:LoadingProgressStyle
方法 or 属性:Orbital
起始版本:8|类名:LoadingProgressStyle
方法 or 属性:Orbital
起始版本:9|loading_progress.d.ts|
+|起始版本有变化|类名:LoadingProgressInterface
起始版本:8|类名:LoadingProgressInterface
起始版本:9|loading_progress.d.ts|
+|起始版本有变化|类名:LoadingProgressInterface
方法 or 属性:(): LoadingProgressAttribute;
起始版本:8|类名:LoadingProgressInterface
方法 or 属性:(): LoadingProgressAttribute;
起始版本:9|loading_progress.d.ts|
+|起始版本有变化|类名:LoadingProgressAttribute
起始版本:8|类名:LoadingProgressAttribute
起始版本:9|loading_progress.d.ts|
+|起始版本有变化|类名:LoadingProgressAttribute
方法 or 属性:color(value: ResourceColor): LoadingProgressAttribute;
起始版本:8|类名:LoadingProgressAttribute
方法 or 属性:color(value: ResourceColor): LoadingProgressAttribute;
起始版本:9|loading_progress.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const LoadingProgress: LoadingProgressInterface;
起始版本:8|类名:global
方法 or 属性:declare const LoadingProgress: LoadingProgressInterface;
起始版本:9|loading_progress.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const LoadingProgressInstance: LoadingProgressAttribute;
起始版本:8|类名:global
方法 or 属性:declare const LoadingProgressInstance: LoadingProgressAttribute;
起始版本:9|loading_progress.d.ts|
+|起始版本有变化|类名:MarqueeInterface
起始版本:8|类名:MarqueeInterface
起始版本:9|marquee.d.ts|
+|起始版本有变化|类名:MarqueeInterface
方法 or 属性:(value: { start: boolean; step?: number; loop?: number; fromStart?: boolean; src: string }): MarqueeAttribute;
起始版本:8|类名:MarqueeInterface
方法 or 属性:(value: { start: boolean; step?: number; loop?: number; fromStart?: boolean; src: string }): MarqueeAttribute;
起始版本:9|marquee.d.ts|
+|起始版本有变化|类名:MarqueeAttribute
起始版本:8|类名:MarqueeAttribute
起始版本:9|marquee.d.ts|
+|起始版本有变化|类名:MarqueeAttribute
方法 or 属性:fontColor(value: ResourceColor): MarqueeAttribute;
起始版本:8|类名:MarqueeAttribute
方法 or 属性:fontColor(value: ResourceColor): MarqueeAttribute;
起始版本:9|marquee.d.ts|
+|起始版本有变化|类名:MarqueeAttribute
方法 or 属性:fontSize(value: Length): MarqueeAttribute;
起始版本:8|类名:MarqueeAttribute
方法 or 属性:fontSize(value: Length): MarqueeAttribute;
起始版本:9|marquee.d.ts|
+|起始版本有变化|类名:MarqueeAttribute
方法 or 属性:allowScale(value: boolean): MarqueeAttribute;
起始版本:8|类名:MarqueeAttribute
方法 or 属性:allowScale(value: boolean): MarqueeAttribute;
起始版本:9|marquee.d.ts|
+|起始版本有变化|类名:MarqueeAttribute
方法 or 属性:fontWeight(value: number \| FontWeight \| string): MarqueeAttribute;
起始版本:8|类名:MarqueeAttribute
方法 or 属性:fontWeight(value: number \| FontWeight \| string): MarqueeAttribute;
起始版本:9|marquee.d.ts|
+|起始版本有变化|类名:MarqueeAttribute
方法 or 属性:fontFamily(value: string \| Resource): MarqueeAttribute;
起始版本:8|类名:MarqueeAttribute
方法 or 属性:fontFamily(value: string \| Resource): MarqueeAttribute;
起始版本:9|marquee.d.ts|
+|起始版本有变化|类名:MarqueeAttribute
方法 or 属性:onStart(event: () => void): MarqueeAttribute;
起始版本:8|类名:MarqueeAttribute
方法 or 属性:onStart(event: () => void): MarqueeAttribute;
起始版本:9|marquee.d.ts|
+|起始版本有变化|类名:MarqueeAttribute
方法 or 属性:onBounce(event: () => void): MarqueeAttribute;
起始版本:8|类名:MarqueeAttribute
方法 or 属性:onBounce(event: () => void): MarqueeAttribute;
起始版本:9|marquee.d.ts|
+|起始版本有变化|类名:MarqueeAttribute
方法 or 属性:onFinish(event: () => void): MarqueeAttribute;
起始版本:8|类名:MarqueeAttribute
方法 or 属性:onFinish(event: () => void): MarqueeAttribute;
起始版本:9|marquee.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Marquee: MarqueeInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Marquee: MarqueeInterface;
起始版本:9|marquee.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const MarqueeInstance: MarqueeAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const MarqueeInstance: MarqueeAttribute;
起始版本:9|marquee.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Navigation: NavigationInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Navigation: NavigationInterface;
起始版本:8|navigation.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const NavigationInstance: NavigationAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const NavigationInstance: NavigationAttribute;
起始版本:8|navigation.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Navigator: NavigatorInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Navigator: NavigatorInterface;
起始版本:7|navigator.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const NavigatorInstance: NavigatorAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const NavigatorInstance: NavigatorAttribute;
起始版本:7|navigator.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const NavDestination: NavDestinationInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const NavDestination: NavDestinationInterface;
起始版本:9|nav_destination.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const NavDestinationInstance: NavDestinationAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const NavDestinationInstance: NavDestinationAttribute;
起始版本:9|nav_destination.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const NavRouter: NavRouterInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const NavRouter: NavRouterInterface;
起始版本:9|nav_router.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const NavRouterInstance: NavRouterAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const NavRouterInstance: NavRouterAttribute;
起始版本:9|nav_router.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const PageTransitionEnter: PageTransitionEnterInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const PageTransitionEnter: PageTransitionEnterInterface;
起始版本:7|page_transition.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const PageTransitionExit: PageTransitionExitInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const PageTransitionExit: PageTransitionExitInterface;
起始版本:7|page_transition.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Panel: PanelInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Panel: PanelInterface;
起始版本:7|panel.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const PanelInstance: PanelAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const PanelInstance: PanelAttribute;
起始版本:7|panel.d.ts|
+|起始版本有变化|类名:PathInterface
起始版本:7|类名:PathInterface
起始版本:9|path.d.ts|
+|起始版本有变化|类名:PathInterface
方法 or 属性:new (value?: { width?: number \| string; height?: number \| string; commands?: string }): PathAttribute;
起始版本:7|类名:PathInterface
方法 or 属性:new (value?: { width?: number \| string; height?: number \| string; commands?: string }): PathAttribute;
起始版本:9|path.d.ts|
+|起始版本有变化|类名:PathInterface
方法 or 属性:(value?: { width?: number \| string; height?: number \| string; commands?: string }): PathAttribute;
起始版本:7|类名:PathInterface
方法 or 属性:(value?: { width?: number \| string; height?: number \| string; commands?: string }): PathAttribute;
起始版本:9|path.d.ts|
+|起始版本有变化|类名:PathAttribute
起始版本:7|类名:PathAttribute
起始版本:9|path.d.ts|
+|起始版本有变化|类名:PathAttribute
方法 or 属性:commands(value: string): PathAttribute;
起始版本:7|类名:PathAttribute
方法 or 属性:commands(value: string): PathAttribute;
起始版本:9|path.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Path: PathInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Path: PathInterface;
起始版本:9|path.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const PathInstance: PathAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const PathInstance: PathAttribute;
起始版本:9|path.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const PatternLock: PatternLockInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const PatternLock: PatternLockInterface;
起始版本:9|pattern_lock.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const PatternLockInstance: PatternLockAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const PatternLockInstance: PatternLockAttribute;
起始版本:9|pattern_lock.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const PluginComponent: PluginComponentInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const PluginComponent: PluginComponentInterface;
起始版本:9|plugin_component.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const PluginComponentInstance: PluginComponentAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const PluginComponentInstance: PluginComponentAttribute;
起始版本:9|plugin_component.d.ts|
+|起始版本有变化|类名:PolygonInterface
起始版本:7|类名:PolygonInterface
起始版本:9|polygon.d.ts|
+|起始版本有变化|类名:PolygonInterface
方法 or 属性:new (value?: { width?: string \| number; height?: string \| number }): PolygonAttribute;
起始版本:7|类名:PolygonInterface
方法 or 属性:new (value?: { width?: string \| number; height?: string \| number }): PolygonAttribute;
起始版本:9|polygon.d.ts|
+|起始版本有变化|类名:PolygonInterface
方法 or 属性:(value?: { width?: string \| number; height?: string \| number }): PolygonAttribute;
起始版本:7|类名:PolygonInterface
方法 or 属性:(value?: { width?: string \| number; height?: string \| number }): PolygonAttribute;
起始版本:9|polygon.d.ts|
+|起始版本有变化|类名:PolygonAttribute
方法 or 属性:points(value: Array\): PolygonAttribute;
起始版本:7|类名:PolygonAttribute
方法 or 属性:points(value: Array\): PolygonAttribute;
起始版本:9|polygon.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Polygon: PolygonInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Polygon: PolygonInterface;
起始版本:9|polygon.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const PolygonInstance: PolygonAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const PolygonInstance: PolygonAttribute;
起始版本:9|polygon.d.ts|
+|起始版本有变化|类名:PolylineInterface
起始版本:7|类名:PolylineInterface
起始版本:9|polyline.d.ts|
+|起始版本有变化|类名:PolylineInterface
方法 or 属性:new (value?: { width?: string \| number; height?: string \| number }): PolylineAttribute;
起始版本:7|类名:PolylineInterface
方法 or 属性:new (value?: { width?: string \| number; height?: string \| number }): PolylineAttribute;
起始版本:9|polyline.d.ts|
+|起始版本有变化|类名:PolylineInterface
方法 or 属性:(value?: { width?: string \| number; height?: string \| number }): PolylineAttribute;
起始版本:7|类名:PolylineInterface
方法 or 属性:(value?: { width?: string \| number; height?: string \| number }): PolylineAttribute;
起始版本:9|polyline.d.ts|
+|起始版本有变化|类名:PolylineAttribute
起始版本:7|类名:PolylineAttribute
起始版本:9|polyline.d.ts|
+|起始版本有变化|类名:PolylineAttribute
方法 or 属性:points(value: Array\): PolylineAttribute;
起始版本:7|类名:PolylineAttribute
方法 or 属性:points(value: Array\): PolylineAttribute;
起始版本:9|polyline.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Polyline: PolylineInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Polyline: PolylineInterface;
起始版本:9|polyline.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const PolylineInstance: PolylineAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const PolylineInstance: PolylineAttribute;
起始版本:9|polyline.d.ts|
+|起始版本有变化|类名:ProgressOptions
起始版本:7|类名:ProgressOptions
起始版本:9|progress.d.ts|
+|起始版本有变化|类名:ProgressOptions
方法 or 属性:value: number;
起始版本:7|类名:ProgressOptions
方法 or 属性:value: number;
起始版本:9|progress.d.ts|
+|起始版本有变化|类名:ProgressOptions
方法 or 属性:total?: number;
起始版本:7|类名:ProgressOptions
方法 or 属性:total?: number;
起始版本:9|progress.d.ts|
+|起始版本有变化|类名:ProgressOptions
方法 or 属性:type?: ProgressType
起始版本:8|类名:ProgressOptions
方法 or 属性:type?: ProgressType
起始版本:9|progress.d.ts|
+|起始版本有变化|类名:ProgressType
起始版本:8|类名:ProgressType
起始版本:9|progress.d.ts|
+|起始版本有变化|类名:ProgressType
方法 or 属性:Linear
起始版本:8|类名:ProgressType
方法 or 属性:Linear
起始版本:9|progress.d.ts|
+|起始版本有变化|类名:ProgressType
方法 or 属性:Ring
起始版本:8|类名:ProgressType
方法 or 属性:Ring
起始版本:9|progress.d.ts|
+|起始版本有变化|类名:ProgressType
方法 or 属性:Eclipse
起始版本:8|类名:ProgressType
方法 or 属性:Eclipse
起始版本:9|progress.d.ts|
+|起始版本有变化|类名:ProgressType
方法 or 属性:ScaleRing
起始版本:8|类名:ProgressType
方法 or 属性:ScaleRing
起始版本:9|progress.d.ts|
+|起始版本有变化|类名:ProgressType
方法 or 属性:Capsule
起始版本:8|类名:ProgressType
方法 or 属性:Capsule
起始版本:9|progress.d.ts|
+|起始版本有变化|类名:ProgressStyleOptions
起始版本:8|类名:ProgressStyleOptions
起始版本:9|progress.d.ts|
+|起始版本有变化|类名:ProgressStyleOptions
方法 or 属性:strokeWidth?: Length;
起始版本:8|类名:ProgressStyleOptions
方法 or 属性:strokeWidth?: Length;
起始版本:9|progress.d.ts|
+|起始版本有变化|类名:ProgressStyleOptions
方法 or 属性:scaleCount?: number;
起始版本:8|类名:ProgressStyleOptions
方法 or 属性:scaleCount?: number;
起始版本:9|progress.d.ts|
+|起始版本有变化|类名:ProgressStyleOptions
方法 or 属性:scaleWidth?: Length;
起始版本:8|类名:ProgressStyleOptions
方法 or 属性:scaleWidth?: Length;
起始版本:9|progress.d.ts|
+|起始版本有变化|类名:ProgressStyle
起始版本:7|类名:ProgressStyle
起始版本:9|progress.d.ts|
+|起始版本有变化|类名:ProgressStyle
方法 or 属性:Linear
起始版本:7|类名:ProgressStyle
方法 or 属性:Linear
起始版本:9|progress.d.ts|
+|起始版本有变化|类名:ProgressStyle
方法 or 属性:Ring
起始版本:8|类名:ProgressStyle
方法 or 属性:Ring
起始版本:9|progress.d.ts|
+|起始版本有变化|类名:ProgressStyle
方法 or 属性:Eclipse
起始版本:7|类名:ProgressStyle
方法 or 属性:Eclipse
起始版本:9|progress.d.ts|
+|起始版本有变化|类名:ProgressStyle
方法 or 属性:ScaleRing
起始版本:8|类名:ProgressStyle
方法 or 属性:ScaleRing
起始版本:9|progress.d.ts|
+|起始版本有变化|类名:ProgressStyle
方法 or 属性:Capsule
起始版本:8|类名:ProgressStyle
方法 or 属性:Capsule
起始版本:9|progress.d.ts|
+|起始版本有变化|类名:ProgressInterface
起始版本:7|类名:ProgressInterface
起始版本:9|progress.d.ts|
+|起始版本有变化|类名:ProgressInterface
方法 or 属性:(options: ProgressOptions): ProgressAttribute;
起始版本:7|类名:ProgressInterface
方法 or 属性:(options: ProgressOptions): ProgressAttribute;
起始版本:9|progress.d.ts|
+|起始版本有变化|类名:ProgressAttribute
起始版本:7|类名:ProgressAttribute
起始版本:9|progress.d.ts|
+|起始版本有变化|类名:ProgressAttribute
方法 or 属性:value(value: number): ProgressAttribute;
起始版本:7|类名:ProgressAttribute
方法 or 属性:value(value: number): ProgressAttribute;
起始版本:9|progress.d.ts|
+|起始版本有变化|类名:ProgressAttribute
方法 or 属性:color(value: ResourceColor): ProgressAttribute;
起始版本:7|类名:ProgressAttribute
方法 or 属性:color(value: ResourceColor): ProgressAttribute;
起始版本:9|progress.d.ts|
+|起始版本有变化|类名:ProgressAttribute
方法 or 属性:style(value: ProgressStyleOptions): ProgressAttribute;
起始版本:8|类名:ProgressAttribute
方法 or 属性:style(value: ProgressStyleOptions): ProgressAttribute;
起始版本:9|progress.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Progress: ProgressInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Progress: ProgressInterface;
起始版本:9|progress.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const ProgressInstance: ProgressAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const ProgressInstance: ProgressAttribute;
起始版本:9|progress.d.ts|
+|起始版本有变化|类名:QRCodeInterface
起始版本:7|类名:QRCodeInterface
起始版本:9|qrcode.d.ts|
+|起始版本有变化|类名:QRCodeInterface
方法 or 属性:(value: string): QRCodeAttribute;
起始版本:7|类名:QRCodeInterface
方法 or 属性:(value: string): QRCodeAttribute;
起始版本:9|qrcode.d.ts|
+|起始版本有变化|类名:QRCodeAttribute
起始版本:7|类名:QRCodeAttribute
起始版本:9|qrcode.d.ts|
+|起始版本有变化|类名:QRCodeAttribute
方法 or 属性:color(value: ResourceColor): QRCodeAttribute;
起始版本:7|类名:QRCodeAttribute
方法 or 属性:color(value: ResourceColor): QRCodeAttribute;
起始版本:9|qrcode.d.ts|
+|起始版本有变化|类名:QRCodeAttribute
方法 or 属性:backgroundColor(value: ResourceColor): QRCodeAttribute;
起始版本:7|类名:QRCodeAttribute
方法 or 属性:backgroundColor(value: ResourceColor): QRCodeAttribute;
起始版本:9|qrcode.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const QRCode: QRCodeInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const QRCode: QRCodeInterface;
起始版本:9|qrcode.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const QRCodeInstance: QRCodeAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const QRCodeInstance: QRCodeAttribute;
起始版本:9|qrcode.d.ts|
+|起始版本有变化|类名:RadioOptions
起始版本:8|类名:RadioOptions
起始版本:9|radio.d.ts|
+|起始版本有变化|类名:RadioOptions
方法 or 属性:group: string;
起始版本:8|类名:RadioOptions
方法 or 属性:group: string;
起始版本:9|radio.d.ts|
+|起始版本有变化|类名:RadioOptions
方法 or 属性:value: string;
起始版本:8|类名:RadioOptions
方法 or 属性:value: string;
起始版本:9|radio.d.ts|
+|起始版本有变化|类名:RadioInterface
起始版本:8|类名:RadioInterface
起始版本:9|radio.d.ts|
+|起始版本有变化|类名:RadioInterface
方法 or 属性:(options: RadioOptions): RadioAttribute;
起始版本:8|类名:RadioInterface
方法 or 属性:(options: RadioOptions): RadioAttribute;
起始版本:9|radio.d.ts|
+|起始版本有变化|类名:RadioAttribute
起始版本:8|类名:RadioAttribute
起始版本:9|radio.d.ts|
+|起始版本有变化|类名:RadioAttribute
方法 or 属性:checked(value: boolean): RadioAttribute;
起始版本:8|类名:RadioAttribute
方法 or 属性:checked(value: boolean): RadioAttribute;
起始版本:9|radio.d.ts|
+|起始版本有变化|类名:RadioAttribute
方法 or 属性:onChange(callback: (isChecked: boolean) => void): RadioAttribute;
起始版本:8|类名:RadioAttribute
方法 or 属性:onChange(callback: (isChecked: boolean) => void): RadioAttribute;
起始版本:9|radio.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Radio: RadioInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Radio: RadioInterface;
起始版本:9|radio.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const RadioInstance: RadioAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const RadioInstance: RadioAttribute;
起始版本:9|radio.d.ts|
+|起始版本有变化|类名:RatingInterface
起始版本:7|类名:RatingInterface
起始版本:9|rating.d.ts|
+|起始版本有变化|类名:RatingInterface
方法 or 属性:(options?: { rating: number; indicator?: boolean }): RatingAttribute;
起始版本:7|类名:RatingInterface
方法 or 属性:(options?: { rating: number; indicator?: boolean }): RatingAttribute;
起始版本:9|rating.d.ts|
+|起始版本有变化|类名:RatingAttribute
起始版本:7|类名:RatingAttribute
起始版本:9|rating.d.ts|
+|起始版本有变化|类名:RatingAttribute
方法 or 属性:stars(value: number): RatingAttribute;
起始版本:7|类名:RatingAttribute
方法 or 属性:stars(value: number): RatingAttribute;
起始版本:9|rating.d.ts|
+|起始版本有变化|类名:RatingAttribute
方法 or 属性:stepSize(value: number): RatingAttribute;
起始版本:7|类名:RatingAttribute
方法 or 属性:stepSize(value: number): RatingAttribute;
起始版本:9|rating.d.ts|
+|起始版本有变化|类名:RatingAttribute
方法 or 属性:starStyle(value: { backgroundUri: string; foregroundUri: string; secondaryUri?: string }): RatingAttribute;
起始版本:7|类名:RatingAttribute
方法 or 属性:starStyle(value: { backgroundUri: string; foregroundUri: string; secondaryUri?: string }): RatingAttribute;
起始版本:9|rating.d.ts|
+|起始版本有变化|类名:RatingAttribute
方法 or 属性:onChange(callback: (value: number) => void): RatingAttribute;
起始版本:7|类名:RatingAttribute
方法 or 属性:onChange(callback: (value: number) => void): RatingAttribute;
起始版本:9|rating.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Rating: RatingInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Rating: RatingInterface;
起始版本:9|rating.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const RatingInstance: RatingAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const RatingInstance: RatingAttribute;
起始版本:9|rating.d.ts|
+|起始版本有变化|类名:RectInterface
起始版本:7|类名:RectInterface
起始版本:9|rect.d.ts|
+|起始版本有变化|类名:RectInterface
方法 or 属性:new (
value?:
{
width?: number \| string;
height?: number \| string;
radius?: number \| string \| Array\;
}
\| {
width?: number \| string;
height?: number \| string;
radiusWidth?: number \| string;
radiusHeight?: number \| string;
},
): RectAttribute;
起始版本:7|类名:RectInterface
方法 or 属性:new (
value?:
{
width?: number \| string;
height?: number \| string;
radius?: number \| string \| Array\;
}
\| {
width?: number \| string;
height?: number \| string;
radiusWidth?: number \| string;
radiusHeight?: number \| string;
},
): RectAttribute;
起始版本:9|rect.d.ts|
+|起始版本有变化|类名:RectInterface
方法 or 属性:(
value?:
{
width?: number \| string;
height?: number \| string;
radius?: number \| string \| Array\;
}
\| {
width?: number \| string;
height?: number \| string;
radiusWidth?: number \| string;
radiusHeight?: number \| string;
},
): RectAttribute;
起始版本:7|类名:RectInterface
方法 or 属性:(
value?:
{
width?: number \| string;
height?: number \| string;
radius?: number \| string \| Array\;
}
\| {
width?: number \| string;
height?: number \| string;
radiusWidth?: number \| string;
radiusHeight?: number \| string;
},
): RectAttribute;
起始版本:9|rect.d.ts|
+|起始版本有变化|类名:RectAttribute
起始版本:7|类名:RectAttribute
起始版本:9|rect.d.ts|
+|起始版本有变化|类名:RectAttribute
方法 or 属性:radiusWidth(value: number \| string): RectAttribute;
起始版本:7|类名:RectAttribute
方法 or 属性:radiusWidth(value: number \| string): RectAttribute;
起始版本:9|rect.d.ts|
+|起始版本有变化|类名:RectAttribute
方法 or 属性:radiusHeight(value: number \| string): RectAttribute;
起始版本:7|类名:RectAttribute
方法 or 属性:radiusHeight(value: number \| string): RectAttribute;
起始版本:9|rect.d.ts|
+|起始版本有变化|类名:RectAttribute
方法 or 属性:radius(value: number \| string \| Array\): RectAttribute;
起始版本:7|类名:RectAttribute
方法 or 属性:radius(value: number \| string \| Array\): RectAttribute;
起始版本:9|rect.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Rect: RectInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Rect: RectInterface;
起始版本:9|rect.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Refresh: RefreshInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Refresh: RefreshInterface;
起始版本:8|refresh.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const RefreshInstance: RefreshAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const RefreshInstance: RefreshAttribute;
起始版本:8|refresh.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const RemoteWindow: RemoteWindowInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const RemoteWindow: RemoteWindowInterface;
起始版本:9|remote_window.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const RemoteWindowInstance: RemoteWindowAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const RemoteWindowInstance: RemoteWindowAttribute;
起始版本:9|remote_window.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const RichText: RichTextInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const RichText: RichTextInterface;
起始版本:8|rich_text.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const RichTextInstance: RichTextAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const RichTextInstance: RichTextAttribute;
起始版本:8|rich_text.d.ts|
+|起始版本有变化|类名:RowInterface
起始版本:7|类名:RowInterface
起始版本:9|row.d.ts|
+|起始版本有变化|类名:RowInterface
方法 or 属性:(value?: { space?: string \| number }): RowAttribute;
起始版本:7|类名:RowInterface
方法 or 属性:(value?: { space?: string \| number }): RowAttribute;
起始版本:9|row.d.ts|
+|起始版本有变化|类名:RowAttribute
起始版本:7|类名:RowAttribute
起始版本:9|row.d.ts|
+|起始版本有变化|类名:RowAttribute
方法 or 属性:alignItems(value: VerticalAlign): RowAttribute;
起始版本:7|类名:RowAttribute
方法 or 属性:alignItems(value: VerticalAlign): RowAttribute;
起始版本:9|row.d.ts|
+|起始版本有变化|类名:RowAttribute
方法 or 属性:justifyContent(value: FlexAlign): RowAttribute;
起始版本:8|类名:RowAttribute
方法 or 属性:justifyContent(value: FlexAlign): RowAttribute;
起始版本:9|row.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Row: RowInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Row: RowInterface;
起始版本:9|row.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const RowInstance: RowAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const RowInstance: RowAttribute;
起始版本:9|row.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const RowSplit: RowSplitInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const RowSplit: RowSplitInterface;
起始版本:7|row_split.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const RowSplitInstance: RowSplitAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const RowSplitInstance: RowSplitAttribute;
起始版本:7|row_split.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Scroll: ScrollInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Scroll: ScrollInterface;
起始版本:7|scroll.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const ScrollInstance: ScrollAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const ScrollInstance: ScrollAttribute;
起始版本:7|scroll.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const ScrollBar: ScrollBarInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const ScrollBar: ScrollBarInterface;
起始版本:8|scroll_bar.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const ScrollBarInstance: ScrollBarAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const ScrollBarInstance: ScrollBarAttribute;
起始版本:8|scroll_bar.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Search: SearchInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Search: SearchInterface;
起始版本:8|search.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const SearchInstance: SearchAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const SearchInstance: SearchAttribute;
起始版本:8|search.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Select: SelectInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Select: SelectInterface;
起始版本:8|select.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const SelectInstance: SelectAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const SelectInstance: SelectAttribute;
起始版本:8|select.d.ts|
+|起始版本有变化|类名:ShapeInterface
起始版本:7|类名:ShapeInterface
起始版本:9|shape.d.ts|
+|起始版本有变化|类名:ShapeAttribute
起始版本:7|类名:ShapeAttribute
起始版本:9|shape.d.ts|
+|起始版本有变化|类名:ShapeAttribute
方法 or 属性:viewPort(value: { x?: number \| string; y?: number \| string; width?: number \| string; height?: number \| string }): ShapeAttribute;
起始版本:7|类名:ShapeAttribute
方法 or 属性:viewPort(value: { x?: number \| string; y?: number \| string; width?: number \| string; height?: number \| string }): ShapeAttribute;
起始版本:9|shape.d.ts|
+|起始版本有变化|类名:ShapeAttribute
方法 or 属性:stroke(value: ResourceColor): ShapeAttribute;
起始版本:7|类名:ShapeAttribute
方法 or 属性:stroke(value: ResourceColor): ShapeAttribute;
起始版本:9|shape.d.ts|
+|起始版本有变化|类名:ShapeAttribute
方法 or 属性:fill(value: ResourceColor): ShapeAttribute;
起始版本:7|类名:ShapeAttribute
方法 or 属性:fill(value: ResourceColor): ShapeAttribute;
起始版本:9|shape.d.ts|
+|起始版本有变化|类名:ShapeAttribute
方法 or 属性:strokeDashOffset(value: number \| string): ShapeAttribute;
起始版本:7|类名:ShapeAttribute
方法 or 属性:strokeDashOffset(value: number \| string): ShapeAttribute;
起始版本:9|shape.d.ts|
+|起始版本有变化|类名:ShapeAttribute
方法 or 属性:strokeDashArray(value: Array\): ShapeAttribute;
起始版本:7|类名:ShapeAttribute
方法 or 属性:strokeDashArray(value: Array\): ShapeAttribute;
起始版本:9|shape.d.ts|
+|起始版本有变化|类名:ShapeAttribute
方法 or 属性:strokeLineCap(value: LineCapStyle): ShapeAttribute;
起始版本:7|类名:ShapeAttribute
方法 or 属性:strokeLineCap(value: LineCapStyle): ShapeAttribute;
起始版本:9|shape.d.ts|
+|起始版本有变化|类名:ShapeAttribute
方法 or 属性:strokeLineJoin(value: LineJoinStyle): ShapeAttribute;
起始版本:7|类名:ShapeAttribute
方法 or 属性:strokeLineJoin(value: LineJoinStyle): ShapeAttribute;
起始版本:9|shape.d.ts|
+|起始版本有变化|类名:ShapeAttribute
方法 or 属性:strokeMiterLimit(value: number \| string): ShapeAttribute;
起始版本:7|类名:ShapeAttribute
方法 or 属性:strokeMiterLimit(value: number \| string): ShapeAttribute;
起始版本:9|shape.d.ts|
+|起始版本有变化|类名:ShapeAttribute
方法 or 属性:strokeOpacity(value: number \| string \| Resource): ShapeAttribute;
起始版本:7|类名:ShapeAttribute
方法 or 属性:strokeOpacity(value: number \| string \| Resource): ShapeAttribute;
起始版本:9|shape.d.ts|
+|起始版本有变化|类名:ShapeAttribute
方法 or 属性:fillOpacity(value: number \| string \| Resource): ShapeAttribute;
起始版本:7|类名:ShapeAttribute
方法 or 属性:fillOpacity(value: number \| string \| Resource): ShapeAttribute;
起始版本:9|shape.d.ts|
+|起始版本有变化|类名:ShapeAttribute
方法 or 属性:strokeWidth(value: number \| string): ShapeAttribute;
起始版本:7|类名:ShapeAttribute
方法 or 属性:strokeWidth(value: number \| string): ShapeAttribute;
起始版本:9|shape.d.ts|
+|起始版本有变化|类名:ShapeAttribute
方法 or 属性:antiAlias(value: boolean): ShapeAttribute;
起始版本:7|类名:ShapeAttribute
方法 or 属性:antiAlias(value: boolean): ShapeAttribute;
起始版本:9|shape.d.ts|
+|起始版本有变化|类名:ShapeAttribute
方法 or 属性:mesh(value: Array\, column: number, row: number): ShapeAttribute;
起始版本:8|类名:ShapeAttribute
方法 or 属性:mesh(value: Array\, column: number, row: number): ShapeAttribute;
起始版本:9|shape.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Shape: ShapeInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Shape: ShapeInterface;
起始版本:9|shape.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const ShapeInstance: ShapeAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const ShapeInstance: ShapeAttribute;
起始版本:9|shape.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const SideBarContainer: SideBarContainerInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const SideBarContainer: SideBarContainerInterface;
起始版本:8|sidebar.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const SideBarContainerInstance: SideBarContainerAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const SideBarContainerInstance: SideBarContainerAttribute;
起始版本:8|sidebar.d.ts|
+|起始版本有变化|类名:SliderStyle
起始版本:7|类名:SliderStyle
起始版本:9|slider.d.ts|
+|起始版本有变化|类名:SliderStyle
方法 or 属性:OutSet
起始版本:7|类名:SliderStyle
方法 or 属性:OutSet
起始版本:9|slider.d.ts|
+|起始版本有变化|类名:SliderStyle
方法 or 属性:InSet
起始版本:7|类名:SliderStyle
方法 or 属性:InSet
起始版本:9|slider.d.ts|
+|起始版本有变化|类名:SliderChangeMode
起始版本:7|类名:SliderChangeMode
起始版本:9|slider.d.ts|
+|起始版本有变化|类名:SliderChangeMode
方法 or 属性:Begin
起始版本:7|类名:SliderChangeMode
方法 or 属性:Begin
起始版本:9|slider.d.ts|
+|起始版本有变化|类名:SliderChangeMode
方法 or 属性:Moving
起始版本:7|类名:SliderChangeMode
方法 or 属性:Moving
起始版本:9|slider.d.ts|
+|起始版本有变化|类名:SliderChangeMode
方法 or 属性:End
起始版本:7|类名:SliderChangeMode
方法 or 属性:End
起始版本:9|slider.d.ts|
+|起始版本有变化|类名:SliderChangeMode
方法 or 属性:Click
起始版本:8|类名:SliderChangeMode
方法 or 属性:Click
起始版本:9|slider.d.ts|
+|起始版本有变化|类名:SliderOptions
起始版本:7|类名:SliderOptions
起始版本:9|slider.d.ts|
+|起始版本有变化|类名:SliderOptions
方法 or 属性:value?: number;
起始版本:7|类名:SliderOptions
方法 or 属性:value?: number;
起始版本:9|slider.d.ts|
+|起始版本有变化|类名:SliderOptions
方法 or 属性:min?: number;
起始版本:7|类名:SliderOptions
方法 or 属性:min?: number;
起始版本:9|slider.d.ts|
+|起始版本有变化|类名:SliderOptions
方法 or 属性:max?: number;
起始版本:7|类名:SliderOptions
方法 or 属性:max?: number;
起始版本:9|slider.d.ts|
+|起始版本有变化|类名:SliderOptions
方法 or 属性:step?: number;
起始版本:7|类名:SliderOptions
方法 or 属性:step?: number;
起始版本:9|slider.d.ts|
+|起始版本有变化|类名:SliderOptions
方法 or 属性:style?: SliderStyle;
起始版本:7|类名:SliderOptions
方法 or 属性:style?: SliderStyle;
起始版本:9|slider.d.ts|
+|起始版本有变化|类名:SliderOptions
方法 or 属性:direction?: Axis;
起始版本:8|类名:SliderOptions
方法 or 属性:direction?: Axis;
起始版本:9|slider.d.ts|
+|起始版本有变化|类名:SliderOptions
方法 or 属性:reverse?: boolean;
起始版本:8|类名:SliderOptions
方法 or 属性:reverse?: boolean;
起始版本:9|slider.d.ts|
+|起始版本有变化|类名:SliderInterface
起始版本:7|类名:SliderInterface
起始版本:9|slider.d.ts|
+|起始版本有变化|类名:SliderInterface
方法 or 属性:(options?: SliderOptions): SliderAttribute;
起始版本:7|类名:SliderInterface
方法 or 属性:(options?: SliderOptions): SliderAttribute;
起始版本:9|slider.d.ts|
+|起始版本有变化|类名:SliderAttribute
起始版本:7|类名:SliderAttribute
起始版本:9|slider.d.ts|
+|起始版本有变化|类名:SliderAttribute
方法 or 属性:blockColor(value: ResourceColor): SliderAttribute;
起始版本:7|类名:SliderAttribute
方法 or 属性:blockColor(value: ResourceColor): SliderAttribute;
起始版本:9|slider.d.ts|
+|起始版本有变化|类名:SliderAttribute
方法 or 属性:trackColor(value: ResourceColor): SliderAttribute;
起始版本:7|类名:SliderAttribute
方法 or 属性:trackColor(value: ResourceColor): SliderAttribute;
起始版本:9|slider.d.ts|
+|起始版本有变化|类名:SliderAttribute
方法 or 属性:selectedColor(value: ResourceColor): SliderAttribute;
起始版本:7|类名:SliderAttribute
方法 or 属性:selectedColor(value: ResourceColor): SliderAttribute;
起始版本:9|slider.d.ts|
+|起始版本有变化|类名:SliderAttribute
方法 or 属性:showSteps(value: boolean): SliderAttribute;
起始版本:7|类名:SliderAttribute
方法 or 属性:showSteps(value: boolean): SliderAttribute;
起始版本:9|slider.d.ts|
+|起始版本有变化|类名:SliderAttribute
方法 or 属性:showTips(value: boolean): SliderAttribute;
起始版本:7|类名:SliderAttribute
方法 or 属性:showTips(value: boolean): SliderAttribute;
起始版本:9|slider.d.ts|
+|起始版本有变化|类名:SliderAttribute
方法 or 属性:trackThickness(value: Length): SliderAttribute;
起始版本:8|类名:SliderAttribute
方法 or 属性:trackThickness(value: Length): SliderAttribute;
起始版本:9|slider.d.ts|
+|起始版本有变化|类名:SliderAttribute
方法 or 属性:onChange(callback: (value: number, mode: SliderChangeMode) => void): SliderAttribute;
起始版本:7|类名:SliderAttribute
方法 or 属性:onChange(callback: (value: number, mode: SliderChangeMode) => void): SliderAttribute;
起始版本:9|slider.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Slider: SliderInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Slider: SliderInterface;
起始版本:9|slider.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const SliderInstance: SliderAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const SliderInstance: SliderAttribute;
起始版本:9|slider.d.ts|
+|起始版本有变化|类名:SpanInterface
起始版本:7|类名:SpanInterface
起始版本:9|span.d.ts|
+|起始版本有变化|类名:SpanInterface
方法 or 属性:(value: string \| Resource): SpanAttribute;
起始版本:7|类名:SpanInterface
方法 or 属性:(value: string \| Resource): SpanAttribute;
起始版本:9|span.d.ts|
+|起始版本有变化|类名:SpanAttribute
起始版本:7|类名:SpanAttribute
起始版本:9|span.d.ts|
+|起始版本有变化|类名:SpanAttribute
方法 or 属性:fontColor(value: ResourceColor): SpanAttribute;
起始版本:7|类名:SpanAttribute
方法 or 属性:fontColor(value: ResourceColor): SpanAttribute;
起始版本:9|span.d.ts|
+|起始版本有变化|类名:SpanAttribute
方法 or 属性:fontSize(value: number \| string \| Resource): SpanAttribute;
起始版本:7|类名:SpanAttribute
方法 or 属性:fontSize(value: number \| string \| Resource): SpanAttribute;
起始版本:9|span.d.ts|
+|起始版本有变化|类名:SpanAttribute
方法 or 属性:fontStyle(value: FontStyle): SpanAttribute;
起始版本:7|类名:SpanAttribute
方法 or 属性:fontStyle(value: FontStyle): SpanAttribute;
起始版本:9|span.d.ts|
+|起始版本有变化|类名:SpanAttribute
方法 or 属性:fontWeight(value: number \| FontWeight \| string): SpanAttribute;
起始版本:7|类名:SpanAttribute
方法 or 属性:fontWeight(value: number \| FontWeight \| string): SpanAttribute;
起始版本:9|span.d.ts|
+|起始版本有变化|类名:SpanAttribute
方法 or 属性:fontFamily(value: string \| Resource): SpanAttribute;
起始版本:7|类名:SpanAttribute
方法 or 属性:fontFamily(value: string \| Resource): SpanAttribute;
起始版本:9|span.d.ts|
+|起始版本有变化|类名:SpanAttribute
方法 or 属性:decoration(value: { type: TextDecorationType; color?: ResourceColor }): SpanAttribute;
起始版本:7|类名:SpanAttribute
方法 or 属性:decoration(value: { type: TextDecorationType; color?: ResourceColor }): SpanAttribute;
起始版本:9|span.d.ts|
+|起始版本有变化|类名:SpanAttribute
方法 or 属性:letterSpacing(value: number \| string): SpanAttribute;
起始版本:7|类名:SpanAttribute
方法 or 属性:letterSpacing(value: number \| string): SpanAttribute;
起始版本:9|span.d.ts|
+|起始版本有变化|类名:SpanAttribute
方法 or 属性:textCase(value: TextCase): SpanAttribute;
起始版本:N/A|类名:SpanAttribute
方法 or 属性:textCase(value: TextCase): SpanAttribute;
起始版本:9|span.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Span: SpanInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Span: SpanInterface;
起始版本:9|span.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const SpanInstance: SpanAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const SpanInstance: SpanAttribute;
起始版本:9|span.d.ts|
+|起始版本有变化|类名:StackInterface
起始版本:7|类名:StackInterface
起始版本:9|stack.d.ts|
+|起始版本有变化|类名:StackInterface
方法 or 属性:(value?: { alignContent?: Alignment }): StackAttribute;
起始版本:7|类名:StackInterface
方法 or 属性:(value?: { alignContent?: Alignment }): StackAttribute;
起始版本:9|stack.d.ts|
+|起始版本有变化|类名:StackAttribute
起始版本:7|类名:StackAttribute
起始版本:9|stack.d.ts|
+|起始版本有变化|类名:StackAttribute
方法 or 属性:alignContent(value: Alignment): StackAttribute;
起始版本:7|类名:StackAttribute
方法 or 属性:alignContent(value: Alignment): StackAttribute;
起始版本:9|stack.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Stack: StackInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Stack: StackInterface;
起始版本:9|stack.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const StackInstance: StackAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const StackInstance: StackAttribute;
起始版本:9|stack.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Stepper: StepperInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Stepper: StepperInterface;
起始版本:8|stepper.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const StepperInstance: StepperAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const StepperInstance: StepperAttribute;
起始版本:8|stepper.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const StepperItemInstance: StepperItemAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const StepperItemInstance: StepperItemAttribute;
起始版本:8|stepper_item.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const StepperItem: StepperItemInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const StepperItem: StepperItemInterface;
起始版本:8|stepper_item.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Swiper: SwiperInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Swiper: SwiperInterface;
起始版本:7|swiper.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const SwiperInstance: SwiperAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const SwiperInstance: SwiperAttribute;
起始版本:7|swiper.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Tabs: TabsInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Tabs: TabsInterface;
起始版本:7|tabs.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const TabsInstance: TabsAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const TabsInstance: TabsAttribute;
起始版本:7|tabs.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const TabContent: TabContentInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const TabContent: TabContentInterface;
起始版本:7|tab_content.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const TabContentInstance: TabContentAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const TabContentInstance: TabContentAttribute;
起始版本:7|tab_content.d.ts|
+|起始版本有变化|类名:TextInterface
起始版本:7|类名:TextInterface
起始版本:9|text.d.ts|
+|起始版本有变化|类名:TextInterface
方法 or 属性:(content?: string \| Resource): TextAttribute;
起始版本:7|类名:TextInterface
方法 or 属性:(content?: string \| Resource): TextAttribute;
起始版本:9|text.d.ts|
+|起始版本有变化|类名:TextAttribute
起始版本:7|类名:TextAttribute
起始版本:9|text.d.ts|
+|起始版本有变化|类名:TextAttribute
方法 or 属性:fontColor(value: ResourceColor): TextAttribute;
起始版本:7|类名:TextAttribute
方法 or 属性:fontColor(value: ResourceColor): TextAttribute;
起始版本:9|text.d.ts|
+|起始版本有变化|类名:TextAttribute
方法 or 属性:fontSize(value: number \| string \| Resource): TextAttribute;
起始版本:7|类名:TextAttribute
方法 or 属性:fontSize(value: number \| string \| Resource): TextAttribute;
起始版本:9|text.d.ts|
+|起始版本有变化|类名:TextAttribute
方法 or 属性:minFontSize(value: number \| string \| Resource): TextAttribute;
起始版本:7|类名:TextAttribute
方法 or 属性:minFontSize(value: number \| string \| Resource): TextAttribute;
起始版本:9|text.d.ts|
+|起始版本有变化|类名:TextAttribute
方法 or 属性:maxFontSize(value: number \| string \| Resource): TextAttribute;
起始版本:7|类名:TextAttribute
方法 or 属性:maxFontSize(value: number \| string \| Resource): TextAttribute;
起始版本:9|text.d.ts|
+|起始版本有变化|类名:TextAttribute
方法 or 属性:fontStyle(value: FontStyle): TextAttribute;
起始版本:7|类名:TextAttribute
方法 or 属性:fontStyle(value: FontStyle): TextAttribute;
起始版本:9|text.d.ts|
+|起始版本有变化|类名:TextAttribute
方法 or 属性:fontWeight(value: number \| FontWeight \| string): TextAttribute;
起始版本:7|类名:TextAttribute
方法 or 属性:fontWeight(value: number \| FontWeight \| string): TextAttribute;
起始版本:9|text.d.ts|
+|起始版本有变化|类名:TextAttribute
方法 or 属性:textAlign(value: TextAlign): TextAttribute;
起始版本:7|类名:TextAttribute
方法 or 属性:textAlign(value: TextAlign): TextAttribute;
起始版本:9|text.d.ts|
+|起始版本有变化|类名:TextAttribute
方法 or 属性:lineHeight(value: number \| string \| Resource): TextAttribute;
起始版本:7|类名:TextAttribute
方法 or 属性:lineHeight(value: number \| string \| Resource): TextAttribute;
起始版本:9|text.d.ts|
+|起始版本有变化|类名:TextAttribute
方法 or 属性:textOverflow(value: { overflow: TextOverflow }): TextAttribute;
起始版本:7|类名:TextAttribute
方法 or 属性:textOverflow(value: { overflow: TextOverflow }): TextAttribute;
起始版本:9|text.d.ts|
+|起始版本有变化|类名:TextAttribute
方法 or 属性:fontFamily(value: string \| Resource): TextAttribute;
起始版本:7|类名:TextAttribute
方法 or 属性:fontFamily(value: string \| Resource): TextAttribute;
起始版本:9|text.d.ts|
+|起始版本有变化|类名:TextAttribute
方法 or 属性:maxLines(value: number): TextAttribute;
起始版本:7|类名:TextAttribute
方法 or 属性:maxLines(value: number): TextAttribute;
起始版本:9|text.d.ts|
+|起始版本有变化|类名:TextAttribute
方法 or 属性:decoration(value: { type: TextDecorationType; color?: ResourceColor }): TextAttribute;
起始版本:7|类名:TextAttribute
方法 or 属性:decoration(value: { type: TextDecorationType; color?: ResourceColor }): TextAttribute;
起始版本:9|text.d.ts|
+|起始版本有变化|类名:TextAttribute
方法 or 属性:letterSpacing(value: number \| string): TextAttribute;
起始版本:7|类名:TextAttribute
方法 or 属性:letterSpacing(value: number \| string): TextAttribute;
起始版本:9|text.d.ts|
+|起始版本有变化|类名:TextAttribute
方法 or 属性:textCase(value: TextCase): TextAttribute;
起始版本:7|类名:TextAttribute
方法 or 属性:textCase(value: TextCase): TextAttribute;
起始版本:9|text.d.ts|
+|起始版本有变化|类名:TextAttribute
方法 or 属性:baselineOffset(value: number \| string): TextAttribute;
起始版本:7|类名:TextAttribute
方法 or 属性:baselineOffset(value: number \| string): TextAttribute;
起始版本:9|text.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const TextInstance: TextAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const TextInstance: TextAttribute;
起始版本:9|text.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Text: TextInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Text: TextInterface;
起始版本:9|text.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const TextArea: TextAreaInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const TextArea: TextAreaInterface;
起始版本:7|text_area.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const TextAreaInstance: TextAreaAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const TextAreaInstance: TextAreaAttribute;
起始版本:7|text_area.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const TextClock: TextClockInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const TextClock: TextClockInterface;
起始版本:8|text_clock.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const TextClockInstance: TextClockAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const TextClockInstance: TextClockAttribute;
起始版本:8|text_clock.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const TextInput: TextInputInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const TextInput: TextInputInterface;
起始版本:7|text_input.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const TextInputInstance: TextInputAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const TextInputInstance: TextInputAttribute;
起始版本:7|text_input.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const TextPicker: TextPickerInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const TextPicker: TextPickerInterface;
起始版本:8|text_picker.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const TextPickerInstance: TextPickerAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const TextPickerInstance: TextPickerAttribute;
起始版本:8|text_picker.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const TextTimer: TextTimerInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const TextTimer: TextTimerInterface;
起始版本:8|text_timer.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const TextTimerInstance: TextTimerAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const TextTimerInstance: TextTimerAttribute;
起始版本:8|text_timer.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const TimePicker: TimePickerInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const TimePicker: TimePickerInterface;
起始版本:8|time_picker.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const TimePickerInstance: TimePickerAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const TimePickerInstance: TimePickerAttribute;
起始版本:8|time_picker.d.ts|
+|起始版本有变化|类名:ToggleType
起始版本:8|类名:ToggleType
起始版本:9|toggle.d.ts|
+|起始版本有变化|类名:ToggleType
方法 or 属性:Checkbox
起始版本:8|类名:ToggleType
方法 or 属性:Checkbox
起始版本:9|toggle.d.ts|
+|起始版本有变化|类名:ToggleType
方法 or 属性:Switch
起始版本:8|类名:ToggleType
方法 or 属性:Switch
起始版本:9|toggle.d.ts|
+|起始版本有变化|类名:ToggleType
方法 or 属性:Button
起始版本:8|类名:ToggleType
方法 or 属性:Button
起始版本:9|toggle.d.ts|
+|起始版本有变化|类名:ToggleInterface
起始版本:8|类名:ToggleInterface
起始版本:9|toggle.d.ts|
+|起始版本有变化|类名:ToggleInterface
方法 or 属性:(options: { type: ToggleType; isOn?: boolean }): ToggleAttribute;
起始版本:8|类名:ToggleInterface
方法 or 属性:(options: { type: ToggleType; isOn?: boolean }): ToggleAttribute;
起始版本:9|toggle.d.ts|
+|起始版本有变化|类名:ToggleAttribute
起始版本:8|类名:ToggleAttribute
起始版本:9|toggle.d.ts|
+|起始版本有变化|类名:ToggleAttribute
方法 or 属性:onChange(callback: (isOn: boolean) => void): ToggleAttribute;
起始版本:8|类名:ToggleAttribute
方法 or 属性:onChange(callback: (isOn: boolean) => void): ToggleAttribute;
起始版本:9|toggle.d.ts|
+|起始版本有变化|类名:ToggleAttribute
方法 or 属性:selectedColor(value: ResourceColor): ToggleAttribute;
起始版本:8|类名:ToggleAttribute
方法 or 属性:selectedColor(value: ResourceColor): ToggleAttribute;
起始版本:9|toggle.d.ts|
+|起始版本有变化|类名:ToggleAttribute
方法 or 属性:switchPointColor(color: ResourceColor): ToggleAttribute;
起始版本:8|类名:ToggleAttribute
方法 or 属性:switchPointColor(color: ResourceColor): ToggleAttribute;
起始版本:9|toggle.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Toggle: ToggleInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Toggle: ToggleInterface;
起始版本:9|toggle.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const ToggleInstance: ToggleAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const ToggleInstance: ToggleAttribute;
起始版本:9|toggle.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Video: VideoInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Video: VideoInterface;
起始版本:7|video.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const VideoInstance: VideoAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const VideoInstance: VideoAttribute;
起始版本:7|video.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const WaterFlow: WaterFlowInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const WaterFlow: WaterFlowInterface;
起始版本:9|water_flow.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const WaterFlowInstance: WaterFlowAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const WaterFlowInstance: WaterFlowAttribute;
起始版本:9|water_flow.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const Web: WebInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const Web: WebInterface;
起始版本:8|web.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const WebInstance: WebAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const WebInstance: WebAttribute;
起始版本:8|web.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const XComponent: XComponentInterface;
起始版本:N/A|类名:global
方法 or 属性:declare const XComponent: XComponentInterface;
起始版本:8|xcomponent.d.ts|
+|起始版本有变化|类名:global
方法 or 属性:declare const XComponentInstance: XComponentAttribute;
起始版本:N/A|类名:global
方法 or 属性:declare const XComponentInstance: XComponentAttribute;
起始版本:8|xcomponent.d.ts|
+|SysCap有变化|类名:console
方法 or 属性:static debug(message: string, ...arguments: any[]): void;
SysCap:SystemCapability.ArkUI.ArkUI.Full|类名:console
方法 or 属性:static debug(message: string, ...arguments: any[]): void;
SysCap:N/A|global.d.ts|
+|SysCap有变化|类名:console
方法 or 属性:static log(message: string, ...arguments: any[]): void;
SysCap:SystemCapability.ArkUI.ArkUI.Full|类名:console
方法 or 属性:static log(message: string, ...arguments: any[]): void;
SysCap:N/A|global.d.ts|
+|SysCap有变化|类名:console
方法 or 属性:static info(message: string, ...arguments: any[]): void;
SysCap:SystemCapability.ArkUI.ArkUI.Full|类名:console
方法 or 属性:static info(message: string, ...arguments: any[]): void;
SysCap:N/A|global.d.ts|
+|SysCap有变化|类名:console
方法 or 属性:static warn(message: string, ...arguments: any[]): void;
SysCap:SystemCapability.ArkUI.ArkUI.Full|类名:console
方法 or 属性:static warn(message: string, ...arguments: any[]): void;
SysCap:N/A|global.d.ts|
+|SysCap有变化|类名:console
方法 or 属性:static error(message: string, ...arguments: any[]): void;
SysCap:SystemCapability.ArkUI.ArkUI.Full|类名:console
方法 or 属性:static error(message: string, ...arguments: any[]): void;
SysCap:N/A|global.d.ts|
+|SysCap有变化|类名:TabContentInterface
SysCap:N/A|类名:TabContentInterface
SysCap:SystemCapability.ArkUI.ArkUI.Full|tab_content.d.ts|
+|SysCap有变化|类名:TabContentInterface
方法 or 属性:(): TabContentAttribute;
SysCap:N/A|类名:TabContentInterface
方法 or 属性:(): TabContentAttribute;
SysCap:SystemCapability.ArkUI.ArkUI.Full|tab_content.d.ts|
+|SysCap有变化|类名:TabContentAttribute
SysCap:N/A|类名:TabContentAttribute
SysCap:SystemCapability.ArkUI.ArkUI.Full|tab_content.d.ts|
+|SysCap有变化|类名:TabContentAttribute
方法 or 属性:tabBar(value: string \| Resource \| CustomBuilder \|
{ icon?: string \| Resource; text?: string \| Resource }): TabContentAttribute;
SysCap:N/A|类名:TabContentAttribute
方法 or 属性:tabBar(value: string \| Resource \| CustomBuilder \|
{ icon?: string \| Resource; text?: string \| Resource }): TabContentAttribute;
SysCap:SystemCapability.ArkUI.ArkUI.Full|tab_content.d.ts|
+|SysCap有变化|类名:global
方法 or 属性:declare const TabContent: TabContentInterface;
SysCap:N/A|类名:global
方法 or 属性:declare const TabContent: TabContentInterface;
SysCap:SystemCapability.ArkUI.ArkUI.Full|tab_content.d.ts|
+|SysCap有变化|类名:global
方法 or 属性:declare const TabContentInstance: TabContentAttribute;
SysCap:N/A|类名:global
方法 or 属性:declare const TabContentInstance: TabContentAttribute;
SysCap:SystemCapability.ArkUI.ArkUI.Full|tab_content.d.ts|
+|函数有变化|类名:
方法 or 属性: function getInspectorTree(): string;
|类名:
方法 or 属性: function getInspectorTree(): Object;
|global.d.ts|
+|函数有变化|类名:LocalStorage
方法 or 属性:get\(propName: string): T;
|类名:LocalStorage
方法 or 属性:get\(propName: string): T \| undefined;
|common_ts_ets_api.d.ts|
+|函数有变化|类名:LocalStorage
方法 or 属性:setOrCreate\(propName: string, newValue?: T): boolean;
|类名:LocalStorage
方法 or 属性:setOrCreate\(propName: string, newValue: T): boolean;
|common_ts_ets_api.d.ts|
+|函数有变化|类名:LocalStorage
方法 or 属性:link\(propName: string, linkUser?: T, subscribersName?: string): T;
|类名:LocalStorage
方法 or 属性:link\(propName: string): SubscribedAbstractProperty\;
|common_ts_ets_api.d.ts|
+|函数有变化|类名:LocalStorage
方法 or 属性:setAndLink\(propName: string, defaultValue: T, linkUser?: T, subscribersName?: string): T;
|类名:LocalStorage
方法 or 属性:setAndLink\(propName: string, defaultValue: T): SubscribedAbstractProperty\;
|common_ts_ets_api.d.ts|
+|函数有变化|类名:LocalStorage
方法 or 属性:prop\(propName: string, propUser?: T, subscribersName?: string): T;
|类名:LocalStorage
方法 or 属性:prop\(propName: string): SubscribedAbstractProperty\;
|common_ts_ets_api.d.ts|
+|函数有变化|类名:LocalStorage
方法 or 属性:setAndProp\(propName: string, defaultValue: T, propUser?: T, subscribersName?: string): T;
|类名:LocalStorage
方法 or 属性:setAndProp\(propName: string, defaultValue: S): SubscribedAbstractProperty\;
|common_ts_ets_api.d.ts|
diff --git a/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-battery.md b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-battery.md
new file mode 100644
index 0000000000000000000000000000000000000000..8ea014b7b3c716bcf205c3ef49f426a64d1544d0
--- /dev/null
+++ b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-battery.md
@@ -0,0 +1,38 @@
+| 操作 | 旧版本 | 新版本 | d.ts文件 |
+| ---- | ------ | ------ | -------- |
+|新增|NA|类名:BatteryCapacityLevel
方法or属性:LEVEL_WARNING|@ohos.batteryInfo.d.ts|
+|新增|NA|类名:BatteryCapacityLevel
方法or属性:LEVEL_SHUTDOWN|@ohos.batteryInfo.d.ts|
+|新增|NA|模块名: ohos.batteryInfo
类名: CommonEventBatteryChangedKey|@ohos.batteryInfo.d.ts|
+|新增|NA|类名:CommonEventBatteryChangedKey
方法or属性:|@ohos.batteryInfo.d.ts|
+|新增|NA|模块名: ohos.batteryInfo
类名: CommonEventBatteryChangedKey
方法 or 属性:EXTRA_SOC = "soc"|@ohos.batteryInfo.d.ts|
+|新增|NA|类名:CommonEventBatteryChangedKey
方法or属性:EXTRA_SOC = "soc"|@ohos.batteryInfo.d.ts|
+|新增|NA|模块名: ohos.batteryInfo
类名: CommonEventBatteryChangedKey
方法 or 属性:EXTRA_CHARGE_STATE = "chargeState"|@ohos.batteryInfo.d.ts|
+|新增|NA|类名:CommonEventBatteryChangedKey
方法or属性:EXTRA_CHARGE_STATE = "chargeState"|@ohos.batteryInfo.d.ts|
+|新增|NA|模块名: ohos.batteryInfo
类名: CommonEventBatteryChangedKey
方法 or 属性:EXTRA_HEALTH_STATE = "healthState"|@ohos.batteryInfo.d.ts|
+|新增|NA|类名:CommonEventBatteryChangedKey
方法or属性:EXTRA_HEALTH_STATE = "healthState"|@ohos.batteryInfo.d.ts|
+|新增|NA|模块名: ohos.batteryInfo
类名: CommonEventBatteryChangedKey
方法 or 属性:EXTRA_PLUGGED_TYPE = "pluggedType"|@ohos.batteryInfo.d.ts|
+|新增|NA|类名:CommonEventBatteryChangedKey
方法or属性:EXTRA_PLUGGED_TYPE = "pluggedType"|@ohos.batteryInfo.d.ts|
+|新增|NA|模块名: ohos.batteryInfo
类名: CommonEventBatteryChangedKey
方法 or 属性:EXTRA_VOLTAGE = "voltage"|@ohos.batteryInfo.d.ts|
+|新增|NA|类名:CommonEventBatteryChangedKey
方法or属性:EXTRA_VOLTAGE = "voltage"|@ohos.batteryInfo.d.ts|
+|新增|NA|模块名: ohos.batteryInfo
类名: CommonEventBatteryChangedKey
方法 or 属性:EXTRA_TECHNOLOGY = "technology"|@ohos.batteryInfo.d.ts|
+|新增|NA|类名:CommonEventBatteryChangedKey
方法or属性:EXTRA_TECHNOLOGY = "technology"|@ohos.batteryInfo.d.ts|
+|新增|NA|模块名: ohos.batteryInfo
类名: CommonEventBatteryChangedKey
方法 or 属性:EXTRA_TEMPERATURE = "temperature"|@ohos.batteryInfo.d.ts|
+|新增|NA|类名:CommonEventBatteryChangedKey
方法or属性:EXTRA_TEMPERATURE = "temperature"|@ohos.batteryInfo.d.ts|
+|新增|NA|模块名: ohos.batteryInfo
类名: CommonEventBatteryChangedKey
方法 or 属性:EXTRA_PRESENT = "present"|@ohos.batteryInfo.d.ts|
+|新增|NA|类名:CommonEventBatteryChangedKey
方法or属性:EXTRA_PRESENT = "present"|@ohos.batteryInfo.d.ts|
+|新增|NA|模块名: ohos.batteryInfo
类名: CommonEventBatteryChangedKey
方法 or 属性:EXTRA_CAPACITY_LEVEL = "capacityLevel"|@ohos.batteryInfo.d.ts|
+|新增|NA|类名:CommonEventBatteryChangedKey
方法or属性:EXTRA_CAPACITY_LEVEL = "capacityLevel"|@ohos.batteryInfo.d.ts|
+|删除|模块名:ohos.batteryInfo
类名:BatteryCapacityLevel
方法 or 属性:LEVEL_NONE|NA|@ohos.batteryInfo.d.ts|
+|删除|模块名: ohos.batteryInfo
类名: CommonEventBatteryChangedCode|NA|@ohos.batteryInfo.d.ts|
+|删除|模块名: ohos.batteryInfo
类名: CommonEventBatteryChangedCode
方法 or 属性:EXTRA_SOC = 0|NA|@ohos.batteryInfo.d.ts|
+|删除|模块名: ohos.batteryInfo
类名: CommonEventBatteryChangedCode
方法 or 属性:EXTRA_VOLTAGE|NA|@ohos.batteryInfo.d.ts|
+|删除|模块名: ohos.batteryInfo
类名: CommonEventBatteryChangedCode
方法 or 属性:EXTRA_TEMPERATURE|NA|@ohos.batteryInfo.d.ts|
+|删除|模块名: ohos.batteryInfo
类名: CommonEventBatteryChangedCode
方法 or 属性:EXTRA_HEALTH_STATE|NA|@ohos.batteryInfo.d.ts|
+|删除|模块名: ohos.batteryInfo
类名: CommonEventBatteryChangedCode
方法 or 属性:EXTRA_PLUGGED_TYPE|NA|@ohos.batteryInfo.d.ts|
+|删除|模块名: ohos.batteryInfo
类名: CommonEventBatteryChangedCode
方法 or 属性:EXTRA_MAX_CURRENT|NA|@ohos.batteryInfo.d.ts|
+|删除|模块名: ohos.batteryInfo
类名: CommonEventBatteryChangedCode
方法 or 属性:EXTRA_MAX_VOLTAGE|NA|@ohos.batteryInfo.d.ts|
+|删除|模块名: ohos.batteryInfo
类名: CommonEventBatteryChangedCode
方法 or 属性:EXTRA_CHARGE_STATE|NA|@ohos.batteryInfo.d.ts|
+|删除|模块名: ohos.batteryInfo
类名: CommonEventBatteryChangedCode
方法 or 属性:EXTRA_CHARGE_COUNTER|NA|@ohos.batteryInfo.d.ts|
+|删除|模块名: ohos.batteryInfo
类名: CommonEventBatteryChangedCode
方法 or 属性:EXTRA_PRESENT|NA|@ohos.batteryInfo.d.ts|
+|删除|模块名: ohos.batteryInfo
类名: CommonEventBatteryChangedCode
方法 or 属性:EXTRA_TECHNOLOGY|NA|@ohos.batteryInfo.d.ts|
+|访问级别有变化|类名:batteryInfo
方法 or 属性:const estimatedRemainingChargeTime: number;
访问级别:公开API|类名:batteryInfo
方法 or 属性:const estimatedRemainingChargeTime: number;
访问级别:系统API|@ohos.batteryInfo.d.ts|
diff --git a/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-bundle.md b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-bundle.md
new file mode 100644
index 0000000000000000000000000000000000000000..80e6361ca7b6a55649b3dd5b05cca56d26449fa6
--- /dev/null
+++ b/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/js-apidiff-bundle.md
@@ -0,0 +1,351 @@
+| 操作 | 旧版本 | 新版本 | d.ts文件 |
+| ---- | ------ | ------ | -------- |
+|新增|NA|类名:LaunchType
方法or属性:MULTITON = 1|@ohos.bundle.bundleManager.d.ts|
+|新增|NA|模块名: ohos.bundle.bundleManager
类名: ModuleType|@ohos.bundle.bundleManager.d.ts|
+|新增|NA|类名:ModuleType
方法or属性:|@ohos.bundle.bundleManager.d.ts|
+|新增|NA|模块名: ohos.bundle.bundleManager
类名: ModuleType
方法 or 属性:ENTRY = 1|@ohos.bundle.bundleManager.d.ts|
+|新增|NA|类名:ModuleType
方法or属性:ENTRY = 1|@ohos.bundle.bundleManager.d.ts|
+|新增|NA|模块名: ohos.bundle.bundleManager
类名: ModuleType
方法 or 属性:FEATURE = 2|@ohos.bundle.bundleManager.d.ts|
+|新增|NA|类名:ModuleType
方法or属性:FEATURE = 2|@ohos.bundle.bundleManager.d.ts|
+|新增|NA|模块名: ohos.bundle.bundleManager
类名: ModuleType
方法 or 属性:SHARED = 3|@ohos.bundle.bundleManager.d.ts|
+|新增|NA|类名:ModuleType
方法or属性:SHARED = 3|@ohos.bundle.bundleManager.d.ts|
+|新增|NA|模块名: ohos.bundle.bundleManager
类名: BundleType|@ohos.bundle.bundleManager.d.ts|
+|新增|NA|类名:BundleType
方法or属性:|@ohos.bundle.bundleManager.d.ts|
+|新增|NA|模块名: ohos.bundle.bundleManager
类名: BundleType
方法 or 属性:APP = 0|@ohos.bundle.bundleManager.d.ts|
+|新增|NA|类名:BundleType
方法or属性:APP = 0|@ohos.bundle.bundleManager.d.ts|
+|新增|NA|模块名: ohos.bundle.bundleManager
类名: BundleType
方法 or 属性:ATOMIC_SERVICE = 1|@ohos.bundle.bundleManager.d.ts|
+|新增|NA|类名:BundleType
方法or属性:ATOMIC_SERVICE = 1|@ohos.bundle.bundleManager.d.ts|
+|新增|NA|类名:BundleInstaller
方法or属性:install(hapFilePaths: Array\, callback: AsyncCallback\) : void;|@ohos.bundle.installer.d.ts|
+|新增|NA|类名:BundleInstaller
方法or属性:recover(bundleName: string, callback: AsyncCallback\): void;|@ohos.bundle.installer.d.ts|
+|新增|NA|类名:InstallParam
方法or属性:userId?: number;|@ohos.bundle.installer.d.ts|
+|新增|NA|类名:InstallParam
方法or属性:installFlag?: number;|@ohos.bundle.installer.d.ts|
+|新增|NA|类名:InstallParam
方法or属性:isKeepData?: boolean;|@ohos.bundle.installer.d.ts|
+|新增|NA|模块名: AbilityInfo
类名: AbilityInfo|AbilityInfo.d.ts|
+|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly bundleName: string;|AbilityInfo.d.ts|
+|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly moduleName: string;|AbilityInfo.d.ts|
+|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly name: string;|AbilityInfo.d.ts|
+|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly label: string;|AbilityInfo.d.ts|
+|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly labelId: number;|AbilityInfo.d.ts|
+|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly description: string;|AbilityInfo.d.ts|
+|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly descriptionId: number;|AbilityInfo.d.ts|
+|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly icon: string;|AbilityInfo.d.ts|
+|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly iconId: number;|AbilityInfo.d.ts|
+|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly process: string;|AbilityInfo.d.ts|
+|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly exported: boolean;|AbilityInfo.d.ts|
+|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly type: bundleManager.AbilityType;|AbilityInfo.d.ts|
+|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly orientation: bundleManager.DisplayOrientation;|AbilityInfo.d.ts|
+|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly launchType: bundleManager.LaunchType;|AbilityInfo.d.ts|
+|新增|NA|模块名: AbilityInfo
类名: AbilityInfo
方法 or 属性: readonly permissions: Array\;|AbilityInfo.d.ts|
+|新增|NA|模块名: AbilityInfo