From ba460a154f9735d9494c9bba5378ba7729bc8bb9 Mon Sep 17 00:00:00 2001 From: cff-gite Date: Tue, 30 Aug 2022 14:41:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B93.1release?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: cff-gite --- zh-cn/application-dev/reference/apis/js-apis-sensor.md | 3 +++ 1 file changed, 3 insertions(+) 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 42e050d43a..2b01e90a07 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-sensor.md +++ b/zh-cn/application-dev/reference/apis/js-apis-sensor.md @@ -246,6 +246,7 @@ on(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback<PedometerRes **系统能力**:SystemCapability.Sensors.Sensor **参数:** + | 参数名 | 类型 | 必填 | 说明 | | -------- | ---------------------------------------- | ---- | --------------------------------------- | | type | [SensorType](#sensortype) | 是 | 要订阅的计步传感器类型为SENSOR_TYPE_ID_PEDOMETER。 | @@ -1486,6 +1487,8 @@ off(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback?: Callback<PedometerR 取消订阅传感器数据。 + **需要权限**: ohos.permission.ACTIVITY_MOTION + **系统能力**:SystemCapability.Sensors.Sensor **参数:** -- GitLab