From 66719dc0ac8e2f45473047bb867dd037671ba9a1 Mon Sep 17 00:00:00 2001 From: SUE Date: Sat, 26 Mar 2022 08:54:07 +0000 Subject: [PATCH] fixed 4ae7b33 from https://gitee.com/hellohyh001/interface_sdk-js_1/pulls/1416 fixed cf37d8a from https://gitee.com/hellohyh001/interface_sdk-js_1/pulls/1415 Signed-off-by:hellohyh001 --- api/@ohos.sensor.d.ts | 39 --------------------------------------- 1 file changed, 39 deletions(-) diff --git a/api/@ohos.sensor.d.ts b/api/@ohos.sensor.d.ts index 82fb268afc..7224e61725 100644 --- a/api/@ohos.sensor.d.ts +++ b/api/@ohos.sensor.d.ts @@ -51,7 +51,6 @@ declare namespace sensor { * @param type Indicate the sensor type to listen for, {@code SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT}. * @param options Optional parameters specifying the interval at which sensor data is reported, {@code Options}. * @syscap SystemCapability.Sensors.Sensor - * @permission N/A * @since 8 */ function on(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback, @@ -62,7 +61,6 @@ declare namespace sensor { * @param type Indicate the sensor type to listen for, {@code SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE}. * @param options Optional parameters specifying the interval at which sensor data is reported, {@code Options}. * @syscap SystemCapability.Sensors.Sensor - * @permission N/A * @since 8 */ function on(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback, @@ -73,7 +71,6 @@ declare namespace sensor { * @param type Indicate the sensor type to listen for, {@code SensorType.SENSOR_TYPE_ID_BAROMETER}. * @param options Optional parameters specifying the interval at which sensor data is reported, {@code Options}. * @syscap SystemCapability.Sensors.Sensor - * @permission N/A * @since 8 */ function on(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback, @@ -84,7 +81,6 @@ declare namespace sensor { * @param type Indicate the sensor type to listen for, {@code SensorType.SENSOR_TYPE_ID_GRAVITY}. * @param options Optional parameters specifying the interval at which sensor data is reported, {@code Options}. * @syscap SystemCapability.Sensors.Sensor - * @permission N/A * @since 8 */ function on(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback, @@ -117,7 +113,6 @@ declare namespace sensor { * @param type Indicate the sensor type to listen for, {@code SensorType.SENSOR_TYPE_ID_HALL}. * @param options Optional parameters specifying the interval at which sensor data is reported, {@code Options}. * @syscap SystemCapability.Sensors.Sensor - * @permission N/A * @since 8 */ function on(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback, @@ -139,7 +134,6 @@ declare namespace sensor { * @param type Indicate the sensor type to listen for, {@code SensorType.SENSOR_TYPE_ID_HUMIDITY}. * @param options Optional parameters specifying the interval at which sensor data is reported, {@code Options}. * @syscap SystemCapability.Sensors.Sensor - * @permission N/A * @since 8 */ function on(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback, @@ -161,7 +155,6 @@ declare namespace sensor { * @param type Indicate the sensor type to listen for, {@code SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD}. * @param options Optional parameters specifying the interval at which sensor data is reported, {@code Options}. * @syscap SystemCapability.Sensors.Sensor - * @permission N/A * @since 8 */ function on(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback, @@ -172,7 +165,6 @@ declare namespace sensor { * @param type Indicate the sensor type to listen for, {@code SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED}. * @param options Optional parameters specifying the interval at which sensor data is reported, {@code Options}. * @syscap SystemCapability.Sensors.Sensor - * @permission N/A * @since 8 */ function on(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback, @@ -183,7 +175,6 @@ declare namespace sensor { * @param type Indicate the sensor type to listen for, {@code SensorType.SENSOR_TYPE_ID_ORIENTATION}. * @param options Optional parameters specifying the interval at which sensor data is reported, {@code Options}. * @syscap SystemCapability.Sensors.Sensor - * @permission N/A * @since 8 */ function on(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback, @@ -216,7 +207,6 @@ declare namespace sensor { * @param type Indicate the sensor type to listen for, {@code SensorType.SENSOR_TYPE_ID_PROXIMITY}. * @param options Optional parameters specifying the interval at which sensor data is reported, {@code Options}. * @syscap SystemCapability.Sensors.Sensor - * @permission N/A * @since 8 */ function on(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback, @@ -227,7 +217,6 @@ declare namespace sensor { * @param type Indicate the sensor type to listen for, {@code SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR}. * @param options Optional parameters specifying the interval at which sensor data is reported, {@code Options}. * @syscap SystemCapability.Sensors.Sensor - * @permission N/A * @since 8 */ function on(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback, @@ -238,7 +227,6 @@ declare namespace sensor { * @param type Indicate the sensor type to listen for, {@code SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION}. * @param options Optional parameters specifying the interval at which sensor data is reported, {@code Options}. * @syscap SystemCapability.Sensors.Sensor - * @permission N/A * @since 8 */ function on(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback, @@ -249,7 +237,6 @@ declare namespace sensor { * @param type Indicate the sensor type to listen for, {@code SensorType.SENSOR_TYPE_ID_WEAR_DETECTION}. * @param options Optional parameters specifying the interval at which sensor data is reported, {@code Options}. * @syscap SystemCapability.Sensors.Sensor - * @permission N/A * @since 8 */ function on(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback, @@ -277,7 +264,6 @@ declare namespace sensor { * Subscribe to sensor data once. * @param type Indicate the sensor type to listen for, {@code SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT}. * @syscap SystemCapability.Sensors.Sensor - * @permission N/A * @since 8 */ function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback): void; @@ -286,7 +272,6 @@ declare namespace sensor { * Subscribe to sensor data once. * @param type Indicate the sensor type to listen for, {@code SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE}. * @syscap SystemCapability.Sensors.Sensor - * @permission N/A * @since 8 */ function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback): void; @@ -295,7 +280,6 @@ declare namespace sensor { * Subscribe to sensor data once. * @param type Indicate the sensor type to listen for, {@code SensorType.SENSOR_TYPE_ID_BAROMETER}. * @syscap SystemCapability.Sensors.Sensor - * @permission N/A * @since 8 */ function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback): void; @@ -304,7 +288,6 @@ declare namespace sensor { * Subscribe to sensor data once. * @param type Indicate the sensor type to listen for, {@code SensorType.SENSOR_TYPE_ID_GRAVITY}. * @syscap SystemCapability.Sensors.Sensor - * @permission N/A * @since 8 */ function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback): void; @@ -331,7 +314,6 @@ declare namespace sensor { * Subscribe to sensor data once. * @param type Indicate the sensor type to listen for, {@code SensorType.SENSOR_TYPE_ID_HALL}. * @syscap SystemCapability.Sensors.Sensor - * @permission N/A * @since 8 */ function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback): void; @@ -349,7 +331,6 @@ declare namespace sensor { * Subscribe to sensor data once. * @param type Indicate the sensor type to listen for, {@code SensorType.SENSOR_TYPE_ID_HUMIDITY}. * @syscap SystemCapability.Sensors.Sensor - * @permission N/A * @since 8 */ function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback): void; @@ -367,7 +348,6 @@ declare namespace sensor { * Subscribe to sensor data once. * @param type Indicate the sensor type to listen for, {@code SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD}. * @syscap SystemCapability.Sensors.Sensor - * @permission N/A * @since 8 */ function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback): void; @@ -376,7 +356,6 @@ declare namespace sensor { * Subscribe to sensor data once. * @param type Indicate the sensor type to listen for, {@code SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED}. * @syscap SystemCapability.Sensors.Sensor - * @permission N/A * @since 8 */ function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback): void; @@ -385,7 +364,6 @@ declare namespace sensor { * Subscribe to sensor data once. * @param type Indicate the sensor type to listen for, {@code SensorType.SENSOR_TYPE_ID_ORIENTATION}. * @syscap SystemCapability.Sensors.Sensor - * @permission N/A * @since 8 */ function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback): void; @@ -412,7 +390,6 @@ declare namespace sensor { * Subscribe to sensor data once. * @param type Indicate the sensor type to listen for, {@code SensorType.SENSOR_TYPE_ID_PROXIMITY}. * @syscap SystemCapability.Sensors.Sensor - * @permission N/A * @since 8 */ function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback): void; @@ -421,7 +398,6 @@ declare namespace sensor { * Subscribe to sensor data once. * @param type Indicate the sensor type to listen for, {@code SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR}. * @syscap SystemCapability.Sensors.Sensor - * @permission N/A * @since 8 */ function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback): void; @@ -430,7 +406,6 @@ declare namespace sensor { * Subscribe to sensor data once. * @param type Indicate the sensor type to listen for, {@code SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION}. * @syscap SystemCapability.Sensors.Sensor - * @permission N/A * @since 8 */ function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback): void; @@ -439,7 +414,6 @@ declare namespace sensor { * Subscribe to sensor data once. * @param type Indicate the sensor type to listen for, {@code SensorType.SENSOR_TYPE_ID_WEAR_DETECTION}. * @syscap SystemCapability.Sensors.Sensor - * @permission N/A * @since 8 */ function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback): void; @@ -467,7 +441,6 @@ declare namespace sensor { * Unsubscribe to sensor data. * @param type Indicate the sensor type to unsubscribe, {@code SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT}. * @syscap SystemCapability.Sensors.Sensor - * @permission N/A * @since 8 */ function off(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback?: Callback): void; @@ -476,7 +449,6 @@ declare namespace sensor { * Unsubscribe to sensor data. * @param type Indicate the sensor type to unsubscribe, {@code SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE}. * @syscap SystemCapability.Sensors.Sensor - * @permission N/A * @since 8 */ function off(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback?: Callback): void; @@ -485,7 +457,6 @@ declare namespace sensor { * Unsubscribe to sensor data. * @param type Indicate the sensor type to unsubscribe, {@code SensorType.SENSOR_TYPE_ID_BAROMETER}. * @syscap SystemCapability.Sensors.Sensor - * @permission N/A * @since 8 */ function off(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback?: Callback): void; @@ -494,7 +465,6 @@ declare namespace sensor { * Unsubscribe to sensor data. * @param type Indicate the sensor type to unsubscribe, {@code SensorType.SENSOR_TYPE_ID_GRAVITY}. * @syscap SystemCapability.Sensors.Sensor - * @permission N/A * @since 8 */ function off(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback?: Callback): void; @@ -521,7 +491,6 @@ declare namespace sensor { * Unsubscribe to sensor data. * @param type Indicate the sensor type to unsubscribe, {@code SensorType.SENSOR_TYPE_ID_HALL}. * @syscap SystemCapability.Sensors.Sensor - * @permission N/A * @since 8 */ function off(type: SensorType.SENSOR_TYPE_ID_HALL, callback?: Callback): void; @@ -539,7 +508,6 @@ declare namespace sensor { * Unsubscribe to sensor data. * @param type Indicate the sensor type to unsubscribe, {@code SensorType.SENSOR_TYPE_ID_HUMIDITY}. * @syscap SystemCapability.Sensors.Sensor - * @permission N/A * @since 8 */ function off(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback?: Callback): void; @@ -557,7 +525,6 @@ declare namespace sensor { * Unsubscribe to sensor data. * @param type Indicate the sensor type to unsubscribe, {@code SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD}. * @syscap SystemCapability.Sensors.Sensor - * @permission N/A * @since 8 */ function off(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback?: Callback): void; @@ -566,7 +533,6 @@ declare namespace sensor { * Unsubscribe to sensor data. * @param type Indicate the sensor type to unsubscribe, {@code SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED}. * @syscap SystemCapability.Sensors.Sensor - * @permission N/A * @since 8 */ function off(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback?: Callback): void; @@ -575,7 +541,6 @@ declare namespace sensor { * Unsubscribe to sensor data. * @param type Indicate the sensor type to unsubscribe, {@code SensorType.SENSOR_TYPE_ID_ORIENTATION}. * @syscap SystemCapability.Sensors.Sensor - * @permission N/A * @since 8 */ function off(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback?: Callback): void; @@ -602,7 +567,6 @@ declare namespace sensor { * Unsubscribe to sensor data. * @param type Indicate the sensor type to unsubscribe, {@code SensorType.SENSOR_TYPE_ID_PROXIMITY}. * @syscap SystemCapability.Sensors.Sensor - * @permission N/A * @since 8 */ function off(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback?: Callback): void; @@ -611,7 +575,6 @@ declare namespace sensor { * Unsubscribe to sensor data. * @param type Indicate the sensor type to unsubscribe, {@code SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR}. * @syscap SystemCapability.Sensors.Sensor - * @permission N/A * @since 8 */ function off(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback?: Callback): void; @@ -620,7 +583,6 @@ declare namespace sensor { * Unsubscribe to sensor data. * @param type Indicate the sensor type to unsubscribe, {@code SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION}. * @syscap SystemCapability.Sensors.Sensor - * @permission N/A * @since 8 */ function off(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback?: Callback): void; @@ -629,7 +591,6 @@ declare namespace sensor { * Unsubscribe to sensor data. * @param type Indicate the sensor type to unsubscribe, {@code SensorType.SENSOR_TYPE_ID_WEAR_DETECTION}. * @syscap SystemCapability.Sensors.Sensor - * @permission N/A * @since 8 */ function off(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback?: Callback): void; -- Gitee