From e81aa10c98f53ebfc2849a8fe472fd8dd6e811be Mon Sep 17 00:00:00 2001 From: cjj Date: Sat, 9 Aug 2025 11:05:33 +0800 Subject: [PATCH 1/9] =?UTF-8?q?api=E6=8E=A5=E5=8F=A3=E4=B8=80=E8=87=B4?= =?UTF-8?q?=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: cjj --- api/@ohos.multimedia.camera.d.ts | 967 ++++++++++++++++++++++++++++++- 1 file changed, 937 insertions(+), 30 deletions(-) diff --git a/api/@ohos.multimedia.camera.d.ts b/api/@ohos.multimedia.camera.d.ts index 4ede7d69f0..f7925f84d8 100644 --- a/api/@ohos.multimedia.camera.d.ts +++ b/api/@ohos.multimedia.camera.d.ts @@ -3642,11 +3642,19 @@ declare namespace camera { /** * Enum for exposure metering mode. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi * @since 12 */ + /** + * Enum for exposure metering mode. + * + * @enum { int } + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ enum ExposureMeteringMode { /** * Matrix metering. @@ -3655,6 +3663,13 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Matrix metering mode: Measures the light in the whole frame, ideal for shooting natural landscapes. + * + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ MATRIX = 0, /** @@ -3664,6 +3679,13 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Center metering mode: Focuses in on light near the center of the screen, ideal for shooting portraits. + * + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ CENTER = 1, /** @@ -3673,6 +3695,13 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Spot metering mode: Focuses in on light from a specific tiny region, such as a subject's eyes. + * + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ SPOT = 2 } @@ -3765,7 +3794,17 @@ declare namespace camera { * @systemapi * @since 12 */ - isExposureMeteringModeSupported(aeMeteringMode: ExposureMeteringMode): boolean; + /** + * Checks whether a specified exposure metering mode is supported. + * + * @param { ExposureMeteringMode } aeMeteringMode - Exposure metering mode + * @returns { boolean } Is the exposure metering mode supported. + * @throws { BusinessError } 7400103 - Session not config, only throw in session usage. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ + isExposureMeteringModeSupported(aeMeteringMode: ExposureMeteringMode): boolean } /** @@ -3921,6 +3960,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Gets current exposure metering mode. + * + * @returns { ExposureMeteringMode } The current exposure metering mode. + * @throws { BusinessError } 7400103 - Session not config, only throw in session usage. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ getExposureMeteringMode(): ExposureMeteringMode; /** @@ -3934,6 +3982,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Sets exposure metering mode. + * + * @param { ExposureMeteringMode } aeMeteringMode - Exposure metering mode + * @throws { BusinessError } 7400103 - Session not config, only throw in session usage. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ setExposureMeteringMode(aeMeteringMode: ExposureMeteringMode): void; } @@ -4478,25 +4535,35 @@ declare namespace camera { * @interface ManualFocus * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} */ interface ManualFocus { /** * Gets current focus distance. * - * @returns { number } The current focus distance. + * @returns { double } The current focus distance. * @throws { BusinessError } 202 - Not System Application. * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi * @since 12 */ - getFocusDistance(): number; + /** + * Gets current focus distance, ranging from 0.0 to 1.0, with 0.0 being shortest + * distance at which the lens can focus and 1.0 the furthest. The default value is 1.0. + * + * @returns { double } The current focus distance. + * @throws { BusinessError } 7400103 - Session not config. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ + getFocusDistance(): double; /** * Sets focus distance. * - * @param { number } distance - Focus distance + * @param { double } distance - Focus distance * @throws { BusinessError } 202 - Not System Application. * @throws { BusinessError } 7400101 - Parameter missing or parameter type incorrect. * @throws { BusinessError } 7400103 - Session not config. @@ -4504,7 +4571,17 @@ declare namespace camera { * @systemapi * @since 12 */ - setFocusDistance(distance: number): void; + /** + * Sets focus distance. Possible distance values range from 0.0 to 1.0, with 0.0 being shortest + * distance at which the lens can focus and 1.0 the furthest. The default value is 1.0. + * + * @param { double } distance - Focus distance + * @throws { BusinessError } 7400103 - Session not config. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ + setFocusDistance(distance: double): void; } /** @@ -4813,6 +4890,14 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Manual ISO Query object. + * + * @interface ManualIsoQuery + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ interface ManualIsoQuery { /** * Checks whether ISO is supported. @@ -4848,23 +4933,41 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * ManualIso object. + * + * @extends ManualIsoQuery + * @interface ManualIso + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ interface ManualIso extends ManualIsoQuery { /** * Gets current ISO. * - * @returns { number } The current ISO. + * @returns { int } The current ISO. * @throws { BusinessError } 202 - Not System Application. * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi * @since 12 */ - getIso(): number; + /** + * Gets current ISO sensitivity value, as defined in ISO 12232:2006. + * + * @returns { int } The current ISO. + * @throws { BusinessError } 7400103 - Session not config. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ + getIso(): int; /** * Sets ISO. * - * @param { number } iso - ISO + * @param { int } iso - ISO * @throws { BusinessError } 202 - Not System Application. * @throws { BusinessError } 7400101 - Parameter missing or parameter type incorrect. * @throws { BusinessError } 7400103 - Session not config. @@ -4872,7 +4975,17 @@ declare namespace camera { * @systemapi * @since 12 */ - setIso(iso: number): void; + /** + * Sets ISO sensitivity value, within the range of getSupportedIsoRange. This control is only effective if + * ExposureMode is set to EXPOSURE_MODE_LOCKED. + * + * @param { int } iso - ISO + * @throws { BusinessError } 7400103 - Session not config. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ + setIso(iso: int): void; } /** @@ -7882,7 +7995,7 @@ declare namespace camera { * @systemapi * @since 11 */ - /** + /** * Subscribes camera macro status event callback. * * @param { 'macroStatusChanged' } type - Event type. @@ -7891,7 +8004,7 @@ declare namespace camera { * and macro should be disabled. * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since 20 + * @since 20 */ on(type: 'macroStatusChanged', callback: AsyncCallback): void; @@ -8138,6 +8251,13 @@ declare namespace camera { * @atomicservice * @since 19 */ + /** + * High quality photos are the top preference, even at the expense of shot-to-shot time. + * + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ HIGH_QUALITY = 0, /** @@ -8190,7 +8310,8 @@ declare namespace camera { * @atomicservice * @since 20 */ - interface VideoSession extends Session, Flash, AutoExposure, WhiteBalance, Focus, Zoom, Stabilization, ColorManagement, ControlCenter, AutoDeviceSwitch, Macro { + interface VideoSession extends Session, Flash, AutoExposure, WhiteBalance, Focus, Zoom, Stabilization, ColorManagement, + ControlCenter, AutoDeviceSwitch, Macro { /** * Gets whether the choosed preconfig type can be used to configure video session. * Must choose preconfig type from {@link PreconfigType}. @@ -8388,7 +8509,7 @@ declare namespace camera { * and macro should be disabled. * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since 20 + * @since 20 */ on(type: 'macroStatusChanged', callback: AsyncCallback): void; @@ -9163,6 +9284,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Subscribes to error events. + * + * @param { 'error' } type - Event type. + * @param { ErrorCallback } callback - Callback used to get the capture session errors. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ on(type: 'error', callback: ErrorCallback): void; /** @@ -9175,6 +9305,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Unsubscribes from error events. + * + * @param { 'error' } type - Event type. + * @param { ErrorCallback } callback - Callback used to get the capture session errors. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ off(type: 'error', callback?: ErrorCallback): void; /** @@ -9187,6 +9326,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Subscribes focus state change event callback. + * + * @param { 'focusStateChange' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the focus state change. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ on(type: 'focusStateChange', callback: AsyncCallback): void; /** @@ -9199,6 +9347,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Unsubscribes from focus state change event callback. + * + * @param { 'focusStateChange' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the focus state change. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ off(type: 'focusStateChange', callback?: AsyncCallback): void; /** @@ -9211,6 +9368,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Subscribes zoom info event callback. + * + * @param { 'smoothZoomInfoAvailable' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the zoom info. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ on(type: 'smoothZoomInfoAvailable', callback: AsyncCallback): void; /** @@ -9223,6 +9389,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Unsubscribes from zoom info event callback. + * + * @param { 'smoothZoomInfoAvailable' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the zoom info. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ off(type: 'smoothZoomInfoAvailable', callback?: AsyncCallback): void; } @@ -9234,6 +9409,14 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * ManualExposure Query object. + * + * @interface ManualExposureQuery + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ interface ManualExposureQuery { /** * Gets the supported manual exposure range. @@ -9269,6 +9452,15 @@ declare namespace camera { * @systemapi * @since 11 */ + /** + * ManualExposure object. + * + * @extends ManualExposureQuery + * @interface ManualExposure + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ interface ManualExposure extends ManualExposureQuery { /** * Gets current exposure value. @@ -9426,17 +9618,34 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * ISO info object + * + * @typedef IsoInfo + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ interface IsoInfo { /** * ISO value. * - * @type { ?number } + * @type { ?int } * @readonly * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi * @since 12 */ - readonly iso?: number; + /** + * ISO value. + * + * @type { ?int } + * @readonly + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ + readonly iso?: int; } /** @@ -9447,17 +9656,34 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Exposure info object + * + * @typedef ExposureInfo + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ interface ExposureInfo { /** * Exposure time value. * - * @type { ?number } + * @type { ?int } * @readonly * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi * @since 12 */ - readonly exposureTime?: number; + /** + * Exposure time value, units: microseconds. + * + * @type { ?int } + * @readonly + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ + readonly exposureTime?: int; } /** @@ -9521,6 +9747,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Subscribes to error events. + * + * @param { 'error' } type - Event type. + * @param { ErrorCallback } callback - Callback used to get the capture session errors. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ on(type: 'error', callback: ErrorCallback): void; /** @@ -9533,6 +9768,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Unsubscribes from error events. + * + * @param { 'error' } type - Event type. + * @param { ErrorCallback } callback - Callback used to get the capture session errors. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ off(type: 'error', callback?: ErrorCallback): void; /** @@ -9545,6 +9789,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Subscribes focus state change event callback. + * + * @param { 'focusStateChange' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the focus state change. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ on(type: 'focusStateChange', callback: AsyncCallback): void; /** @@ -9557,6 +9810,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Unsubscribes from focus state change event callback. + * + * @param { 'focusStateChange' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the focus state change. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ off(type: 'focusStateChange', callback?: AsyncCallback): void; /** @@ -9569,18 +9831,36 @@ declare namespace camera { * @systemapi * @since 12 */ - on(type: 'smoothZoomInfoAvailable', callback: AsyncCallback): void; - /** - * Unsubscribes from zoom info event callback. + * Subscribes zoom info event callback. * * @param { 'smoothZoomInfoAvailable' } type - Event type. * @param { AsyncCallback } callback - Callback used to get the zoom info. - * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core - * @systemapi + * @atomicservice + * @since 20 + */ + on(type: 'smoothZoomInfoAvailable', callback: AsyncCallback): void; + + /** + * Unsubscribes from zoom info event callback. + * + * @param { 'smoothZoomInfoAvailable' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the zoom info. + * @throws { BusinessError } 202 - Not System Application. + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi * @since 12 */ + /** + * Unsubscribes from zoom info event callback. + * + * @param { 'smoothZoomInfoAvailable' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the zoom info. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ off(type: 'smoothZoomInfoAvailable', callback?: AsyncCallback): void; /** @@ -9593,6 +9873,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Subscribes ISO info event callback. + * + * @param { 'isoInfoChange' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the ISO info. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ on(type: 'isoInfoChange', callback: AsyncCallback): void; /** @@ -9605,6 +9894,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Unsubscribes from ISO info event callback. + * + * @param { 'isoInfoChange' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the ISO info. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ off(type: 'isoInfoChange', callback?: AsyncCallback): void; /** @@ -9617,6 +9915,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Subscribes exposure info event callback. + * + * @param { 'exposureInfoChange' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the exposure info. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ on(type: 'exposureInfoChange', callback: AsyncCallback): void; /** @@ -9629,6 +9936,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Unsubscribes from exposure info event callback. + * + * @param { 'exposureInfoChange' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the exposure info. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ off(type: 'exposureInfoChange', callback?: AsyncCallback): void; /** @@ -9689,7 +10005,17 @@ declare namespace camera { * @systemapi * @since 12 */ - interface ProfessionalVideoSession extends Session, AutoExposure, ManualExposure, Focus, ManualFocus, WhiteBalance, ManualIso, Flash, Zoom, ColorEffect, Aperture { + /** + * Professional video session object. + * + * @extends Session, AutoExposure, ColorManagement, ManualExposure, Focus, ManualFocus, WhiteBalance, ManualIso, + * Flash, Zoom + * @interface ProfessionalVideoSession + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ + interface ProfessionalVideoSession extends Session, AutoExposure, ColorManagement, ManualExposure, Focus, ManualFocus, WhiteBalance, ManualIso, Flash, Zoom { /** * Subscribes to error events. * @@ -9700,6 +10026,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Subscribes to error events. + * + * @param { 'error' } type - Event type. + * @param { ErrorCallback } callback - Callback used to get the capture session errors. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ on(type: 'error', callback: ErrorCallback): void; /** @@ -9712,6 +10047,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Unsubscribes from error events. + * + * @param { 'error' } type - Event type. + * @param { ErrorCallback } callback - Callback used to get the capture session errors. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ off(type: 'error', callback?: ErrorCallback): void; /** @@ -9724,6 +10068,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Subscribes focus state change event callback. + * + * @param { 'focusStateChange' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the focus state change. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ on(type: 'focusStateChange', callback: AsyncCallback): void; /** @@ -9736,6 +10089,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Unsubscribes from focus state change event callback. + * + * @param { 'focusStateChange' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the focus state change. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ off(type: 'focusStateChange', callback?: AsyncCallback): void; /** @@ -9748,6 +10110,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Subscribes zoom info event callback. + * + * @param { 'smoothZoomInfoAvailable' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the zoom info. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ on(type: 'smoothZoomInfoAvailable', callback: AsyncCallback): void; /** @@ -9760,6 +10131,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Unsubscribes from zoom info event callback. + * + * @param { 'smoothZoomInfoAvailable' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the zoom info. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ off(type: 'smoothZoomInfoAvailable', callback?: AsyncCallback): void; /** @@ -9772,6 +10152,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Subscribes ISO info event callback. + * + * @param { 'isoInfoChange' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the ISO info. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ on(type: 'isoInfoChange', callback: AsyncCallback): void; /** @@ -9784,6 +10173,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Unsubscribes from ISO info event callback. + * + * @param { 'isoInfoChange' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the ISO info. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ off(type: 'isoInfoChange', callback?: AsyncCallback): void; /** @@ -9796,6 +10194,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Subscribes exposure info event callback. + * + * @param { 'exposureInfoChange' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the exposure info. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ on(type: 'exposureInfoChange', callback: AsyncCallback): void; /** @@ -9808,6 +10215,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Unsubscribes from exposure info event callback. + * + * @param { 'exposureInfoChange' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the exposure info. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ off(type: 'exposureInfoChange', callback?: AsyncCallback): void; /** @@ -9934,6 +10350,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Subscribes to error events. + * + * @param { 'error' } type - Event type. + * @param { ErrorCallback } callback - Callback used to get the capture session errors. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ on(type: 'error', callback: ErrorCallback): void; /** @@ -9946,6 +10371,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Unsubscribes from error events. + * + * @param { 'error' } type - Event type. + * @param { ErrorCallback } callback - Callback used to get the capture session errors. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ off(type: 'error', callback?: ErrorCallback): void; /** @@ -9958,6 +10392,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Subscribes focus state change event callback. + * + * @param { 'focusStateChange' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the focus state change. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ on(type: 'focusStateChange', callback: AsyncCallback): void; /** @@ -9970,6 +10413,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Unsubscribes from focus state change event callback. + * + * @param { 'focusStateChange' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the focus state change. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ off(type: 'focusStateChange', callback?: AsyncCallback): void; /** @@ -9982,6 +10434,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Subscribes zoom info event callback. + * + * @param { 'smoothZoomInfoAvailable' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the zoom info. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ on(type: 'smoothZoomInfoAvailable', callback: AsyncCallback): void; /** @@ -9994,6 +10455,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Unsubscribes from zoom info event callback. + * + * @param { 'smoothZoomInfoAvailable' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the zoom info. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ off(type: 'smoothZoomInfoAvailable', callback?: AsyncCallback): void; /** @@ -10084,6 +10554,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Subscribes to error events. + * + * @param { 'error' } type - Event type. + * @param { ErrorCallback } callback - Callback used to get the capture session errors. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ on(type: 'error', callback: ErrorCallback): void; /** @@ -10096,6 +10575,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Unsubscribes from error events. + * + * @param { 'error' } type - Event type. + * @param { ErrorCallback } callback - Callback used to get the capture session errors. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ off(type: 'error', callback?: ErrorCallback): void; /** @@ -10108,6 +10596,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Subscribes focus state change event callback. + * + * @param { 'focusStateChange' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the focus state change. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ on(type: 'focusStateChange', callback: AsyncCallback): void; /** @@ -10120,6 +10617,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Unsubscribes from focus state change event callback. + * + * @param { 'focusStateChange' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the focus state change. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ off(type: 'focusStateChange', callback?: AsyncCallback): void; } @@ -10161,6 +10667,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Subscribes to error events. + * + * @param { 'error' } type - Event type. + * @param { ErrorCallback } callback - Callback used to get the capture session errors. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ on(type: 'error', callback: ErrorCallback): void; /** @@ -10173,6 +10688,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Unsubscribes from error events. + * + * @param { 'error' } type - Event type. + * @param { ErrorCallback } callback - Callback used to get the capture session errors. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ off(type: 'error', callback?: ErrorCallback): void; /** @@ -10185,6 +10709,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Subscribes focus state change event callback. + * + * @param { 'focusStateChange' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the focus state change. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ on(type: 'focusStateChange', callback: AsyncCallback): void; /** @@ -10197,6 +10730,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Unsubscribes from focus state change event callback. + * + * @param { 'focusStateChange' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the focus state change. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ off(type: 'focusStateChange', callback?: AsyncCallback): void; /** @@ -10209,6 +10751,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Subscribes zoom info event callback. + * + * @param { 'smoothZoomInfoAvailable' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the zoom info. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ on(type: 'smoothZoomInfoAvailable', callback: AsyncCallback): void; /** @@ -10221,6 +10772,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Unsubscribes from zoom info event callback. + * + * @param { 'smoothZoomInfoAvailable' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the zoom info. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ off(type: 'smoothZoomInfoAvailable', callback?: AsyncCallback): void; } @@ -10253,6 +10813,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Subscribes to error events. + * + * @param { 'error' } type - Event type. + * @param { ErrorCallback } callback - Callback used to get the capture session errors. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ on(type: 'error', callback: ErrorCallback): void; /** @@ -10265,6 +10834,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Unsubscribes from error events. + * + * @param { 'error' } type - Event type. + * @param { ErrorCallback } callback - Callback used to get the capture session errors. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ off(type: 'error', callback?: ErrorCallback): void; /** @@ -10277,6 +10855,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Subscribes focus state change event callback. + * + * @param { 'focusStateChange' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the focus state change. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ on(type: 'focusStateChange', callback: AsyncCallback): void; /** @@ -10289,6 +10876,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Unsubscribes from focus state change event callback. + * + * @param { 'focusStateChange' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the focus state change. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ off(type: 'focusStateChange', callback?: AsyncCallback): void; /** @@ -10301,6 +10897,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Subscribes zoom info event callback. + * + * @param { 'smoothZoomInfoAvailable' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the zoom info. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ on(type: 'smoothZoomInfoAvailable', callback: AsyncCallback): void; /** @@ -10313,6 +10918,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Unsubscribes from zoom info event callback. + * + * @param { 'smoothZoomInfoAvailable' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the zoom info. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ off(type: 'smoothZoomInfoAvailable', callback?: AsyncCallback): void; } @@ -10479,6 +11093,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Subscribes to error events. + * + * @param { 'error' } type - Event type. + * @param { ErrorCallback } callback - Callback used to get the capture session errors. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ on(type: 'error', callback: ErrorCallback): void; /** @@ -10491,6 +11114,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Unsubscribes from error events. + * + * @param { 'error' } type - Event type. + * @param { ErrorCallback } callback - Callback used to get the capture session errors. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ off(type: 'error', callback?: ErrorCallback): void; /** @@ -10503,6 +11135,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Subscribes focus state change event callback. + * + * @param { 'focusStateChange' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the focus state change. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ on(type: 'focusStateChange', callback: AsyncCallback): void; /** @@ -10515,6 +11156,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Unsubscribes from focus state change event callback. + * + * @param { 'focusStateChange' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the focus state change. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ off(type: 'focusStateChange', callback?: AsyncCallback): void; /** @@ -10527,6 +11177,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Subscribes zoom info event callback. + * + * @param { 'smoothZoomInfoAvailable' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the zoom info. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ on(type: 'smoothZoomInfoAvailable', callback: AsyncCallback): void; /** @@ -10539,6 +11198,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Unsubscribes from zoom info event callback. + * + * @param { 'smoothZoomInfoAvailable' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the zoom info. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ off(type: 'smoothZoomInfoAvailable', callback?: AsyncCallback): void; /** @@ -10599,6 +11267,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Subscribes to error events. + * + * @param { 'error' } type - Event type. + * @param { ErrorCallback } callback - Callback used to get the capture session errors. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ on(type: 'error', callback: ErrorCallback): void; /** @@ -10611,6 +11288,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Unsubscribes from error events. + * + * @param { 'error' } type - Event type. + * @param { ErrorCallback } callback - Callback used to get the capture session errors. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ off(type: 'error', callback?: ErrorCallback): void; /** @@ -10647,6 +11333,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Subscribes focus state change event callback. + * + * @param { 'focusStateChange' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the focus state change. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ on(type: 'focusStateChange', callback: AsyncCallback): void; /** @@ -10659,6 +11354,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Unsubscribes from focus state change event callback. + * + * @param { 'focusStateChange' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the focus state change. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ off(type: 'focusStateChange', callback?: AsyncCallback): void; /** @@ -10671,6 +11375,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Subscribes zoom info event callback. + * + * @param { 'smoothZoomInfoAvailable' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the zoom info. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ on(type: 'smoothZoomInfoAvailable', callback: AsyncCallback): void; /** @@ -10683,6 +11396,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Unsubscribes from zoom info event callback. + * + * @param { 'smoothZoomInfoAvailable' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the zoom info. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ off(type: 'smoothZoomInfoAvailable', callback?: AsyncCallback): void; } @@ -10706,6 +11428,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Subscribes to error events. + * + * @param { 'error' } type - Event type. + * @param { ErrorCallback } callback - Callback used to get the capture session errors. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ on(type: 'error', callback: ErrorCallback): void; /** @@ -10718,6 +11449,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Unsubscribes from error events. + * + * @param { 'error' } type - Event type. + * @param { ErrorCallback } callback - Callback used to get the capture session errors. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ off(type: 'error', callback?: ErrorCallback): void; /** @@ -10730,6 +11470,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Subscribes focus state change event callback. + * + * @param { 'focusStateChange' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the focus state change. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ on(type: 'focusStateChange', callback: AsyncCallback): void; /** @@ -10742,6 +11491,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Unsubscribes from focus state change event callback. + * + * @param { 'focusStateChange' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the focus state change. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ off(type: 'focusStateChange', callback?: AsyncCallback): void; } @@ -12389,6 +13147,15 @@ declare namespace camera { * @atomicservice * @since 19 */ + /** + * Determine whether video mirror is supported. + * + * @returns { boolean } Is video mirror supported. + * @throws { BusinessError } 202 - Not System Application. + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 20 + */ isMirrorSupported(): boolean; /** @@ -12416,6 +13183,17 @@ declare namespace camera { * @atomicservice * @since 19 */ + /** + * Enables video mirroring. + * + * @param { boolean } enabled - Whether to enable video mirroring. The value TRUE means to enable video + * mirroring, mirroring, and FALSE means to disable it. + * @throws { BusinessError } 202 - Not System Application. + * @throws { BusinessError } 7400103 - Session not config. + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 20 + */ enableMirror(enabled: boolean): void; /** @@ -13462,6 +14240,16 @@ declare namespace camera { * @systemapi * @since 13 */ + /** + * Confirm if auto deferred video enhancement is supported in the specific device. + * + * @returns { boolean } TRUE if auto deferred video enhancement is supported. + * @throws { BusinessError } 202 - Not System Application. + * @throws { BusinessError } 7400201 - Camera service fatal error. + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 20 + */ isAutoDeferredVideoEnhancementSupported(): boolean; /** @@ -13474,6 +14262,16 @@ declare namespace camera { * @systemapi * @since 13 */ + /** + * Confirm if auto deferred video enhancement is enabled. + * + * @returns { boolean } TRUE if auto deferred video enhancement is enabled. + * @throws { BusinessError } 202 - Not System Application. + * @throws { BusinessError } 7400201 - Camera service fatal error. + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 20 + */ isAutoDeferredVideoEnhancementEnabled(): boolean; /** @@ -13532,6 +14330,15 @@ declare namespace camera { * @systemapi * @since 18 */ + /** + * Determine whether auto frame rate is supported. + * + * @returns { boolean } Is auto frame rate supported. + * @throws { BusinessError } 202 - Not System Application. + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 20 + */ isAutoVideoFrameRateSupported(): boolean; /** @@ -14134,6 +14941,15 @@ declare namespace camera { * @systemapi * @since 13 */ + /** + * Bounding box for left eye. + * + * @type { ?Rect } + * @readonly + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 20 + */ readonly leftEyeBoundingBox: Rect; /** @@ -14145,6 +14961,15 @@ declare namespace camera { * @systemapi * @since 13 */ + /** + * Bounding box for right eye. + * + * @type { ?Rect } + * @readonly + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 20 + */ readonly rightEyeBoundingBox: Rect; /** @@ -14178,18 +15003,27 @@ declare namespace camera { * @systemapi * @since 13 */ - readonly pitchAngle: number; + /** + * Pitch angle for face. + * + * @type { ?int } + * @readonly + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 20 + */ + readonly pitchAngle?: int; /** * Yaw angle for face. * - * @type { number } + * @type { ?int } * @readonly * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since 20 */ - readonly yawAngle: number; + readonly yawAngle?: int; /** * Roll angle for face. @@ -14838,6 +15672,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Subscribes to error events. + * + * @param { 'error' } type - Event type. + * @param { ErrorCallback } callback - Callback used to get the capture session errors. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ on(type: 'error', callback: ErrorCallback): void; /** @@ -14850,6 +15693,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Unsubscribes from error events. + * + * @param { 'error' } type - Event type. + * @param { ErrorCallback } callback - Callback used to get the capture session errors. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ off(type: 'error', callback?: ErrorCallback): void; /** @@ -14862,6 +15714,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Subscribes focus state change event callback. + * + * @param { 'focusStateChange' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the focus state change. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ on(type: 'focusStateChange', callback: AsyncCallback): void; /** @@ -14874,6 +15735,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Unsubscribes from focus state change event callback. + * + * @param { 'focusStateChange' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the focus state change. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ off(type: 'focusStateChange', callback?: AsyncCallback): void; /** @@ -14886,6 +15756,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Subscribes ISO info event callback. + * + * @param { 'isoInfoChange' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the ISO info. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ on(type: 'isoInfoChange', callback: AsyncCallback): void; /** @@ -14898,6 +15777,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Unsubscribes from ISO info event callback. + * + * @param { 'isoInfoChange' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the ISO info. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ off(type: 'isoInfoChange', callback?: AsyncCallback): void; /** @@ -14910,6 +15798,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Subscribes exposure info event callback. + * + * @param { 'exposureInfoChange' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the exposure info. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ on(type: 'exposureInfoChange', callback: AsyncCallback): void; /** @@ -14922,6 +15819,15 @@ declare namespace camera { * @systemapi * @since 12 */ + /** + * Unsubscribes from exposure info event callback. + * + * @param { 'exposureInfoChange' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the exposure info. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + */ off(type: 'exposureInfoChange', callback?: AsyncCallback): void; /** @@ -15626,9 +16532,10 @@ declare namespace camera { * Release quick thumbnail object. * * @returns { Promise } Promise used to return the result. + * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 19 + * @since arkts{ '1.1':'19','1.2':'20'} */ release(): Promise; } -- Gitee From cbd7da3bb613b4278bd8cf9227e8b86d7842dbaf Mon Sep 17 00:00:00 2001 From: cjj Date: Sat, 9 Aug 2025 07:04:01 +0000 Subject: [PATCH 2/9] update api/@ohos.multimedia.camera.d.ts. Signed-off-by: cjj --- api/@ohos.multimedia.camera.d.ts | 564 +------------------------------ 1 file changed, 9 insertions(+), 555 deletions(-) diff --git a/api/@ohos.multimedia.camera.d.ts b/api/@ohos.multimedia.camera.d.ts index f7925f84d8..33c95b517b 100644 --- a/api/@ohos.multimedia.camera.d.ts +++ b/api/@ohos.multimedia.camera.d.ts @@ -8251,13 +8251,6 @@ declare namespace camera { * @atomicservice * @since 19 */ - /** - * High quality photos are the top preference, even at the expense of shot-to-shot time. - * - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ HIGH_QUALITY = 0, /** @@ -9284,15 +9277,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Subscribes to error events. - * - * @param { 'error' } type - Event type. - * @param { ErrorCallback } callback - Callback used to get the capture session errors. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ on(type: 'error', callback: ErrorCallback): void; /** @@ -9305,15 +9289,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Unsubscribes from error events. - * - * @param { 'error' } type - Event type. - * @param { ErrorCallback } callback - Callback used to get the capture session errors. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ off(type: 'error', callback?: ErrorCallback): void; /** @@ -9326,15 +9301,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Subscribes focus state change event callback. - * - * @param { 'focusStateChange' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the focus state change. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ on(type: 'focusStateChange', callback: AsyncCallback): void; /** @@ -9347,15 +9313,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Unsubscribes from focus state change event callback. - * - * @param { 'focusStateChange' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the focus state change. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ off(type: 'focusStateChange', callback?: AsyncCallback): void; /** @@ -9368,15 +9325,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Subscribes zoom info event callback. - * - * @param { 'smoothZoomInfoAvailable' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the zoom info. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ on(type: 'smoothZoomInfoAvailable', callback: AsyncCallback): void; /** @@ -9389,15 +9337,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Unsubscribes from zoom info event callback. - * - * @param { 'smoothZoomInfoAvailable' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the zoom info. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ off(type: 'smoothZoomInfoAvailable', callback?: AsyncCallback): void; } @@ -9747,15 +9686,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Subscribes to error events. - * - * @param { 'error' } type - Event type. - * @param { ErrorCallback } callback - Callback used to get the capture session errors. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ on(type: 'error', callback: ErrorCallback): void; /** @@ -9768,15 +9698,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Unsubscribes from error events. - * - * @param { 'error' } type - Event type. - * @param { ErrorCallback } callback - Callback used to get the capture session errors. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ off(type: 'error', callback?: ErrorCallback): void; /** @@ -9789,15 +9710,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Subscribes focus state change event callback. - * - * @param { 'focusStateChange' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the focus state change. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ on(type: 'focusStateChange', callback: AsyncCallback): void; /** @@ -9810,15 +9722,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Unsubscribes from focus state change event callback. - * - * @param { 'focusStateChange' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the focus state change. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ off(type: 'focusStateChange', callback?: AsyncCallback): void; /** @@ -9831,15 +9734,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Subscribes zoom info event callback. - * - * @param { 'smoothZoomInfoAvailable' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the zoom info. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ on(type: 'smoothZoomInfoAvailable', callback: AsyncCallback): void; /** @@ -9852,15 +9746,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Unsubscribes from zoom info event callback. - * - * @param { 'smoothZoomInfoAvailable' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the zoom info. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ off(type: 'smoothZoomInfoAvailable', callback?: AsyncCallback): void; /** @@ -10026,15 +9911,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Subscribes to error events. - * - * @param { 'error' } type - Event type. - * @param { ErrorCallback } callback - Callback used to get the capture session errors. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ on(type: 'error', callback: ErrorCallback): void; /** @@ -10047,15 +9923,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Unsubscribes from error events. - * - * @param { 'error' } type - Event type. - * @param { ErrorCallback } callback - Callback used to get the capture session errors. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ off(type: 'error', callback?: ErrorCallback): void; /** @@ -10068,15 +9935,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Subscribes focus state change event callback. - * - * @param { 'focusStateChange' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the focus state change. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ on(type: 'focusStateChange', callback: AsyncCallback): void; /** @@ -10089,15 +9947,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Unsubscribes from focus state change event callback. - * - * @param { 'focusStateChange' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the focus state change. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ off(type: 'focusStateChange', callback?: AsyncCallback): void; /** @@ -10110,15 +9959,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Subscribes zoom info event callback. - * - * @param { 'smoothZoomInfoAvailable' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the zoom info. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ on(type: 'smoothZoomInfoAvailable', callback: AsyncCallback): void; /** @@ -10131,15 +9971,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Unsubscribes from zoom info event callback. - * - * @param { 'smoothZoomInfoAvailable' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the zoom info. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ off(type: 'smoothZoomInfoAvailable', callback?: AsyncCallback): void; /** @@ -10350,15 +10181,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Subscribes to error events. - * - * @param { 'error' } type - Event type. - * @param { ErrorCallback } callback - Callback used to get the capture session errors. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ on(type: 'error', callback: ErrorCallback): void; /** @@ -10371,15 +10193,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Unsubscribes from error events. - * - * @param { 'error' } type - Event type. - * @param { ErrorCallback } callback - Callback used to get the capture session errors. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ off(type: 'error', callback?: ErrorCallback): void; /** @@ -10392,15 +10205,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Subscribes focus state change event callback. - * - * @param { 'focusStateChange' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the focus state change. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ on(type: 'focusStateChange', callback: AsyncCallback): void; /** @@ -10413,15 +10217,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Unsubscribes from focus state change event callback. - * - * @param { 'focusStateChange' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the focus state change. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ off(type: 'focusStateChange', callback?: AsyncCallback): void; /** @@ -10434,15 +10229,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Subscribes zoom info event callback. - * - * @param { 'smoothZoomInfoAvailable' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the zoom info. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ on(type: 'smoothZoomInfoAvailable', callback: AsyncCallback): void; /** @@ -10455,15 +10241,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Unsubscribes from zoom info event callback. - * - * @param { 'smoothZoomInfoAvailable' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the zoom info. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ off(type: 'smoothZoomInfoAvailable', callback?: AsyncCallback): void; /** @@ -10554,15 +10331,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Subscribes to error events. - * - * @param { 'error' } type - Event type. - * @param { ErrorCallback } callback - Callback used to get the capture session errors. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ on(type: 'error', callback: ErrorCallback): void; /** @@ -10575,15 +10343,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Unsubscribes from error events. - * - * @param { 'error' } type - Event type. - * @param { ErrorCallback } callback - Callback used to get the capture session errors. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ off(type: 'error', callback?: ErrorCallback): void; /** @@ -10596,15 +10355,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Subscribes focus state change event callback. - * - * @param { 'focusStateChange' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the focus state change. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ on(type: 'focusStateChange', callback: AsyncCallback): void; /** @@ -10617,15 +10367,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Unsubscribes from focus state change event callback. - * - * @param { 'focusStateChange' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the focus state change. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ off(type: 'focusStateChange', callback?: AsyncCallback): void; } @@ -10667,15 +10408,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Subscribes to error events. - * - * @param { 'error' } type - Event type. - * @param { ErrorCallback } callback - Callback used to get the capture session errors. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ on(type: 'error', callback: ErrorCallback): void; /** @@ -10688,15 +10420,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Unsubscribes from error events. - * - * @param { 'error' } type - Event type. - * @param { ErrorCallback } callback - Callback used to get the capture session errors. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ off(type: 'error', callback?: ErrorCallback): void; /** @@ -10709,56 +10432,29 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Subscribes focus state change event callback. - * - * @param { 'focusStateChange' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the focus state change. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ on(type: 'focusStateChange', callback: AsyncCallback): void; /** - * Unsubscribes from focus state change event callback. - * - * @param { 'focusStateChange' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the focus state change. - * @throws { BusinessError } 202 - Not System Application. - * @syscap SystemCapability.Multimedia.Camera.Core - * @systemapi - * @since 12 - */ - /** - * Unsubscribes from focus state change event callback. - * - * @param { 'focusStateChange' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the focus state change. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ - off(type: 'focusStateChange', callback?: AsyncCallback): void; - - /** - * Subscribes zoom info event callback. + * Unsubscribes from focus state change event callback. * - * @param { 'smoothZoomInfoAvailable' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the zoom info. + * @param { 'focusStateChange' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the focus state change. * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi * @since 12 */ + off(type: 'focusStateChange', callback?: AsyncCallback): void; + /** * Subscribes zoom info event callback. * * @param { 'smoothZoomInfoAvailable' } type - Event type. * @param { AsyncCallback } callback - Callback used to get the zoom info. + * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 + * @systemapi + * @since 12 */ on(type: 'smoothZoomInfoAvailable', callback: AsyncCallback): void; @@ -10772,15 +10468,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Unsubscribes from zoom info event callback. - * - * @param { 'smoothZoomInfoAvailable' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the zoom info. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ off(type: 'smoothZoomInfoAvailable', callback?: AsyncCallback): void; } @@ -10813,15 +10500,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Subscribes to error events. - * - * @param { 'error' } type - Event type. - * @param { ErrorCallback } callback - Callback used to get the capture session errors. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ on(type: 'error', callback: ErrorCallback): void; /** @@ -10834,15 +10512,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Unsubscribes from error events. - * - * @param { 'error' } type - Event type. - * @param { ErrorCallback } callback - Callback used to get the capture session errors. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ off(type: 'error', callback?: ErrorCallback): void; /** @@ -10855,15 +10524,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Subscribes focus state change event callback. - * - * @param { 'focusStateChange' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the focus state change. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ on(type: 'focusStateChange', callback: AsyncCallback): void; /** @@ -10876,15 +10536,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Unsubscribes from focus state change event callback. - * - * @param { 'focusStateChange' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the focus state change. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ off(type: 'focusStateChange', callback?: AsyncCallback): void; /** @@ -10897,15 +10548,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Subscribes zoom info event callback. - * - * @param { 'smoothZoomInfoAvailable' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the zoom info. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ on(type: 'smoothZoomInfoAvailable', callback: AsyncCallback): void; /** @@ -10918,15 +10560,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Unsubscribes from zoom info event callback. - * - * @param { 'smoothZoomInfoAvailable' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the zoom info. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ off(type: 'smoothZoomInfoAvailable', callback?: AsyncCallback): void; } @@ -11093,15 +10726,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Subscribes to error events. - * - * @param { 'error' } type - Event type. - * @param { ErrorCallback } callback - Callback used to get the capture session errors. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ on(type: 'error', callback: ErrorCallback): void; /** @@ -11114,15 +10738,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Unsubscribes from error events. - * - * @param { 'error' } type - Event type. - * @param { ErrorCallback } callback - Callback used to get the capture session errors. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ off(type: 'error', callback?: ErrorCallback): void; /** @@ -11135,15 +10750,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Subscribes focus state change event callback. - * - * @param { 'focusStateChange' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the focus state change. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ on(type: 'focusStateChange', callback: AsyncCallback): void; /** @@ -11156,15 +10762,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Unsubscribes from focus state change event callback. - * - * @param { 'focusStateChange' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the focus state change. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ off(type: 'focusStateChange', callback?: AsyncCallback): void; /** @@ -11177,15 +10774,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Subscribes zoom info event callback. - * - * @param { 'smoothZoomInfoAvailable' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the zoom info. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ on(type: 'smoothZoomInfoAvailable', callback: AsyncCallback): void; /** @@ -11198,15 +10786,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Unsubscribes from zoom info event callback. - * - * @param { 'smoothZoomInfoAvailable' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the zoom info. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ off(type: 'smoothZoomInfoAvailable', callback?: AsyncCallback): void; /** @@ -11267,15 +10846,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Subscribes to error events. - * - * @param { 'error' } type - Event type. - * @param { ErrorCallback } callback - Callback used to get the capture session errors. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ on(type: 'error', callback: ErrorCallback): void; /** @@ -11288,15 +10858,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Unsubscribes from error events. - * - * @param { 'error' } type - Event type. - * @param { ErrorCallback } callback - Callback used to get the capture session errors. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ off(type: 'error', callback?: ErrorCallback): void; /** @@ -11333,15 +10894,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Subscribes focus state change event callback. - * - * @param { 'focusStateChange' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the focus state change. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ on(type: 'focusStateChange', callback: AsyncCallback): void; /** @@ -11354,15 +10906,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Unsubscribes from focus state change event callback. - * - * @param { 'focusStateChange' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the focus state change. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ off(type: 'focusStateChange', callback?: AsyncCallback): void; /** @@ -11375,15 +10918,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Subscribes zoom info event callback. - * - * @param { 'smoothZoomInfoAvailable' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the zoom info. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ on(type: 'smoothZoomInfoAvailable', callback: AsyncCallback): void; /** @@ -11396,15 +10930,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Unsubscribes from zoom info event callback. - * - * @param { 'smoothZoomInfoAvailable' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the zoom info. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ off(type: 'smoothZoomInfoAvailable', callback?: AsyncCallback): void; } @@ -11428,15 +10953,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Subscribes to error events. - * - * @param { 'error' } type - Event type. - * @param { ErrorCallback } callback - Callback used to get the capture session errors. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ on(type: 'error', callback: ErrorCallback): void; /** @@ -11449,15 +10965,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Unsubscribes from error events. - * - * @param { 'error' } type - Event type. - * @param { ErrorCallback } callback - Callback used to get the capture session errors. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ off(type: 'error', callback?: ErrorCallback): void; /** @@ -11470,15 +10977,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Subscribes focus state change event callback. - * - * @param { 'focusStateChange' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the focus state change. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ on(type: 'focusStateChange', callback: AsyncCallback): void; /** @@ -11491,15 +10989,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Unsubscribes from focus state change event callback. - * - * @param { 'focusStateChange' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the focus state change. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ off(type: 'focusStateChange', callback?: AsyncCallback): void; } @@ -13193,6 +12682,7 @@ declare namespace camera { * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi * @since 20 + * @arkts 1.1&1.2 */ enableMirror(enabled: boolean): void; @@ -15672,15 +15162,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Subscribes to error events. - * - * @param { 'error' } type - Event type. - * @param { ErrorCallback } callback - Callback used to get the capture session errors. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ on(type: 'error', callback: ErrorCallback): void; /** @@ -15693,15 +15174,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Unsubscribes from error events. - * - * @param { 'error' } type - Event type. - * @param { ErrorCallback } callback - Callback used to get the capture session errors. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ off(type: 'error', callback?: ErrorCallback): void; /** @@ -15714,15 +15186,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Subscribes focus state change event callback. - * - * @param { 'focusStateChange' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the focus state change. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ on(type: 'focusStateChange', callback: AsyncCallback): void; /** @@ -15735,15 +15198,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Unsubscribes from focus state change event callback. - * - * @param { 'focusStateChange' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the focus state change. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ off(type: 'focusStateChange', callback?: AsyncCallback): void; /** -- Gitee From 53d09329cd1ed172ec0becfd07f6a83d28cd444d Mon Sep 17 00:00:00 2001 From: cjj Date: Sat, 9 Aug 2025 07:05:46 +0000 Subject: [PATCH 3/9] update api/@ohos.multimedia.camera.d.ts. Signed-off-by: cjj --- api/@ohos.multimedia.camera.d.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/api/@ohos.multimedia.camera.d.ts b/api/@ohos.multimedia.camera.d.ts index 33c95b517b..dd69ad3d74 100644 --- a/api/@ohos.multimedia.camera.d.ts +++ b/api/@ohos.multimedia.camera.d.ts @@ -14496,24 +14496,24 @@ declare namespace camera { /** * Pitch angle for face. * - * @type { ?int } + * @type { number } * @readonly * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 20 + * @since 13 */ - readonly pitchAngle?: int; + readonly pitchAngle: number; /** * Yaw angle for face. * - * @type { ?int } + * @type { number } * @readonly * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 20 + * @since 13 */ - readonly yawAngle?: int; + readonly yawAngle: number; /** * Roll angle for face. -- Gitee From a4a5f0a4557364fa90053fa38eefc95a8daf8732 Mon Sep 17 00:00:00 2001 From: cjj Date: Sat, 9 Aug 2025 07:08:10 +0000 Subject: [PATCH 4/9] update api/@ohos.multimedia.camera.d.ts. Signed-off-by: cjj --- api/@ohos.multimedia.camera.d.ts | 68 -------------------------------- 1 file changed, 68 deletions(-) diff --git a/api/@ohos.multimedia.camera.d.ts b/api/@ohos.multimedia.camera.d.ts index dd69ad3d74..4baa4515a8 100644 --- a/api/@ohos.multimedia.camera.d.ts +++ b/api/@ohos.multimedia.camera.d.ts @@ -12636,15 +12636,6 @@ declare namespace camera { * @atomicservice * @since 19 */ - /** - * Determine whether video mirror is supported. - * - * @returns { boolean } Is video mirror supported. - * @throws { BusinessError } 202 - Not System Application. - * @syscap SystemCapability.Multimedia.Camera.Core - * @systemapi - * @since 20 - */ isMirrorSupported(): boolean; /** @@ -12672,18 +12663,6 @@ declare namespace camera { * @atomicservice * @since 19 */ - /** - * Enables video mirroring. - * - * @param { boolean } enabled - Whether to enable video mirroring. The value TRUE means to enable video - * mirroring, mirroring, and FALSE means to disable it. - * @throws { BusinessError } 202 - Not System Application. - * @throws { BusinessError } 7400103 - Session not config. - * @syscap SystemCapability.Multimedia.Camera.Core - * @systemapi - * @since 20 - * @arkts 1.1&1.2 - */ enableMirror(enabled: boolean): void; /** @@ -13730,16 +13709,6 @@ declare namespace camera { * @systemapi * @since 13 */ - /** - * Confirm if auto deferred video enhancement is supported in the specific device. - * - * @returns { boolean } TRUE if auto deferred video enhancement is supported. - * @throws { BusinessError } 202 - Not System Application. - * @throws { BusinessError } 7400201 - Camera service fatal error. - * @syscap SystemCapability.Multimedia.Camera.Core - * @systemapi - * @since 20 - */ isAutoDeferredVideoEnhancementSupported(): boolean; /** @@ -13752,16 +13721,6 @@ declare namespace camera { * @systemapi * @since 13 */ - /** - * Confirm if auto deferred video enhancement is enabled. - * - * @returns { boolean } TRUE if auto deferred video enhancement is enabled. - * @throws { BusinessError } 202 - Not System Application. - * @throws { BusinessError } 7400201 - Camera service fatal error. - * @syscap SystemCapability.Multimedia.Camera.Core - * @systemapi - * @since 20 - */ isAutoDeferredVideoEnhancementEnabled(): boolean; /** @@ -13820,15 +13779,6 @@ declare namespace camera { * @systemapi * @since 18 */ - /** - * Determine whether auto frame rate is supported. - * - * @returns { boolean } Is auto frame rate supported. - * @throws { BusinessError } 202 - Not System Application. - * @syscap SystemCapability.Multimedia.Camera.Core - * @systemapi - * @since 20 - */ isAutoVideoFrameRateSupported(): boolean; /** @@ -14431,15 +14381,6 @@ declare namespace camera { * @systemapi * @since 13 */ - /** - * Bounding box for left eye. - * - * @type { ?Rect } - * @readonly - * @syscap SystemCapability.Multimedia.Camera.Core - * @systemapi - * @since 20 - */ readonly leftEyeBoundingBox: Rect; /** @@ -14451,15 +14392,6 @@ declare namespace camera { * @systemapi * @since 13 */ - /** - * Bounding box for right eye. - * - * @type { ?Rect } - * @readonly - * @syscap SystemCapability.Multimedia.Camera.Core - * @systemapi - * @since 20 - */ readonly rightEyeBoundingBox: Rect; /** -- Gitee From c7143384a973d8af698dd6638efa5f26bac28aec Mon Sep 17 00:00:00 2001 From: cjj Date: Sat, 9 Aug 2025 07:17:58 +0000 Subject: [PATCH 5/9] update api/@ohos.multimedia.camera.d.ts. Signed-off-by: cjj --- api/@ohos.multimedia.camera.d.ts | 54 -------------------------------- 1 file changed, 54 deletions(-) diff --git a/api/@ohos.multimedia.camera.d.ts b/api/@ohos.multimedia.camera.d.ts index 4baa4515a8..87cfc282cc 100644 --- a/api/@ohos.multimedia.camera.d.ts +++ b/api/@ohos.multimedia.camera.d.ts @@ -9800,15 +9800,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Subscribes exposure info event callback. - * - * @param { 'exposureInfoChange' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the exposure info. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ on(type: 'exposureInfoChange', callback: AsyncCallback): void; /** @@ -9821,15 +9812,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Unsubscribes from exposure info event callback. - * - * @param { 'exposureInfoChange' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the exposure info. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ off(type: 'exposureInfoChange', callback?: AsyncCallback): void; /** @@ -10025,15 +10007,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Subscribes exposure info event callback. - * - * @param { 'exposureInfoChange' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the exposure info. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ on(type: 'exposureInfoChange', callback: AsyncCallback): void; /** @@ -10046,15 +10019,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Unsubscribes from exposure info event callback. - * - * @param { 'exposureInfoChange' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the exposure info. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ off(type: 'exposureInfoChange', callback?: AsyncCallback): void; /** @@ -15184,15 +15148,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Subscribes exposure info event callback. - * - * @param { 'exposureInfoChange' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the exposure info. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ on(type: 'exposureInfoChange', callback: AsyncCallback): void; /** @@ -15205,15 +15160,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Unsubscribes from exposure info event callback. - * - * @param { 'exposureInfoChange' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the exposure info. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ off(type: 'exposureInfoChange', callback?: AsyncCallback): void; /** -- Gitee From cc69c4dd4299b0196b607580e2aa535c66311478 Mon Sep 17 00:00:00 2001 From: cjj Date: Sat, 9 Aug 2025 07:21:14 +0000 Subject: [PATCH 6/9] update api/@ohos.multimedia.camera.d.ts. Signed-off-by: cjj --- api/@ohos.multimedia.camera.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/@ohos.multimedia.camera.d.ts b/api/@ohos.multimedia.camera.d.ts index 87cfc282cc..c09bf585a3 100644 --- a/api/@ohos.multimedia.camera.d.ts +++ b/api/@ohos.multimedia.camera.d.ts @@ -8004,7 +8004,7 @@ declare namespace camera { * and macro should be disabled. * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since 20 + * @since 20 */ on(type: 'macroStatusChanged', callback: AsyncCallback): void; -- Gitee From 1b4bc9603d4f34ca26c3ab879fbafcb45f149bce Mon Sep 17 00:00:00 2001 From: cjj Date: Sat, 9 Aug 2025 08:01:17 +0000 Subject: [PATCH 7/9] update api/@ohos.multimedia.camera.d.ts. Signed-off-by: cjj --- api/@ohos.multimedia.camera.d.ts | 85 ++------------------------------ 1 file changed, 5 insertions(+), 80 deletions(-) diff --git a/api/@ohos.multimedia.camera.d.ts b/api/@ohos.multimedia.camera.d.ts index c09bf585a3..9482ae0c69 100644 --- a/api/@ohos.multimedia.camera.d.ts +++ b/api/@ohos.multimedia.camera.d.ts @@ -4535,35 +4535,25 @@ declare namespace camera { * @interface ManualFocus * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since arkts {'1.1':'12','1.2':'20'} + * @since 12 */ interface ManualFocus { /** * Gets current focus distance. * - * @returns { double } The current focus distance. + * @returns { number } The current focus distance. * @throws { BusinessError } 202 - Not System Application. * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi * @since 12 */ - /** - * Gets current focus distance, ranging from 0.0 to 1.0, with 0.0 being shortest - * distance at which the lens can focus and 1.0 the furthest. The default value is 1.0. - * - * @returns { double } The current focus distance. - * @throws { BusinessError } 7400103 - Session not config. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ - getFocusDistance(): double; + getFocusDistance(): number; /** * Sets focus distance. * - * @param { double } distance - Focus distance + * @param { number } distance - Focus distance * @throws { BusinessError } 202 - Not System Application. * @throws { BusinessError } 7400101 - Parameter missing or parameter type incorrect. * @throws { BusinessError } 7400103 - Session not config. @@ -4571,16 +4561,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Sets focus distance. Possible distance values range from 0.0 to 1.0, with 0.0 being shortest - * distance at which the lens can focus and 1.0 the furthest. The default value is 1.0. - * - * @param { double } distance - Focus distance - * @throws { BusinessError } 7400103 - Session not config. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ setFocusDistance(distance: double): void; } @@ -9758,15 +9738,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Subscribes ISO info event callback. - * - * @param { 'isoInfoChange' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the ISO info. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ on(type: 'isoInfoChange', callback: AsyncCallback): void; /** @@ -9779,15 +9750,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Unsubscribes from ISO info event callback. - * - * @param { 'isoInfoChange' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the ISO info. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ off(type: 'isoInfoChange', callback?: AsyncCallback): void; /** @@ -9965,15 +9927,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Subscribes ISO info event callback. - * - * @param { 'isoInfoChange' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the ISO info. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ on(type: 'isoInfoChange', callback: AsyncCallback): void; /** @@ -9986,15 +9939,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Unsubscribes from ISO info event callback. - * - * @param { 'isoInfoChange' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the ISO info. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ off(type: 'isoInfoChange', callback?: AsyncCallback): void; /** @@ -15106,15 +15050,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Subscribes ISO info event callback. - * - * @param { 'isoInfoChange' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the ISO info. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ on(type: 'isoInfoChange', callback: AsyncCallback): void; /** @@ -15127,15 +15062,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Unsubscribes from ISO info event callback. - * - * @param { 'isoInfoChange' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the ISO info. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ off(type: 'isoInfoChange', callback?: AsyncCallback): void; /** @@ -15866,8 +15792,7 @@ declare namespace camera { * @returns { Promise } Promise used to return the result. * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core - * @systemapi - * @since arkts{ '1.1':'19','1.2':'20'} + * @systemapi 19 */ release(): Promise; } -- Gitee From 9c65b445ff279a98a8c81571481d001c6ab6902c Mon Sep 17 00:00:00 2001 From: cjj Date: Sat, 9 Aug 2025 08:04:28 +0000 Subject: [PATCH 8/9] update api/@ohos.multimedia.camera.d.ts. Signed-off-by: cjj --- api/@ohos.multimedia.camera.d.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/api/@ohos.multimedia.camera.d.ts b/api/@ohos.multimedia.camera.d.ts index 9482ae0c69..273ba4fef6 100644 --- a/api/@ohos.multimedia.camera.d.ts +++ b/api/@ohos.multimedia.camera.d.ts @@ -7975,7 +7975,7 @@ declare namespace camera { * @systemapi * @since 11 */ - /** + /** * Subscribes camera macro status event callback. * * @param { 'macroStatusChanged' } type - Event type. @@ -8482,7 +8482,7 @@ declare namespace camera { * and macro should be disabled. * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since 20 + * @since 20 */ on(type: 'macroStatusChanged', callback: AsyncCallback): void; @@ -15792,7 +15792,8 @@ declare namespace camera { * @returns { Promise } Promise used to return the result. * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core - * @systemapi 19 + * @systemapi + * @since 19 */ release(): Promise; } -- Gitee From d52efa699cc8fe978830a6e0038385984d518053 Mon Sep 17 00:00:00 2001 From: cjj Date: Sat, 9 Aug 2025 08:39:28 +0000 Subject: [PATCH 9/9] update api/@ohos.multimedia.camera.d.ts. Signed-off-by: cjj --- api/@ohos.multimedia.camera.d.ts | 191 +++---------------------------- 1 file changed, 13 insertions(+), 178 deletions(-) diff --git a/api/@ohos.multimedia.camera.d.ts b/api/@ohos.multimedia.camera.d.ts index 273ba4fef6..4ede7d69f0 100644 --- a/api/@ohos.multimedia.camera.d.ts +++ b/api/@ohos.multimedia.camera.d.ts @@ -3642,19 +3642,11 @@ declare namespace camera { /** * Enum for exposure metering mode. * - * @enum { int } + * @enum { number } * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi * @since 12 */ - /** - * Enum for exposure metering mode. - * - * @enum { int } - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ enum ExposureMeteringMode { /** * Matrix metering. @@ -3663,13 +3655,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Matrix metering mode: Measures the light in the whole frame, ideal for shooting natural landscapes. - * - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ MATRIX = 0, /** @@ -3679,13 +3664,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Center metering mode: Focuses in on light near the center of the screen, ideal for shooting portraits. - * - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ CENTER = 1, /** @@ -3695,13 +3673,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Spot metering mode: Focuses in on light from a specific tiny region, such as a subject's eyes. - * - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ SPOT = 2 } @@ -3794,17 +3765,7 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Checks whether a specified exposure metering mode is supported. - * - * @param { ExposureMeteringMode } aeMeteringMode - Exposure metering mode - * @returns { boolean } Is the exposure metering mode supported. - * @throws { BusinessError } 7400103 - Session not config, only throw in session usage. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ - isExposureMeteringModeSupported(aeMeteringMode: ExposureMeteringMode): boolean + isExposureMeteringModeSupported(aeMeteringMode: ExposureMeteringMode): boolean; } /** @@ -3960,15 +3921,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Gets current exposure metering mode. - * - * @returns { ExposureMeteringMode } The current exposure metering mode. - * @throws { BusinessError } 7400103 - Session not config, only throw in session usage. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ getExposureMeteringMode(): ExposureMeteringMode; /** @@ -3982,15 +3934,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Sets exposure metering mode. - * - * @param { ExposureMeteringMode } aeMeteringMode - Exposure metering mode - * @throws { BusinessError } 7400103 - Session not config, only throw in session usage. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ setExposureMeteringMode(aeMeteringMode: ExposureMeteringMode): void; } @@ -4561,7 +4504,7 @@ declare namespace camera { * @systemapi * @since 12 */ - setFocusDistance(distance: double): void; + setFocusDistance(distance: number): void; } /** @@ -4870,14 +4813,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Manual ISO Query object. - * - * @interface ManualIsoQuery - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ interface ManualIsoQuery { /** * Checks whether ISO is supported. @@ -4913,41 +4848,23 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * ManualIso object. - * - * @extends ManualIsoQuery - * @interface ManualIso - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ interface ManualIso extends ManualIsoQuery { /** * Gets current ISO. * - * @returns { int } The current ISO. + * @returns { number } The current ISO. * @throws { BusinessError } 202 - Not System Application. * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi * @since 12 */ - /** - * Gets current ISO sensitivity value, as defined in ISO 12232:2006. - * - * @returns { int } The current ISO. - * @throws { BusinessError } 7400103 - Session not config. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ - getIso(): int; + getIso(): number; /** * Sets ISO. * - * @param { int } iso - ISO + * @param { number } iso - ISO * @throws { BusinessError } 202 - Not System Application. * @throws { BusinessError } 7400101 - Parameter missing or parameter type incorrect. * @throws { BusinessError } 7400103 - Session not config. @@ -4955,17 +4872,7 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Sets ISO sensitivity value, within the range of getSupportedIsoRange. This control is only effective if - * ExposureMode is set to EXPOSURE_MODE_LOCKED. - * - * @param { int } iso - ISO - * @throws { BusinessError } 7400103 - Session not config. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ - setIso(iso: int): void; + setIso(iso: number): void; } /** @@ -8283,8 +8190,7 @@ declare namespace camera { * @atomicservice * @since 20 */ - interface VideoSession extends Session, Flash, AutoExposure, WhiteBalance, Focus, Zoom, Stabilization, ColorManagement, - ControlCenter, AutoDeviceSwitch, Macro { + interface VideoSession extends Session, Flash, AutoExposure, WhiteBalance, Focus, Zoom, Stabilization, ColorManagement, ControlCenter, AutoDeviceSwitch, Macro { /** * Gets whether the choosed preconfig type can be used to configure video session. * Must choose preconfig type from {@link PreconfigType}. @@ -9328,14 +9234,6 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * ManualExposure Query object. - * - * @interface ManualExposureQuery - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ interface ManualExposureQuery { /** * Gets the supported manual exposure range. @@ -9371,15 +9269,6 @@ declare namespace camera { * @systemapi * @since 11 */ - /** - * ManualExposure object. - * - * @extends ManualExposureQuery - * @interface ManualExposure - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ interface ManualExposure extends ManualExposureQuery { /** * Gets current exposure value. @@ -9537,34 +9426,17 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * ISO info object - * - * @typedef IsoInfo - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ interface IsoInfo { /** * ISO value. * - * @type { ?int } + * @type { ?number } * @readonly * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi * @since 12 */ - /** - * ISO value. - * - * @type { ?int } - * @readonly - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ - readonly iso?: int; + readonly iso?: number; } /** @@ -9575,34 +9447,17 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Exposure info object - * - * @typedef ExposureInfo - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ interface ExposureInfo { /** * Exposure time value. * - * @type { ?int } + * @type { ?number } * @readonly * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi * @since 12 */ - /** - * Exposure time value, units: microseconds. - * - * @type { ?int } - * @readonly - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ - readonly exposureTime?: int; + readonly exposureTime?: number; } /** @@ -9834,17 +9689,7 @@ declare namespace camera { * @systemapi * @since 12 */ - /** - * Professional video session object. - * - * @extends Session, AutoExposure, ColorManagement, ManualExposure, Focus, ManualFocus, WhiteBalance, ManualIso, - * Flash, Zoom - * @interface ProfessionalVideoSession - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - */ - interface ProfessionalVideoSession extends Session, AutoExposure, ColorManagement, ManualExposure, Focus, ManualFocus, WhiteBalance, ManualIso, Flash, Zoom { + interface ProfessionalVideoSession extends Session, AutoExposure, ManualExposure, Focus, ManualFocus, WhiteBalance, ManualIso, Flash, Zoom, ColorEffect, Aperture { /** * Subscribes to error events. * @@ -14324,15 +14169,6 @@ declare namespace camera { */ readonly emotionConfidence: number; - /** - * Pitch angle for face. - * - * @type { number } - * @readonly - * @syscap SystemCapability.Multimedia.Camera.Core - * @systemapi - * @since 13 - */ /** * Pitch angle for face. * @@ -15790,7 +15626,6 @@ declare namespace camera { * Release quick thumbnail object. * * @returns { Promise } Promise used to return the result. - * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi * @since 19 -- Gitee