From 04c4aafad5a0edd5fbdf1ba85bf5d9242d4391b6 Mon Sep 17 00:00:00 2001 From: cff-gite Date: Mon, 14 Mar 2022 09:51:23 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9sensor=E7=9A=84ts?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: cff-gite --- api/@ohos.sensor.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/@ohos.sensor.d.ts b/api/@ohos.sensor.d.ts index 5f2c8cd91d..80ce3db6aa 100644 --- a/api/@ohos.sensor.d.ts +++ b/api/@ohos.sensor.d.ts @@ -95,7 +95,7 @@ declare namespace sensor { * @param type Indicate the sensor type to listen for, {@code SensorType.SENSOR_TYPE_ID_GYROSCOPE}. * @param options Optional parameters specifying the interval at which sensor data is reported, {@code Options}. * @syscap SystemCapability.Sensors.Sensor - * @permission ohos.permission.GRYOSCOPE + * @permission ohos.permission.GYROSCOPE * @since 8 */ function on(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback, @@ -106,7 +106,7 @@ declare namespace sensor { * @param type Indicate the sensor type to listen for, {@code SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED}. * @param options Optional parameters specifying the interval at which sensor data is reported, {@code Options}. * @syscap SystemCapability.Sensors.Sensor - * @permission ohos.permission.GRYOSCOPE + * @permission ohos.permission.GYROSCOPE * @since 8 */ function on(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback, @@ -340,7 +340,7 @@ declare namespace sensor { * Subscribe to sensor data once. * @param type Indicate the sensor type to listen for, {@code SensorType.SENSOR_TYPE_ID_HEART_RATE}. * @syscap SystemCapability.Sensors.Sensor - * @permission ohos.permission.HEART_RATE + * @permission ohos.permission.READ_HEALTH_DATA * @since 8 */ function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback): void; -- Gitee From b8d8b8a4b7407de95123d31dce40ee97a4a4f88e Mon Sep 17 00:00:00 2001 From: cff-gite Date: Mon, 14 Mar 2022 11:21:17 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9sensor=E7=9A=84ts?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: cff-gite --- api/@ohos.sensor.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/@ohos.sensor.d.ts b/api/@ohos.sensor.d.ts index 80ce3db6aa..6547161429 100644 --- a/api/@ohos.sensor.d.ts +++ b/api/@ohos.sensor.d.ts @@ -503,7 +503,7 @@ declare namespace sensor { * Unsubscribe to sensor data. * @param type Indicate the sensor type to unsubscribe, {@code SensorType.SENSOR_TYPE_ID_GYROSCOPE}. * @syscap SystemCapability.Sensors.Sensor - * @permission ohos.permission.GRYOSCOPE + * @permission ohos.permission.GYROSCOPE * @since 8 */ function off(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback?: Callback): void; @@ -512,7 +512,7 @@ declare namespace sensor { * Unsubscribe to sensor data. * @param type Indicate the sensor type to unsubscribe, {@code SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED}. * @syscap SystemCapability.Sensors.Sensor - * @permission ohos.permission.GRYOSCOPE + * @permission ohos.permission.GYROSCOPE * @since 8 */ function off(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback?: Callback): void; -- Gitee From 03f4d6274d546aef218cf66479e9217f1b63607b Mon Sep 17 00:00:00 2001 From: cff-gite Date: Mon, 14 Mar 2022 17:09:45 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9sensor=E7=9A=84ts?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: cff-gite --- api/@ohos.sensor.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/@ohos.sensor.d.ts b/api/@ohos.sensor.d.ts index 6547161429..82fb268afc 100644 --- a/api/@ohos.sensor.d.ts +++ b/api/@ohos.sensor.d.ts @@ -128,7 +128,7 @@ declare namespace sensor { * @param type Indicate the sensor type to listen for, {@code SensorType.SENSOR_TYPE_ID_HEART_RATE}. * @param options Optional parameters specifying the interval at which sensor data is reported, {@code Options}. * @syscap SystemCapability.Sensors.Sensor - * @permission ohos.permission.HEALTH_DATA + * @permission ohos.permission.READ_HEALTH_DATA * @since 8 */ function on(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback, @@ -530,7 +530,7 @@ declare namespace sensor { * Unsubscribe to sensor data. * @param type Indicate the sensor type to unsubscribe, {@code SensorType.SENSOR_TYPE_ID_HEART_RATE}. * @syscap SystemCapability.Sensors.Sensor - * @permission ohos.permission.HEALTH_DATA + * @permission ohos.permission.READ_HEALTH_DATA * @since 8 */ function off(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback?: Callback): void; -- Gitee