From 68d4abd70c667a8e67a69b4ae3387185792b918a Mon Sep 17 00:00:00 2001 From: cff-gite Date: Mon, 14 Mar 2022 17:09:45 +0800 Subject: [PATCH 1/3] =?UTF-8?q?fixed=2003f4d62=20from=20https://gitee.com/?= =?UTF-8?q?cff-gite/interface=5Fsdk-js/pulls/1082=20=E4=BF=AE=E6=94=B9sens?= =?UTF-8?q?or=E7=9A=84ts=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 5f2c8cd91d..2bd93a4ebb 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 From 28412b60c6c6f072d637094e052d9a03f4710631 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?fixed=20b8d8b8a=20from=20https://gitee.com/?= =?UTF-8?q?cff-gite/interface=5Fsdk-js/pulls/1082=20=E4=BF=AE=E6=94=B9sens?= =?UTF-8?q?or=E7=9A=84ts=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 2bd93a4ebb..0844b49693 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 fddf351b8cfe22f32d1f5dd3babaabfeaf2539ef Mon Sep 17 00:00:00 2001 From: cff-gite Date: Mon, 14 Mar 2022 09:51:23 +0800 Subject: [PATCH 3/3] =?UTF-8?q?fixed=2004c4aaf=20from=20https://gitee.com/?= =?UTF-8?q?cff-gite/interface=5Fsdk-js/pulls/1082=20=E4=BF=AE=E6=94=B9sens?= =?UTF-8?q?or=E7=9A=84ts=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 0844b49693..82fb268afc 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