diff --git a/api/@ohos.multimedia.camera.d.ts b/api/@ohos.multimedia.camera.d.ts index 4cb282fd96f7fc368fceb73cff81ff36523855f2..92a7c64c66ab7e99031296d230c15d88113d6da2 100644 --- a/api/@ohos.multimedia.camera.d.ts +++ b/api/@ohos.multimedia.camera.d.ts @@ -475,6 +475,41 @@ declare namespace camera { readonly supportedMetadataObjectTypes: Array; } + /** + * Control center status info. + * + * @typedef ControlCenterStatusInfo + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + * @arkts 1.1&1.2 + */ + interface ControlCenterStatusInfo { + /** + * Control center effect type. + * + * @type { ControlCenterEffectType } + * @readonly + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + * @arkts 1.1&1.2 + */ + readonly effectType: ControlCenterEffectType; + + /** + * If effect type is active. + * + * @type { boolean } + * @readonly + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + * @arkts 1.1&1.2 + */ + readonly isActive: boolean; + } + /** * Enum for camera error code. * @@ -6289,6 +6324,36 @@ declare namespace camera { */ BLACK_WHITE = 3 } + + /** + * Enumerates the control center effect types. + * + * @enum { int } + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + * @arkts 1.1&1.2 + */ + enum ControlCenterEffectType { + /** + * Beauty type. + * + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + * @arkts 1.1&1.2 + */ + BEAUTY = 0, + /** + * Portrait type. + * + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + * @arkts 1.1&1.2 + */ + PORTRAIT = 1 + } /** * Enum for policy type @@ -9172,8 +9237,7 @@ declare namespace camera { * @param { ErrorCallback } callback - Callback used to get the capture session errors. * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since arkts {'1.1':'19','1.2':'20'} - * @arkts 1.1&1.2 + * @since 19 */ on(type: 'error', callback: ErrorCallback): void; @@ -9192,8 +9256,7 @@ declare namespace camera { * @param { ErrorCallback } callback - Callback used to get the capture session errors. * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since arkts {'1.1':'19','1.2':'20'} - * @arkts 1.1&1.2 + * @since 19 */ off(type: 'error', callback?: ErrorCallback): void; @@ -9216,8 +9279,7 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to get the focus state change. * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since arkts {'1.1':'19','1.2':'20'} - * @arkts 1.1&1.2 + * @since 19 */ on(type: 'focusStateChange', callback: AsyncCallback): void; @@ -9236,8 +9298,7 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to get the focus state change. * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since arkts {'1.1':'19','1.2':'20'} - * @arkts 1.1&1.2 + * @since 19 */ off(type: 'focusStateChange', callback?: AsyncCallback): void; @@ -9260,8 +9321,7 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to get the zoom info. * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since arkts {'1.1':'19','1.2':'20'} - * @arkts 1.1&1.2 + * @since 19 */ on(type: 'smoothZoomInfoAvailable', callback: AsyncCallback): void; @@ -9280,8 +9340,7 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to get the zoom info. * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since arkts {'1.1':'19','1.2':'20'} - * @arkts 1.1&1.2 + * @since 19 */ off(type: 'smoothZoomInfoAvailable', callback?: AsyncCallback): void; @@ -9293,8 +9352,7 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ on(type: 'macroStatusChanged', callback: AsyncCallback): void; @@ -9306,8 +9364,7 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ off(type: 'macroStatusChanged', callback?: AsyncCallback): void; @@ -9319,8 +9376,7 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since arkts {'1.1':'13','1.2':'20'} - * @arkts 1.1&1.2 + * @since 13 */ on(type: 'lcdFlashStatus', callback: AsyncCallback): void; @@ -9332,8 +9388,7 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since arkts {'1.1':'13','1.2':'20'} - * @arkts 1.1&1.2 + * @since 13 */ off(type: 'lcdFlashStatus', callback?: AsyncCallback): void; @@ -9357,8 +9412,7 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to return the result. * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since arkts {'1.1':'19','1.2':'20'} - * @arkts 1.1&1.2 + * @since 19 */ on(type: 'autoDeviceSwitchStatusChange', callback: AsyncCallback): void; @@ -9377,8 +9431,7 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to return the result. * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since arkts {'1.1':'19','1.2':'20'} - * @arkts 1.1&1.2 + * @since 19 */ off(type: 'autoDeviceSwitchStatusChange', callback?: AsyncCallback): void; @@ -9390,8 +9443,7 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since arkts {'1.1':'15','1.2':'20'} - * @arkts 1.1&1.2 + * @since 15 */ on(type: 'focusTrackingInfoAvailable', callback: Callback): void; @@ -9403,8 +9455,7 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since arkts {'1.1':'15','1.2':'20'} - * @arkts 1.1&1.2 + * @since 15 */ off(type: 'focusTrackingInfoAvailable', callback?: Callback): void; @@ -9495,8 +9546,7 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 + * @since 18 */ on(type: 'lightStatusChange', callback: AsyncCallback): void; @@ -9508,143 +9558,391 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 + * @since 18 */ off(type: 'lightStatusChange', callback?: AsyncCallback): void; - } - /** - * Enumerates the system pressure levels of the current camera session. When the system pressure increases, - * you are advised to reduce the load of the current camera session. - * @enum { int } - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - * @arkts 1.1&1.2 - */ - enum SystemPressureLevel { /** - * Normal level. This level indicates that the system pressure is normal. - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since 20 - * @arkts 1.1&1.2 - */ - SYSTEM_PRESSURE_NORMAL = 0, + * @since 20 + * @arkts 1.2 + */ + overload on { onError, onFocusStateChange, onSmoothZoomInfoAvailable, onMacroStatusChanged, onLcdFlashStatus, + onAutoDeviceSwitchStatusChange, onFocusTrackingInfoAvailable, onEffectSuggestionChange, onLightStatusChange }; /** - * Low level. This level indicates that the system pressure is slightly increased. + * Registers a listener for error events in normal photo sessions to get the result by registering + * a callback function. This API uses an asynchronous callback to return the result. + * + * Description: Currently, it is not allowed to use off() to unregister the callback + * within the callback method of on(). + * + * @param { 'error' } type - Event type. + * @param { ErrorCallback } callback - Callback used to get the capture session errors. * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice * @since 20 - * @arkts 1.1&1.2 + * @arkts 1.2 */ - SYSTEM_PRESSURE_MILD = 1, + onError(type: 'error', callback: ErrorCallback): void; /** - * Severity level. This level indicates that the system pressure is severely increased. + * Registers a listener for error events in normal photo sessions to get the result by registering + * a callback function. This API uses an asynchronous callback to return the result. + * + * Description: Currently, it is not allowed to use off() to unregister the callback + * within the callback method of on(). + * + * @param { 'focusStateChange' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the focus state change. * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice * @since 20 - * @arkts 1.1&1.2 + * @arkts 1.2 */ - SYSTEM_PRESSURE_SEVERE = 2, + onFocusStateChange(type: 'focusStateChange', callback: AsyncCallback): void; /** - * Critical level. This level indicates that the system pressure has reached a critical threshold. + * Registers a listener for state changes in the camera's smooth zoom to get the result by registering + * a callback function. This API uses an asynchronous callback to return the result. + * + * Description: Currently, it is not allowed to use off() to unregister the callback + * within the callback method of on(). + * + * @param { 'smoothZoomInfoAvailable' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the zoom info. * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice * @since 20 - * @arkts 1.1&1.2 + * @arkts 1.2 */ - SYSTEM_PRESSURE_CRITICAL = 3, + onSmoothZoomInfoAvailable(type: 'smoothZoomInfoAvailable', callback: AsyncCallback): void; /** - * Shutdown level. This level indicates that the system pressure is fatal, and the camera session will be - * shut down soon. + * Subscribes camera macro status event callback. + * + * @param { 'macroStatusChanged' } type - Event type. + * @param { AsyncCallback } callback - Callback used to return the result. + * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice + * @systemapi * @since 20 - * @arkts 1.1&1.2 + * @arkts 1.2 */ - SYSTEM_PRESSURE_SHUTDOWN = 4 - } + onMacroStatusChanged(type: 'macroStatusChanged', callback: AsyncCallback): void; - /** - * Enum for the camera light status. - * - * @enum { int } - * @syscap SystemCapability.Multimedia.Camera.Core - * @systemapi - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 - */ - enum LightStatus { /** - * Sufficient lighting. + * Subscribes to lcd flash status. * + * @param { 'lcdFlashStatus' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the lcd flash status. + * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 + * @since 20 + * @arkts 1.2 */ - NORMAL = 0, + onLcdFlashStatus(type: 'lcdFlashStatus', callback: AsyncCallback): void; /** - * Insufficient lighting. + * Registers a listener for the camera's automatic lens switching state changes to get the + * result by registering a callback function. This API uses an asynchronous callback to + * return the result. + * + * Description: Currently, it is not allowed to use off() to unregister the callback + * within the callback method of on(). * + * @param { 'autoDeviceSwitchStatusChange' } type - Event type. + * @param { AsyncCallback } callback - Callback used to return the result. * @syscap SystemCapability.Multimedia.Camera.Core - * @systemapi - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 + * @since 20 + * @arkts 1.2 */ - INSUFFICIENT = 1 - } + onAutoDeviceSwitchStatusChange(type: 'autoDeviceSwitchStatusChange', + callback: AsyncCallback): void; - /** - * Enumerates the camera portrait effects. - * - * @enum { int } - * @syscap SystemCapability.Multimedia.Camera.Core - * @systemapi - * @since arkts {'1.1':'10','1.2':'20'} - * @arkts 1.1&1.2 - */ - enum PortraitEffect { /** - * portrait effect off. + * Subscribes to focus tracking info event callback. * + * @param { 'focusTrackingInfoAvailable' } type - Event type. + * @param { Callback } callback - Callback used to get the focus tracking info. + * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since arkts {'1.1':'10','1.2':'20'} - * @arkts 1.1&1.2 + * @since 20 + * @arkts 1.2 */ - OFF = 0, + onFocusTrackingInfoAvailable(type: 'focusTrackingInfoAvailable', callback: Callback): void; /** - * circular blurring for portrait. - * + * Subscribes to effect suggestion change events. + * @param { 'effectSuggestionChange' } type - Event type. + * @param { AsyncCallback } callback - Callback used to return the result. + * @throws { BusinessError } 202 - Not System Application.[object Object] * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since arkts {'1.1':'10','1.2':'20'} - * @arkts 1.1&1.2 + * @since 20 + * @arkts 1.2 */ - CIRCLES = 1, + onEffectSuggestionChange(type: 'effectSuggestionChange', callback: AsyncCallback): void; /** - * heart blurring for portrait. + * Subscribes camera light status event callback. * + * @param { 'lightStatusChange' } type - Event type. + * @param { AsyncCallback } callback - Callback used to return the result. + * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 20 + * @arkts 1.2 */ - HEART = 2, + onLightStatusChange(type: 'lightStatusChange', callback: AsyncCallback): void; /** - * rotated blurring for portrait. - * + * @since 20 + * @arkts 1.2 + */ + overload off { offError, offFocusStateChange, offSmoothZoomInfoAvailable, offMacroStatusChanged, offLcdFlashStatus, + offAutoDeviceSwitchStatusChange, offFocusTrackingInfoAvailable, offEffectSuggestionChange, offLightStatusChange }; + + /** + * 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 + * @since 20 + * @arkts 1.2 + */ + offError(type: 'error', callback?: ErrorCallback): void; + + /** + * 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 + * @since 20 + * @arkts 1.2 + */ + offFocusStateChange(type: 'focusStateChange', callback?: AsyncCallback): void; + + /** + * 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 + * @since 20 + * @arkts 1.2 + */ + offSmoothZoomInfoAvailable(type: 'smoothZoomInfoAvailable', callback?: AsyncCallback): void; + + /** + * Unsubscribes camera macro status event callback. + * + * @param { 'macroStatusChanged' } type - Event type. + * @param { AsyncCallback } [callback] - Callback used to return the result. + * @throws { BusinessError } 202 - Not System Application. + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 20 + * @arkts 1.2 + */ + offMacroStatusChanged(type: 'macroStatusChanged', callback?: AsyncCallback): void; + + /** + * Unsubscribes from lcd flash status. + * + * @param { 'lcdFlashStatus' } type - Event type. + * @param { AsyncCallback } [callback] - Callback used to get the lcd flash status. + * @throws { BusinessError } 202 - Not System Application. + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 20 + * @arkts 1.2 + */ + offLcdFlashStatus(type: 'lcdFlashStatus', callback?: AsyncCallback): void; + + /** + * Unsubscribes to auto device switch status event callback. + * + * @param { 'autoDeviceSwitchStatusChange' } type - Event type. + * @param { AsyncCallback } [callback] - Callback used to return the result. + * @syscap SystemCapability.Multimedia.Camera.Core + * @since 20 + * @arkts 1.2 + */ + offAutoDeviceSwitchStatusChange(type: 'autoDeviceSwitchStatusChange', + callback?: AsyncCallback): void; + + /** + * Unsubscribes from focus tracking info event callback. + * + * @param { 'focusTrackingInfoAvailable' } type - Event type. + * @param { Callback } [callback] - Callback used to get the focus tracking info. + * @throws { BusinessError } 202 - Not System Application. + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 20 + * @arkts 1.2 + */ + offFocusTrackingInfoAvailable(type: 'focusTrackingInfoAvailable', callback?: Callback): void; + + /** + * Unsubscribes from effect suggestion change events. + * @param { 'effectSuggestionChange' } type - Event type. + * @param { AsyncCallback } [callback] - Callback used to return the result. + * @throws { BusinessError } 202 - Not System Application.[object Object] + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 20 + * @arkts 1.2 + */ + offEffectSuggestionChange(type: 'effectSuggestionChange', callback?: AsyncCallback): void; + + /** + * Unsubscribes camera light status event callback. + * + * @param { 'lightStatusChange' } type - Event type. + * @param { AsyncCallback } [callback] - Callback used to return the result. + * @throws { BusinessError } 202 - Not System Application. + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 20 + * @arkts 1.2 + */ + offLightStatusChange(type: 'lightStatusChange', callback?: AsyncCallback): void; + } + + /** + * Enumerates the system pressure levels of the current camera session. When the system pressure increases, + * you are advised to reduce the load of the current camera session. + * @enum { int } + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + * @arkts 1.1&1.2 + */ + enum SystemPressureLevel { + /** + * Normal level. This level indicates that the system pressure is normal. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + * @arkts 1.1&1.2 + */ + SYSTEM_PRESSURE_NORMAL = 0, + + /** + * Low level. This level indicates that the system pressure is slightly increased. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + * @arkts 1.1&1.2 + */ + SYSTEM_PRESSURE_MILD = 1, + + /** + * Severity level. This level indicates that the system pressure is severely increased. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + * @arkts 1.1&1.2 + */ + SYSTEM_PRESSURE_SEVERE = 2, + + /** + * Critical level. This level indicates that the system pressure has reached a critical threshold. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + * @arkts 1.1&1.2 + */ + SYSTEM_PRESSURE_CRITICAL = 3, + + /** + * Shutdown level. This level indicates that the system pressure is fatal, and the camera session will be + * shut down soon. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 + * @arkts 1.1&1.2 + */ + SYSTEM_PRESSURE_SHUTDOWN = 4 + } + + /** + * Enum for the camera light status. + * + * @enum { int } + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 + */ + enum LightStatus { + /** + * Sufficient lighting. + * + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 + */ + NORMAL = 0, + + /** + * Insufficient lighting. + * + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 + */ + INSUFFICIENT = 1 + } + + /** + * Enumerates the camera portrait effects. + * + * @enum { int } + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 + */ + enum PortraitEffect { + /** + * portrait effect off. + * + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 + */ + OFF = 0, + + /** + * circular blurring for portrait. + * + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 + */ + CIRCLES = 1, + + /** + * heart blurring for portrait. + * + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 + */ + HEART = 2, + + /** + * rotated blurring for portrait. + * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi * @since arkts {'1.1':'11','1.2':'20'} @@ -9985,8 +10283,7 @@ declare namespace camera { * @param { ErrorCallback } callback - Callback used to get the capture session errors. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ on(type: 'error', callback: ErrorCallback): void; @@ -9997,8 +10294,7 @@ declare namespace camera { * @param { ErrorCallback } callback - Callback used to get the capture session errors. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ off(type: 'error', callback?: ErrorCallback): void; @@ -10009,8 +10305,7 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to get the focus state change. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ on(type: 'focusStateChange', callback: AsyncCallback): void; @@ -10021,8 +10316,7 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to get the focus state change. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ off(type: 'focusStateChange', callback?: AsyncCallback): void; @@ -10033,8 +10327,7 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to get the zoom info. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ on(type: 'smoothZoomInfoAvailable', callback: AsyncCallback): void; @@ -10045,8 +10338,7 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to get the zoom info. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ off(type: 'smoothZoomInfoAvailable', callback?: AsyncCallback): void; @@ -10058,8 +10350,7 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since arkts {'1.1':'13','1.2':'20'} - * @arkts 1.1&1.2 + * @since 13 */ on(type: 'lcdFlashStatus', callback: AsyncCallback): void; @@ -10071,11 +10362,120 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since arkts {'1.1':'13','1.2':'20'} - * @arkts 1.1&1.2 + * @since 13 */ off(type: 'lcdFlashStatus', callback?: AsyncCallback): void; + /** + * @since 20 + * @arkts 1.2 + */ + overload on { onError, onFocusStateChange, onSmoothZoomInfoAvailable, onLcdFlashStatus }; + + /** + * 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 + * @systemapi + * @since 20 + * @arkts 1.2 + */ + onError(type: 'error', callback: ErrorCallback): void; + + /** + * 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 + * @systemapi + * @since 20 + * @arkts 1.2 + */ + onFocusStateChange(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. + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 20 + * @arkts 1.2 + */ + onSmoothZoomInfoAvailable(type: 'smoothZoomInfoAvailable', callback: AsyncCallback): void; + + /** + * Subscribes to lcd flash status. + * + * @param { 'lcdFlashStatus' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the lcd flash status. + * @throws { BusinessError } 202 - Not System Application. + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 20 + * @arkts 1.2 + */ + onLcdFlashStatus(type: 'lcdFlashStatus', callback: AsyncCallback): void; + + /** + * @since 20 + * @arkts 1.2 + */ + overload off { offError, offFocusStateChange, offSmoothZoomInfoAvailable, offLcdFlashStatus }; + + /** + * 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 + * @systemapi + * @since 20 + * @arkts 1.2 + */ + offError(type: 'error', callback?: ErrorCallback): void; + + /** + * 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 + * @systemapi + * @since 20 + * @arkts 1.2 + */ + offFocusStateChange(type: 'focusStateChange', callback?: AsyncCallback): void; + + /** + * 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 + * @systemapi + * @since 20 + * @arkts 1.2 + */ + offSmoothZoomInfoAvailable(type: 'smoothZoomInfoAvailable', callback?: AsyncCallback): void; + + /** + * Unsubscribes from lcd flash status. + * + * @param { 'lcdFlashStatus' } type - Event type. + * @param { AsyncCallback } [callback] - Callback used to get the lcd flash status. + * @throws { BusinessError } 202 - Not System Application. + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 20 + * @arkts 1.2 + */ + offLcdFlashStatus(type: 'lcdFlashStatus', callback?: AsyncCallback): void; + /** * Gets session functions. * @@ -10122,8 +10522,7 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ on(type: 'error', callback: ErrorCallback): void; @@ -10135,8 +10534,7 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ off(type: 'error', callback?: ErrorCallback): void; @@ -10148,8 +10546,7 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ on(type: 'focusStateChange', callback: AsyncCallback): void; @@ -10161,8 +10558,7 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ off(type: 'focusStateChange', callback?: AsyncCallback): void; @@ -10174,8 +10570,7 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ on(type: 'smoothZoomInfoAvailable', callback: AsyncCallback): void; @@ -10187,10 +10582,99 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ off(type: 'smoothZoomInfoAvailable', callback?: AsyncCallback): void; + + /** + * @since 20 + * @arkts 1.2 + */ + overload on { onError, onFocusStateChange, onSmoothZoomInfoAvailable }; + + /** + * Subscribes to error events. + * + * @param { 'error' } type - Event type. + * @param { ErrorCallback } callback - Callback used to get the capture session errors. + * @throws { BusinessError } 202 - Not System Application. + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 20 + * @arkts 1.2 + */ + onError(type: 'error', callback: ErrorCallback): void; + + /** + * Subscribes 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 20 + * @arkts 1.2 + */ + onFocusStateChange(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 + * @systemapi + * @since 20 + * @arkts 1.2 + */ + onSmoothZoomInfoAvailable(type: 'smoothZoomInfoAvailable', callback: AsyncCallback): void; + + /** + * @since 20 + * @arkts 1.2 + */ + overload off { offError, offFocusStateChange, offSmoothZoomInfoAvailable }; + + /** + * Unsubscribes from error events. + * + * @param { 'error' } type - Event type. + * @param { ErrorCallback } [callback] - Callback used to get the capture session errors. + * @throws { BusinessError } 202 - Not System Application. + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 20 + * @arkts 1.2 + */ + offError(type: 'error', callback?: ErrorCallback): 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 20 + * @arkts 1.2 + */ + offFocusStateChange(type: 'focusStateChange', 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 20 + * @arkts 1.2 + */ + offSmoothZoomInfoAvailable(type: 'smoothZoomInfoAvailable', callback?: AsyncCallback): void; } /** @@ -10307,8 +10791,7 @@ declare namespace camera { * @param { ErrorCallback } callback - Callback used to get the capture session errors. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ on(type: 'error', callback: ErrorCallback): void; @@ -10319,8 +10802,7 @@ declare namespace camera { * @param { ErrorCallback } callback - Callback used to get the capture session errors. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ off(type: 'error', callback?: ErrorCallback): void; @@ -10331,8 +10813,7 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to get the focus state change. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ on(type: 'focusStateChange', callback: AsyncCallback): void; @@ -10343,8 +10824,7 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to get the focus state change. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ off(type: 'focusStateChange', callback?: AsyncCallback): void; @@ -10355,8 +10835,7 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to get the zoom info. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ on(type: 'smoothZoomInfoAvailable', callback: AsyncCallback): void; @@ -10367,8 +10846,7 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to get the zoom info. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 */ off(type: 'smoothZoomInfoAvailable', callback?: AsyncCallback): void; @@ -10380,8 +10858,7 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ on(type: 'lcdFlashStatus', callback: AsyncCallback): void; @@ -10393,24 +10870,133 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ off(type: 'lcdFlashStatus', callback?: AsyncCallback): void; - } - /** - * ISO info object - * - * @typedef IsoInfo - * @syscap SystemCapability.Multimedia.Camera.Core - * @systemapi - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 - */ - interface IsoInfo { /** - * ISO value. + * @since 20 + * @arkts 1.2 + */ + overload on { onError, onFocusStateChange, onSmoothZoomInfoAvailable, onLcdFlashStatus }; + + /** + * 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 + * @systemapi + * @since 20 + * @arkts 1.2 + */ + onError(type: 'error', callback: ErrorCallback): void; + + /** + * 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 + * @systemapi + * @since 20 + * @arkts 1.2 + */ + onFocusStateChange(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. + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 20 + * @arkts 1.2 + */ + onSmoothZoomInfoAvailable(type: 'smoothZoomInfoAvailable', callback: AsyncCallback): void; + + /** + * Subscribes to lcd flash status. + * + * @param { 'lcdFlashStatus' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the lcd flash status. + * @throws { BusinessError } 202 - Not System Application. + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 20 + * @arkts 1.2 + */ + onLcdFlashStatus(type: 'lcdFlashStatus', callback: AsyncCallback): void; + + /** + * @since 20 + * @arkts 1.2 + */ + overload off { offError, offFocusStateChange, offSmoothZoomInfoAvailable, offLcdFlashStatus }; + + /** + * 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 + * @systemapi + * @since 20 + * @arkts 1.2 + */ + offError(type: 'error', callback?: ErrorCallback): void; + + /** + * 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 + * @systemapi + * @since 20 + * @arkts 1.2 + */ + offFocusStateChange(type: 'focusStateChange', callback?: AsyncCallback): void; + + /** + * 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 + * @systemapi + * @since 20 + * @arkts 1.2 + */ + offSmoothZoomInfoAvailable(type: 'smoothZoomInfoAvailable', callback?: AsyncCallback): void; + + /** + * Unsubscribes from lcd flash status. + * + * @param { 'lcdFlashStatus' } type - Event type. + * @param { AsyncCallback } [callback] - Callback used to get the lcd flash status. + * @throws { BusinessError } 202 - Not System Application. + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 20 + * @arkts 1.2 + */ + offLcdFlashStatus(type: 'lcdFlashStatus', callback?: AsyncCallback): void; + } + + /** + * ISO info object + * + * @typedef IsoInfo + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 + */ + interface IsoInfo { + /** + * ISO value. * * @type { ?int } * @readonly @@ -10509,8 +11095,7 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ on(type: 'error', callback: ErrorCallback): void; @@ -10522,8 +11107,7 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ off(type: 'error', callback?: ErrorCallback): void; @@ -10535,8 +11119,7 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ on(type: 'focusStateChange', callback: AsyncCallback): void; @@ -10548,8 +11131,7 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ off(type: 'focusStateChange', callback?: AsyncCallback): void; @@ -10561,8 +11143,7 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ on(type: 'smoothZoomInfoAvailable', callback: AsyncCallback): void; @@ -10574,8 +11155,7 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ off(type: 'smoothZoomInfoAvailable', callback?: AsyncCallback): void; @@ -10587,8 +11167,7 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ on(type: 'isoInfoChange', callback: AsyncCallback): void; @@ -10600,8 +11179,7 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ off(type: 'isoInfoChange', callback?: AsyncCallback): void; @@ -10613,8 +11191,7 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ on(type: 'exposureInfoChange', callback: AsyncCallback): void; @@ -10626,8 +11203,7 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ off(type: 'exposureInfoChange', callback?: AsyncCallback): void; @@ -10639,8 +11215,7 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ on(type: 'apertureInfoChange', callback: AsyncCallback): void; @@ -10652,8 +11227,7 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ off(type: 'apertureInfoChange', callback?: AsyncCallback): void; @@ -10665,8 +11239,7 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ on(type: 'luminationInfoChange', callback: AsyncCallback): void; @@ -10678,10 +11251,185 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ off(type: 'luminationInfoChange', callback?: AsyncCallback): void; + + /** + * @since 20 + * @arkts 1.2 + */ + overload on { onError, onFocusStateChange, onSmoothZoomInfoAvailable, onIsoInfoChange, onExposureInfoChange, + onApertureInfoChange, onLuminationInfoChange }; + + /** + * 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 + * @since 20 + * @arkts 1.2 + */ + onError(type: 'error', callback: ErrorCallback): void; + + /** + * 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 + * @since 20 + * @arkts 1.2 + */ + onFocusStateChange(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. + * @syscap SystemCapability.Multimedia.Camera.Core + * @since 20 + * @arkts 1.2 + */ + onSmoothZoomInfoAvailable(type: 'smoothZoomInfoAvailable', callback: AsyncCallback): void; + + /** + * 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 + * @since 20 + * @arkts 1.2 + */ + onIsoInfoChange(type: 'isoInfoChange', callback: AsyncCallback): void; + + /** + * 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 + * @since 20 + * @arkts 1.2 + */ + onExposureInfoChange(type: 'exposureInfoChange', callback: AsyncCallback): void; + + /** + * Subscribes aperture info event callback. + * + * @param { 'apertureInfoChange' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the aperture info. + * @throws { BusinessError } 202 - Not System Application. + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 20 + * @arkts 1.2 + */ + onApertureInfoChange(type: 'apertureInfoChange', callback: AsyncCallback): void; + + /** + * Subscribes lumination info event callback. + * + * @param { 'luminationInfoChange' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the lumination info. + * @throws { BusinessError } 202 - Not System Application. + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 20 + * @arkts 1.2 + */ + onLuminationInfoChange(type: 'luminationInfoChange', callback: AsyncCallback): void; + + /** + * @since 20 + * @arkts 1.2 + */ + overload off { offError, offFocusStateChange, offSmoothZoomInfoAvailable, offIsoInfoChange, offExposureInfoChange, + offApertureInfoChange, offLuminationInfoChange }; + + /** + * 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 + * @since 20 + * @arkts 1.2 + */ + offError(type: 'error', callback?: ErrorCallback): void; + + /** + * 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 + * @since 20 + * @arkts 1.2 + */ + offFocusStateChange(type: 'focusStateChange', callback?: AsyncCallback): void; + + /** + * 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 + * @since 20 + * @arkts 1.2 + */ + offSmoothZoomInfoAvailable(type: 'smoothZoomInfoAvailable', callback?: AsyncCallback): void; + + /** + * 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 + * @since 20 + * @arkts 1.2 + */ + offIsoInfoChange(type: 'isoInfoChange', callback?: AsyncCallback): void; + + /** + * 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 + * @since 20 + * @arkts 1.2 + */ + offExposureInfoChange(type: 'exposureInfoChange', callback?: AsyncCallback): void; + + /** + * Unsubscribes from aperture info event callback. + * + * @param { 'apertureInfoChange' } type - Event type. + * @param { AsyncCallback } [callback] - Callback used to get the aperture info. + * @throws { BusinessError } 202 - Not System Application. + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 20 + * @arkts 1.2 + */ + offApertureInfoChange(type: 'apertureInfoChange', callback?: AsyncCallback): void; + + /** + * Unsubscribes from lumination info event callback. + * + * @param { 'luminationInfoChange' } type - Event type. + * @param { AsyncCallback } [callback] - Callback used to get the lumination info. + * @throws { BusinessError } 202 - Not System Application. + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 20 + * @arkts 1.2 + */ + offLuminationInfoChange(type: 'luminationInfoChange', callback?: AsyncCallback): void; } /**