From cf2c1a228bbeb7a17abefb4f679daa2026b9278c Mon Sep 17 00:00:00 2001 From: cff-gite Date: Fri, 30 Sep 2022 15:35:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=B5=84=E6=96=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: cff-gite --- .../reference/apis/js-apis-sensor.md | 162 +++++++++--------- 1 file changed, 81 insertions(+), 81 deletions(-) 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 53ade4fdd2..d82e5c5d74 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-sensor.md +++ b/zh-cn/application-dev/reference/apis/js-apis-sensor.md @@ -3095,7 +3095,7 @@ on(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback<Acceler 监听加速度传感器的数据变化。如果多次调用该接口,仅最后一次调用生效。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.on.ACCELEROMETER](#accelerometer9) +从API version 9 开始不再维护,建议使用[sensor.on.ACCELEROMETER](#accelerometer9)代替。 **需要权限**:ohos.permission.ACCELEROMETER @@ -3127,7 +3127,7 @@ on(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION,callback:Callback<Line 监听线性加速度传感器的数据变化。如果多次调用该接口,仅最后一次调用生效。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.on.LINEAR_ACCELEROMETER](#linear_accelerometer9) +从API version 9 开始不再维护,建议使用[sensor.on.LINEAR_ACCELEROMETER](#linear_accelerometer9)代替。 **需要权限**:ohos.permission.ACCELEROMETER @@ -3177,7 +3177,7 @@ on(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED,callback: Callback 监听未校准加速度计传感器的数据变化。如果多次调用该接口,仅最后一次调用生效。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用 [sensor.on.ACCELEROMETER_UNCALIBRATED](#accelerometer_uncalibrated9) +从API version 9 开始不再维护,建议使用[sensor.on.ACCELEROMETER_UNCALIBRATED](#accelerometer_uncalibrated9)代替。 **需要权限**:ohos.permission.ACCELEROMETER @@ -3211,7 +3211,7 @@ on(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback<GravityRespons 监听重力传感器的数据变化。如果多次调用该接口,仅最后一次调用生效。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.on.GRAVITY](#gravity9) +从API version 9 开始不再维护,建议使用[sensor.on.GRAVITY](#gravity9)代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -3240,7 +3240,7 @@ on(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback<GyroscopeRes 监听陀螺仪传感器的数据变化。如果多次调用该接口,仅最后一次调用生效。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.on.GYROSCOPE](#gyroscope9) +从API version 9 开始不再维护,建议使用[sensor.on.GYROSCOPE](#gyroscope9)代替。 **需要权限**:ohos.permission.GYROSCOPE @@ -3271,7 +3271,7 @@ on(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED,callback:Callback<G 监听未校准陀螺仪传感器的数据变化。如果多次调用该接口,仅最后一次调用生效。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.on.GYROSCOPE_UNCALIBRATED](#gyroscope_uncalibrated9) +从API version 9 开始不再维护,建议使用[sensor.on.GYROSCOPE_UNCALIBRATED](#gyroscope_uncalibrated9)代替。 **需要权限**:ohos.permission.GYROSCOPE @@ -3305,7 +3305,7 @@ on(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback<Sig 监听大幅动作传感器数据变化。如果多次调用该接口,仅最后一次调用生效。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.on.SIGNIFICANT_MOTION](#significant_motion9) +从API version 9 开始不再维护,建议使用[sensor.on.SIGNIFICANT_MOTION](#significant_motion9) 代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -3332,7 +3332,7 @@ on(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback<Pe 监听计步检测传感器的数据变化。如果多次调用该接口,仅最后一次调用生效。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.on.PEDOMETER_DETECTION](#pedometer_detection9) +从API version 9 开始不再维护,建议使用[sensor.on.PEDOMETER_DETECTION](#pedometer_detection9)代替。 **需要权限**:ohos.permission.ACTIVITY_MOTION @@ -3361,7 +3361,7 @@ on(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback<PedometerRes 监听计步传感器的数据变化。如果多次调用该接口,仅最后一次调用生效。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.on.PEDOMETER](#pedometer9) +从API version 9 开始不再维护,建议使用[sensor.on.PEDOMETER](#pedometer9)代替。 **需要权限**:ohos.permission.ACTIVITY_MOTION @@ -3390,7 +3390,7 @@ on(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE,callback:Callback<Ambi 监听环境温度传感器的数据变化。如果多次调用该接口,仅最后一次调用生效。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.on.AMBIENT_TEMPERATURE](#ambient_temperature9) +从API version 9 开始不再维护,建议使用[sensor.on.AMBIENT_TEMPERATURE](#ambient_temperature9)代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -3418,7 +3418,7 @@ on(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback<Magneti 监听磁场传感器的数据变化。如果多次调用该接口,仅最后一次调用生效。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.on.MAGNETIC_FIELD](#magnetic_field9) +从API version 9 开始不再维护,建议使用[sensor.on.MAGNETIC_FIELD](#magnetic_field9)代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -3448,7 +3448,7 @@ on(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED,callback: Callbac 监听未校准磁场传感器的数据变化。如果多次调用该接口,仅最后一次调用生效。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.on.MAGNETIC_FIELD_UNCALIBRATED](#magnetic_field_uncalibrated9) +从API version 9 开始不再维护,建议使用[sensor.on.MAGNETIC_FIELD_UNCALIBRATED](#magnetic_field_uncalibrated9)代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -3480,7 +3480,7 @@ on(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback<ProximityRes 监听接近光传感器的数据变化。如果多次调用该接口,仅最后一次调用生效。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.on.PROXIMITY](#proximity9) +从API version 9 开始不再维护,建议使用[sensor.on.PROXIMITY](#proximity9)代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -3507,7 +3507,7 @@ on(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback<HumidityRespo 监听湿度传感器的数据变化。如果多次调用该接口,仅最后一次调用生效。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.on.HUMIDITY](#humidity9) +从API version 9 开始不再维护,建议使用[sensor.on.HUMIDITY](#humidity9)代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -3535,7 +3535,7 @@ on(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback<BarometerRes 监听气压计传感器的数据变化。如果多次调用该接口,仅最后一次调用生效。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.on.BAROMETER](#barometer9) +从API version 9 开始不再维护,建议使用[sensor.on.BAROMETER](#barometer9)代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -3563,7 +3563,7 @@ on(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback<HallResponse>, 监听霍尔传感器的数据变化。如果多次调用该接口,仅最后一次调用生效。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.on.HALL](#hall9) +从API version 9 开始不再维护,建议使用[sensor.on.HALL](#hall9)代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -3590,7 +3590,7 @@ on(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback<LightRes 监听环境光传感器的数据变化。如果多次调用该接口,仅最后一次调用生效。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.on.AMBIENT_LIGHT](#ambient_light9) +从API version 9 开始不再维护,建议使用[sensor.on.AMBIENT_LIGHT](#ambient_light9)代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -3618,7 +3618,7 @@ on(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback<Orientatio 监听方向传感器的数据变化。如果多次调用该接口,仅最后一次调用生效。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.on.ORIENTATION](#orientation9) +从API version 9 开始不再维护,建议使用[sensor.on.ORIENTATION](#orientation9)代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -3647,7 +3647,7 @@ on(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback<HeartRateRe 监听心率传感器数据变化一次。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.on.HEART_BEAT_RATE](#heart_beat_rate9) +从API version 9 开始不再维护,建议使用[sensor.on.HEART_BEAT_RATE](#heart_beat_rate9)代替。 **需要权限**:ohos.permission.HEALTH_DATA @@ -3694,7 +3694,7 @@ on(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR,callback: Callback<Rotatio 监听旋转矢量传感器的数据变化。如果多次调用该接口,仅最后一次调用生效。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.on.ROTATION_VECTOR](#rotation_vector9) +从API version 9 开始不再维护,建议使用[sensor.on.ROTATION_VECTOR](#rotation_vector9)代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -3724,7 +3724,7 @@ on(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback<WearDet 监听佩戴检测传感器的数据变化。如果多次调用该接口,仅最后一次调用生效。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.on.WEAR_DETECTION](#wear_detection9) +从API version 9 开始不再维护,建议使用[sensor.on.WEAR_DETECTION](#wear_detection9)代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -3753,7 +3753,7 @@ once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback<Accele 监听加速度传感器的数据变化一次。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.once.ACCELEROMETER](#accelerometer9-1) +从API version 9 开始不再维护,建议使用[sensor.once.ACCELEROMETER](#accelerometer9-1)代替。 **需要权限**:ohos.permission.ACCELEROMETER @@ -3782,7 +3782,7 @@ once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION,callback:Callback<Li 监听线性加速度传感器数据变化一次。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请用[sensor.once.LINEAR_ACCELEROMETER](#linear_accelerometer9) +从API version 9 开始不再维护,建议使用[sensor.once.LINEAR_ACCELEROMETER](#linear_accelerometer9)代替。 **需要权限**:ohos.permission.ACCELERATION @@ -3828,7 +3828,7 @@ once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED,callback: Callba 监听未校准加速度传感器的数据变化一次。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请用[sensor.once.ACCELEROMETER_UNCALIBRATED](#accelerometer_uncalibrated9-1) +从API version 9 开始不再维护,建议使用[sensor.once.ACCELEROMETER_UNCALIBRATED](#accelerometer_uncalibrated9-1)代替。 **需要权限**:ohos.permission.ACCELEROMETER @@ -3860,7 +3860,7 @@ once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback<GravityRespo 监听重力传感器的数据变化一次。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请用[sensor.once.GRAVITY](#gravity9-1) +从API version 9 开始不再维护,建议使用[sensor.once.GRAVITY](#gravity9-1)代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -3887,7 +3887,7 @@ once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback<GyroscopeR 监听陀螺仪传感器的数据变化一次。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请用[sensor.once.GYROSCOPE](#gyroscope9-1) +从API version 9 开始不再维护,建议使用[sensor.once.GYROSCOPE](#gyroscope9-1)代替。 **需要权限**:ohos.permission.GYROSCOPE @@ -3916,7 +3916,7 @@ once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED,callback: Callback&l 监听未校准陀螺仪传感器的数据变化一次。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请用[sensor.once.GYROSCOPE_UNCALIBRATED](#gyroscope_uncalibrated9-1) +从API version 9 开始不再维护,建议使用[sensor.once.GYROSCOPE_UNCALIBRATED](#gyroscope_uncalibrated9-1)代替。 **需要权限**:ohos.permission.GYROSCOPE @@ -3948,7 +3948,7 @@ once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION,callback: Callback<Si 监听有效运动传感器的数据变化一次。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请用[sensor.once.SIGNIFICANT_MOTION](#significant_motion9-1) +从API version 9 开始不再维护,建议使用[sensor.once.SIGNIFICANT_MOTION](#significant_motion9-1)代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -3973,7 +3973,7 @@ once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION,callback: Callback<P 监听计步检测传感器数据变化一次。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请用[sensor.once.PEDOMETER_DETECTION](#pedometer_detection9-1) +从API version 9 开始不再维护,建议使用[sensor.once.PEDOMETER_DETECTION](#pedometer_detection9-1)代替。 **需要权限**:ohos.permission.ACTIVITY_MOTION @@ -4000,7 +4000,7 @@ once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback<PedometerR 监听计步器传感器数据变化一次。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请用[sensor.once.PEDOMETER](#pedometer9-1) +从API version 9 开始不再维护,建议使用[sensor.once.PEDOMETER](#pedometer9-1)代替。 **需要权限**:ohos.permission.ACTIVITY_MOTION @@ -4027,7 +4027,7 @@ once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE,callback: Callback<A 监听环境温度传感器数据变化一次。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请用[sensor.once.AMBIENT_TEMPERATURE](#ambient_temperature9-1) +从API version 9 开始不再维护,建议使用[sensor.once.AMBIENT_TEMPERATURE](#ambient_temperature9-1)代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -4052,7 +4052,7 @@ once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback<Magne 监听磁场传感器数据变化一次。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请用[sensor.once.MAGNETIC_FIELD](#magnetic_field9-1) +从API version 9 开始不再维护,建议使用[sensor.once.MAGNETIC_FIELD](#magnetic_field9-1)代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -4079,7 +4079,7 @@ once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED,callback: Callb 监听未校准磁场传感器数据变化一次。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请用[sensor.once.MAGNETIC_FIELD_UNCALIBRATED](#magnetic_field_uncalibrated9-1) +从API version 9 开始不再维护,建议使用[sensor.once.MAGNETIC_FIELD_UNCALIBRATED](#magnetic_field_uncalibrated9-1)代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -4109,7 +4109,7 @@ once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback<ProximityR 监听接近光传感器数据变化一次。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请用[sensor.once.PROXIMITY](#proximity9-1) +从API version 9 开始不再维护,建议使用[sensor.once.PROXIMITY](#proximity9-1)代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -4134,7 +4134,7 @@ once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback<HumidityRes 监听湿度传感器数据变化一次。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请用[sensor.once.HUMIDITY](#humidity9-1) +从API version 9 开始不再维护,建议使用[sensor.once.HUMIDITY](#humidity9-1)代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -4159,7 +4159,7 @@ once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback<BarometerR 监听气压计传感器数据变化一次。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请用[sensor.once.BAROMETER](#barometer9-1) +从API version 9 开始不再维护,建议使用[sensor.once.BAROMETER](#barometer9-1)代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -4184,7 +4184,7 @@ once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback<HallResponse> 监听霍尔传感器数据变化一次。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请用[sensor.once.HALL](#hall9-1) +从API version 9 开始不再维护,建议使用[sensor.once.HALL](#hall9-1)代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -4209,7 +4209,7 @@ once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback<LightR 监听环境光传感器数据变化一次。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请用[sensor.once.AMBIENT_LIGHT](#ambient_light9-1) +从API version 9 开始不再维护,建议使用[sensor.once.AMBIENT_LIGHT](#ambient_light9-1)代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -4235,7 +4235,7 @@ once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback<Orientat 监听方向传感器数据变化一次。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请用[sensor.once.ORIENTATION](#orientation9-1) +从API version 9 开始不再维护,建议使用[sensor.once.ORIENTATION](#orientation9-1)代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -4262,7 +4262,7 @@ once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback<Rota 监听旋转矢量传感器数据变化一次。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请用[sensor.once.ROTATION_VECTOR](#rotation_vector9-1) +从API version 9 开始不再维护,建议使用[sensor.once.ROTATION_VECTOR](#rotation_vector9-1)代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -4290,7 +4290,7 @@ once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback<HeartRate 监听心率传感器数据变化一次。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.once.HEART_BEAT_RATE](#heart_beat_rate9) +从API version 9 开始不再维护,建议使用[sensor.once.HEART_BEAT_RATE](#heart_beat_rate9)代替。 **需要权限**:ohos.permission.HEART_RATE @@ -4335,7 +4335,7 @@ once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback<WearD 监听佩戴检测传感器数据变化一次。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.once.WEAR_DETECTION](#wear_detection9-1) +从API version 9 开始不再维护,建议使用[sensor.once.WEAR_DETECTION](#wear_detection9-1)代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -4362,7 +4362,7 @@ off(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback?: Callback<Accele 取消订阅传感器数据。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.off.ACCELEROMETER](#accelerometer9-2) +从API version 9 开始不再维护,建议使用[sensor.off.ACCELEROMETER](#accelerometer9-2)代替。 **需要权限**:ohos.permission.ACCELEROMETER @@ -4392,7 +4392,7 @@ off(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback?: Callb 取消订阅传感器数据。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.off.ACCELEROMETER_UNCALIBRATED](#accelerometer_uncalibrated9-2) +从API version 9 开始不再维护,建议使用[sensor.off.ACCELEROMETER_UNCALIBRATED](#accelerometer_uncalibrated9-2)代替。 **需要权限**:ohos.permission.ACCELEROMETER @@ -4425,7 +4425,7 @@ off(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback?: Callback<LightR 取消订阅传感器数据。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.off.AMBIENT_LIGHT](#ambient_light9-2) +从API version 9 开始不再维护,建议使用[sensor.off.AMBIENT_LIGHT](#ambient_light9-2)代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -4451,7 +4451,7 @@ off(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback?: Callback< 取消订阅传感器数据。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.off.AMBIENT_TEMPERATURE](#ambient_temperature9-2) +从API version 9 开始不再维护,建议使用[sensor.off.AMBIENT_TEMPERATURE](#ambient_temperature9-2)代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -4477,7 +4477,7 @@ off(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback?: Callback<BarometerR 取消订阅传感器数据。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.off.BAROMETER](#barometer9-2) +从API version 9 开始不再维护,建议使用[sensor.off.BAROMETER](#barometer9-2)代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -4503,7 +4503,7 @@ off(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback?: Callback<GravityRespo 取消订阅传感器数据。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.off.GRAVITY](#gravity9-2) +从API version 9 开始不再维护,建议使用[sensor.off.GRAVITY](#gravity9-2)代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -4531,7 +4531,7 @@ off(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback?: Callback<GyroscopeR 取消订阅传感器数据。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.off.GYROSCOPE](#gyroscope9-2) +从API version 9 开始不再维护,建议使用[sensor.off.GYROSCOPE](#gyroscope9-2)代替。 **需要权限**:ohos.permission.GYROSCOPE @@ -4561,7 +4561,7 @@ off(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback?: Callback& 取消订阅传感器数据。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.off.GYROSCOPE_UNCALIBRATED](#gyroscope_uncalibrated9-2) +从API version 9 开始不再维护,建议使用[sensor.off.GYROSCOPE_UNCALIBRATED](#gyroscope_uncalibrated9-2)代替。 **需要权限**:ohos.permission.GYROSCOPE @@ -4591,7 +4591,7 @@ off(type: SensorType.SENSOR_TYPE_ID_HALL, callback?: Callback<HallResponse> 取消订阅传感器数据。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.off.HALL](#hall9-2) +从API version 9 开始不再维护,建议使用[sensor.off.HALL](#hall9-2)代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -4617,7 +4617,7 @@ off(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback?: Callback<HeartRate 取消订阅传感器数据。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.off.HEART_BEAT_RATE](#heart_beat_rate9) +从API version 9 开始不再维护,建议使用[sensor.off.HEART_BEAT_RATE](#heart_beat_rate9)代替。 **需要权限**:ohos.permission.HEALTH_DATA @@ -4662,7 +4662,7 @@ off(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback?: Callback<HumidityRes 取消订阅传感器数据。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.off.HUMIDITY](#humidity9-2) +从API version 9 开始不再维护,建议使用[sensor.off.HUMIDITY](#humidity9-2)代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -4688,7 +4688,7 @@ off(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback?: Callback< 取消订阅传感器数据。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.off.LINEAR_ACCELEROMETER](#linear_accelerometer9) +从API version 9 开始不再维护,建议使用[sensor.off.LINEAR_ACCELEROMETER](#linear_accelerometer9)代替。 **需要权限**:ohos.permission.ACCELEROMETER @@ -4735,7 +4735,7 @@ sensor.off(sensor.SensorType.SENSOR_TYPE_ID_LINEAR_ACCELEROMETER, callback); 取消订阅传感器数据。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.off.MAGNETIC_FIELD](#magnetic_field9-2) +从API version 9 开始不再维护,建议使用[sensor.off.MAGNETIC_FIELD](#magnetic_field9-2)代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -4763,7 +4763,7 @@ sensor.off(sensor.SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback); 取消订阅传感器数据。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.off.MAGNETIC_FIELD_UNCALIBRATED](#magnetic_field_uncalibrated9-2) +从API version 9 开始不再维护,建议使用[sensor.off.MAGNETIC_FIELD_UNCALIBRATED](#magnetic_field_uncalibrated9-2)代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -4794,7 +4794,7 @@ sensor.off(sensor.SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callbac 取消订阅传感器数据。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.off.ORIENTATION](#orientation9-2) +从API version 9 开始不再维护,建议使用[sensor.off.ORIENTATION](#orientation9-2)代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -4822,7 +4822,7 @@ off(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback?: Callback<PedometerR 取消订阅传感器数据。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.off.PEDOMETER](#pedometer9-2) +从API version 9 开始不再维护,建议使用[sensor.off.PEDOMETER](#pedometer9-2)代替。 **需要权限**:ohos.permission.ACTIVITY_MOTION @@ -4850,7 +4850,7 @@ off(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback?: Callback< 取消订阅传感器数据。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.off.PEDOMETER_DETECTION](#pedometer_detection9-2) +从API version 9 开始不再维护,建议使用[sensor.off.PEDOMETER_DETECTION](#pedometer_detection9-2)代替。 **需要权限**:ohos.permission.ACTIVITY_MOTION @@ -4878,7 +4878,7 @@ off(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback?: Callback<ProximityR 取消订阅传感器数据。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.off.PROXIMITY](#proximity9-2) +从API version 9 开始不再维护,建议使用[sensor.off.PROXIMITY](#proximity9-2)代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -4904,7 +4904,7 @@ off(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback?: Callback<Rota 取消订阅传感器数据。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.off.ROTATION_VECTOR](#rotation_vector9-2) +从API version 9 开始不再维护,建议使用[sensor.off.ROTATION_VECTOR](#rotation_vector9-2)代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -4933,7 +4933,7 @@ off(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback?: Callback<S 取消订阅传感器数据。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.off.SIGNIFICANT_MOTION](#significant_motion9-2) +从API version 9 开始不再维护,建议使用[sensor.off.SIGNIFICANT_MOTION](#significant_motion9-2)代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -4959,7 +4959,7 @@ off(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback?: Callback<WearD 取消订阅传感器数据。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.off.WEAR_DETECTION](#wear_detection9-2) +从API version 9 开始不再维护,建议使用[sensor.off.WEAR_DETECTION](#wear_detection9-2)代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -4985,7 +4985,7 @@ transformCoordinateSystem(inRotationVector: Array<number>, coordinates: Co 旋转提供的旋转矩阵,使其可以以不同的方式表示坐标系。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.transformRotationMatrix ](#sensortransformrotationmatrix9) +从API version 9 开始不再维护,建议使用[sensor.transformRotationMatrix](#sensortransformrotationmatrix9)代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -5017,7 +5017,7 @@ transformCoordinateSystem(inRotationVector: Array<number>, coordinates: Co 旋转提供的旋转矩阵,使其可以以不同的方式表示坐标系。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.transformRotationMatrix ](#sensortransformrotationmatrix9-1 ) +从API version 9 开始不再维护,建议使用[sensor.transformRotationMatrix](#sensortransformrotationmatrix9-1)代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -5054,7 +5054,7 @@ getGeomagneticField(locationOptions: LocationOptions, timeMillis: number, callba 获取地球上特定位置的地磁场。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.getGeomagneticInfo](#sensorgetgeomagneticinfo9) +从API version 9 开始不再维护,建议使用[sensor.getGeomagneticInfo](#sensorgetgeomagneticinfo9)代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -5084,7 +5084,7 @@ getGeomagneticField(locationOptions: LocationOptions, timeMillis: number): Promi 获取地球上特定位置的地磁场。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.getGeomagneticInfo](#sensorgetgeomagneticinfo9-1) +从API version 9 开始不再维护,建议使用[sensor.getGeomagneticInfo](#sensorgetgeomagneticinfo9-1)代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -5118,7 +5118,7 @@ getAltitude(seaPressure: number, currentPressure: number, callback: AsyncCallbac 根据气压值获取设备所在的海拔高度。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.getDeviceAltitude](#sensorgetdevicealtitude9) +从API version 9 开始不再维护,建议使用[sensor.getDeviceAltitude](#sensorgetdevicealtitude9)代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -5149,7 +5149,7 @@ getAltitude(seaPressure: number, currentPressure: number): Promise<number> 根据气压值获取设备所在的海拔高度。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.getDeviceAltitude](#sensorgetdevicealtitude9-1) +从API version 9 开始不再维护,建议使用[sensor.getDeviceAltitude](#sensorgetdevicealtitude9-1)代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -5184,7 +5184,7 @@ getGeomagneticDip(inclinationMatrix: Array<number>, callback: AsyncCallbac 根据倾斜矩阵计算地磁倾斜角。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.getInclination](#sensorgetinclination9) +从API version 9 开始不再维护,建议使用[sensor.getInclination](#sensorgetinclination9)代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -5214,7 +5214,7 @@ getGeomagneticDip(inclinationMatrix: Array<number>): Promise<number> 根据倾斜矩阵计算地磁倾斜角。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.getInclination](#sensorgetinclination9-1) +从API version 9 开始不再维护,建议使用[sensor.getInclination](#sensorgetinclination9-1)代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -5247,7 +5247,7 @@ getAngleModify(currentRotationMatrix: Array<number>, preRotationMatrix: Ar 获取两个旋转矩阵之间的角度变化。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.getAngleVariation](#sensorgetanglevariation9) +从API version 9 开始不再维护,建议使用[sensor.getAngleVariation](#sensorgetanglevariation9)代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -5281,7 +5281,7 @@ getAngleModify(currentRotationMatrix: Array<number>, preRotationMatrix: Ar 获取两个旋转矩阵之间的角度变化。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.getAngleVariation](#sensorgetanglevariation9-1) +从API version 9 开始不再维护,建议使用[sensor.getAngleVariation](#sensorgetanglevariation9-1)代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -5319,7 +5319,7 @@ createRotationMatrix(rotationVector: Array<number>, callback: AsyncCallbac 将旋转矢量转换为旋转矩阵。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.getRotationMatrix](#sensorgetrotationmatrix9) +从API version 9 开始不再维护,建议使用[sensor.getRotationMatrix](#sensorgetrotationmatrix9)代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -5352,7 +5352,7 @@ createRotationMatrix(rotationVector: Array<number>): Promise<Array<n 将旋转矢量转换为旋转矩阵。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.getRotationMatrix](#sensorgetrotationmatrix9-1) +从API version 9 开始不再维护,建议使用[sensor.getRotationMatrix](#sensorgetrotationmatrix9-1)代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -5389,7 +5389,7 @@ createQuaternion(rotationVector: Array<number>, callback: AsyncCallback< 将旋转矢量转换为四元数。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.getQuaternion](#sensorgetquaternion9) +从API version 9 开始不再维护,建议使用[sensor.getQuaternion](#sensorgetquaternion9)代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -5422,7 +5422,7 @@ createQuaternion(rotationVector: Array<number>): Promise<Array<numbe 将旋转矢量转换为四元数。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.getQuaternion](#sensorgetquaternion9-1) +从API version 9 开始不再维护,建议使用[sensor.getQuaternion](#sensorgetquaternion9-1)代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -5459,7 +5459,7 @@ getDirection(rotationMatrix: Array<number>, callback: AsyncCallback<Arr 根据旋转矩阵计算设备的方向。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.getOrientation](#sensorgetorientation9) +从API version 9 开始不再维护,建议使用[sensor.getOrientation](#sensorgetorientation9)代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -5493,7 +5493,7 @@ getDirection(rotationMatrix: Array<number>): Promise<Array<number> 根据旋转矩阵计算设备的方向。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.getOrientation](#sensorgetorientation9-1) +从API version 9 开始不再维护,建议使用[sensor.getOrientation](#sensorgetorientation9-1)代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -5530,7 +5530,7 @@ createRotationMatrix(gravity: Array<number>, geomagnetic: Array<number& 根据重力矢量和地磁矢量计算旋转矩阵。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.getRotationMatrix](#sensorgetrotationmatrix9-2) +从API version 9 开始不再维护,建议使用[sensor.getRotationMatrix](#sensorgetrotationmatrix9-2)代替。 **系统能力**:SystemCapability.Sensors.Sensor @@ -5561,7 +5561,7 @@ createRotationMatrix(gravity: Array<number>, geomagnetic: Array<number& 根据重力矢量和地磁矢量计算旋转矩阵。 -[newMethod](https://gitee.com/openharmony/docs/pulls/10074#newmethod),请使用[sensor.getRotationMatrix](#sensorgetrotationmatrix9-3) +从API version 9 开始不再维护,建议使用[sensor.getRotationMatrix](#sensorgetrotationmatrix9-3)代替。 **系统能力**:SystemCapability.Sensors.Sensor -- GitLab