From 6b1a45a8ce81e6447d27dfdd278462e809e1eb02 Mon Sep 17 00:00:00 2001 From: lixiangpeng5 Date: Wed, 17 Apr 2024 13:29:16 +0000 Subject: [PATCH 1/2] add parameters for ambient light response Signed-off-by: lixiangpeng5 Change-Id: I9c870b0d0001aba31759f04b440b495f3a6fde17 --- api/@ohos.sensor.d.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/api/@ohos.sensor.d.ts b/api/@ohos.sensor.d.ts index c49c080d2..9d00ff4c5 100644 --- a/api/@ohos.sensor.d.ts +++ b/api/@ohos.sensor.d.ts @@ -3413,6 +3413,22 @@ declare namespace sensor { * @since 8 */ intensity: number; + + /** + * Indicates the color temperature, in kelvin. + * @type { ?number } + * @syscap SystemCapability.Sensors.Sensor + * @since 12 + */ + colorTemp?: number; + + /** + * Indicates the infrared Luminance, in cd/m2. + * @type { ?number } + * @syscap SystemCapability.Sensors.Sensor + * @since 12 + */ + irLuminance?: number; } /** -- Gitee From 00762c23a9dd2b4365ac569943517ad5dcb55308 Mon Sep 17 00:00:00 2001 From: lixiangpeng5 Date: Tue, 23 Apr 2024 04:06:17 +0000 Subject: [PATCH 2/2] fix by review Signed-off-by: lixiangpeng5 Change-Id: I6dda9b0e8de8eeb733048c3984dad89850136476 --- api/@ohos.sensor.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api/@ohos.sensor.d.ts b/api/@ohos.sensor.d.ts index 9d00ff4c5..037e0b6d3 100644 --- a/api/@ohos.sensor.d.ts +++ b/api/@ohos.sensor.d.ts @@ -3415,20 +3415,20 @@ declare namespace sensor { intensity: number; /** - * Indicates the color temperature, in kelvin. + * Indicates color temperature, in kelvin. * @type { ?number } * @syscap SystemCapability.Sensors.Sensor * @since 12 */ - colorTemp?: number; + colorTemperature?: number; /** - * Indicates the infrared Luminance, in cd/m2. + * Indicates infrared luminance, in cd/m2. * @type { ?number } * @syscap SystemCapability.Sensors.Sensor * @since 12 */ - irLuminance?: number; + infraredLuminance?: number; } /** -- Gitee