diff --git a/zh-cn/application-dev/reference/apis/js-apis-sensor.md b/zh-cn/application-dev/reference/apis/js-apis-sensor.md index bc32d4f9ba12efa00208d304cca6bd88d6e790b5..9f644bb4e4f38e389d0a904ef5793a091eecca0c 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-sensor.md +++ b/zh-cn/application-dev/reference/apis/js-apis-sensor.md @@ -2393,9 +2393,9 @@ createRotationMatrix(gravity: Array<number>, geomagnetic: Array<number& **参数:** -| 参数名 | 类型 | 必填 | 说明 | -| -------- | --------------------------------------------- | ---- | ---------------- | -| callback | AsyncCallback | 是 | 返回传感器列表。 | +| 参数名 | 类型 | 必填 | 说明 | +| -------- | ---------------------------------------------------------- | ---- | ---------------- | +| callback | AsyncCallback9+)>> | 是 | 返回传感器列表。 | **示例:** @@ -2422,9 +2422,9 @@ sensor.getSensorList((error, data) => { **返回值:** -| 参数名 | 类型 | 必填 | 说明 | -| ------- | --------------------------------------- | ---- | ---------------- | -| promise | Promise | 是 | 返回传感器列表。 | +| 参数名 | 类型 | 必填 | 说明 | +| ------- | ---------------------------------------------------- | ---- | ---------------- | +| promise | Promise9+)>> | 是 | 返回传感器列表。 | **示例:** @@ -2441,7 +2441,7 @@ sensor.getSensorList().then((data) => { ## sensor.getSingleSensor9+ -getSingleSensor(type:SensorType, callback: AsyncCallback<sensor>): void +getSingleSensor(type:SensorType, callback: AsyncCallback<sensor>): void 获取指定类型的传感器信息。 @@ -2449,12 +2449,12 @@ getSingleSensor(type:SensorType, callback: AsyncCallback<sensor>): void **参数:** -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------------------------------------- | ---- | ---------------- | -| type | SensorType | 是 | 传感器类型。 | -| callback | AsyncCallback<[Sensor](#sensor)> | 是 | 返回传感器信息。 | +| 参数名 | 类型 | 必填 | 说明 | +| -------- | ---------------------------------------------------- | ---- | ---------------- | +| type | SensorType | 是 | 传感器类型。 | +| callback | AsyncCallback<[Sensor>](#sensor9+)> | 是 | 返回传感器信息。 | -**示例:** +**示例:** ```js sensor.getSingleSensor(sensor.SensorType.SENSOR_TYPE_ID_ACCELEROMETER, (error, data) => { @@ -2468,7 +2468,7 @@ getSingleSensor(type:SensorType, callback: AsyncCallback<sensor>): void ## sensor.getSingleSensor9+ - getSingleSensor(type: SensorType,): Promise<Sensor> + getSingleSensor(type: SensorType): Promise<Sensor> 获取指定类型的传感器信息。 @@ -2482,9 +2482,9 @@ getSingleSensor(type:SensorType, callback: AsyncCallback<sensor>): void **返回值:** -| 参数名 | 类型 | 必填 | 说明 | -| ------- | -------------------------------- | ---- | ---------------- | -| promise | Promise<[Sensor](#sensor)> | 是 | 返回传感器信息。 | +| 参数名 | 类型 | 必填 | 说明 | +| ------- | --------------------------------------------- | ---- | ---------------- | +| promise | Promise<[Sensor](#sensor9+)> | 是 | 返回传感器信息。 | **示例:** @@ -2540,7 +2540,7 @@ sensor.getSingleSensor(sensor.SensorType.SENSOR_TYPE_ID_ACCELEROMETER).then((dat | --------- | -------- | ---- | ---- | ------------------------ | | timestamp | number | 是 | 是 | 传感器数据上报的时间戳。 | -## Sensor +## Sensor9+ 指示传感器信息。 diff --git a/zh-cn/application-dev/reference/apis/js-apis-vibrator.md b/zh-cn/application-dev/reference/apis/js-apis-vibrator.md index 3459cfc51a585e9c87d969bdd5e1bda6acf0e383..3cc54ce8823cfecb3592d7204f9d2f1a40793da6 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-vibrator.md +++ b/zh-cn/application-dev/reference/apis/js-apis-vibrator.md @@ -57,10 +57,10 @@ vibrate(effect: VibrateEffect, attribute: VibrateAttribute): Promise<void> **参数:** -| 参数名 | 类型 | 必填 | 说明 | -| --------- | ------------------------------------- | ---- | :------------- | -| effect | [VibrateEffect](#vibrateeffect) | 是 | 马达振动效果。 | -| attribute | [VibrateAttribute](#vibrateattribute) | 是 | 马达振动属性。 | +| 参数名 | 类型 | 必填 | 说明 | +| --------- | -------------------------------------------------- | ---- | :------------- | +| effect | [VibrateEffect](#vibrateeffect9+) | 是 | 马达振动效果。 | +| attribute | [VibrateAttribute](#vibrateattribute9+) | 是 | 马达振动属性。 | **返回值:** @@ -183,11 +183,11 @@ vibrate(effect: VibrateEffect, attribute: VibrateAttribute, callback: AsyncCallb **参数:** -| 参数名 | 类型 | 必填 | 说明 | -| --------- | ------------------------------------- | ---- | :--------------------------------------------------------- | -| effect | [VibrateEffect](#vibrateeffect) | 是 | 马达振动效果。 | -| attribute | [VibrateAttribute](#vibrateattribute) | 是 | 马达振动属性。 | -| callback | AsyncCallback<void> | 是 | 回调函数。当马达振动成功,err为undefined,否则为错误对象。 | +| 参数名 | 类型 | 必填 | 说明 | +| --------- | -------------------------------------------------- | ---- | :--------------------------------------------------------- | +| effect | [VibrateEffect](#VibrateEffect9+) | 是 | 马达振动效果。 | +| attribute | [VibrateAttribute](#vibrateattribute9+) | 是 | 马达振动属性。 | +| callback | AsyncCallback<void> | 是 | 回调函数。当马达振动成功,err为undefined,否则为错误对象。 | 示例: @@ -292,10 +292,10 @@ stop(stopMode: VibratorStopMode, callback?: AsyncCallback<void>): void; ## VibrateEffect9+ -| 类型 | 说明 | -| ------------------------------- | ------------------------------ | -| [VibrateTime](#vibratetime) | 按照指定持续时间触发马达振动。 | -| [VibratePreset](#vibratepreset) | 按照预置振动类型触发马达振动。 | +| 类型 | 说明 | +| -------------------------------------------- | ------------------------------ | +| [VibrateTime](#vibratetime9+) | 按照指定持续时间触发马达振动。 | +| [VibratePreset](#vibratepreset9+) | 按照预置振动类型触发马达振动。 | ## VibrateTime9+