diff --git a/api/@ohos.multimedia.camera.d.ts b/api/@ohos.multimedia.camera.d.ts index a5b1a2336eeb24724809d9bdec0b51a6d1a1b812..673907a3449ea3c973c9326a76e6f8d35fb5728b 100644 --- a/api/@ohos.multimedia.camera.d.ts +++ b/api/@ohos.multimedia.camera.d.ts @@ -475,41 +475,6 @@ 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. * @@ -6350,36 +6315,6 @@ 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 @@ -9263,7 +9198,8 @@ declare namespace camera { * @param { ErrorCallback } callback - Callback used to get the capture session errors. * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since 19 + * @since arkts {'1.1':'19','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'error', callback: ErrorCallback): void; @@ -9282,7 +9218,8 @@ declare namespace camera { * @param { ErrorCallback } callback - Callback used to get the capture session errors. * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since 19 + * @since arkts {'1.1':'19','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'error', callback?: ErrorCallback): void; @@ -9305,7 +9242,8 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to get the focus state change. * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since 19 + * @since arkts {'1.1':'19','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'focusStateChange', callback: AsyncCallback): void; @@ -9324,7 +9262,8 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to get the focus state change. * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since 19 + * @since arkts {'1.1':'19','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'focusStateChange', callback?: AsyncCallback): void; @@ -9347,7 +9286,8 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to get the zoom info. * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since 19 + * @since arkts {'1.1':'19','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'smoothZoomInfoAvailable', callback: AsyncCallback): void; @@ -9366,7 +9306,8 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to get the zoom info. * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since 19 + * @since arkts {'1.1':'19','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'smoothZoomInfoAvailable', callback?: AsyncCallback): void; @@ -9378,7 +9319,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'macroStatusChanged', callback: AsyncCallback): void; @@ -9390,7 +9332,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'macroStatusChanged', callback?: AsyncCallback): void; @@ -9402,7 +9345,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'lcdFlashStatus', callback: AsyncCallback): void; @@ -9414,7 +9358,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'lcdFlashStatus', callback?: AsyncCallback): void; @@ -9438,7 +9383,8 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to return the result. * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since 19 + * @since arkts {'1.1':'19','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'autoDeviceSwitchStatusChange', callback: AsyncCallback): void; @@ -9457,7 +9403,8 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to return the result. * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since 19 + * @since arkts {'1.1':'19','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'autoDeviceSwitchStatusChange', callback?: AsyncCallback): void; @@ -9469,7 +9416,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 15 + * @since arkts {'1.1':'15','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'focusTrackingInfoAvailable', callback: Callback): void; @@ -9481,7 +9429,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 15 + * @since arkts {'1.1':'15','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'focusTrackingInfoAvailable', callback?: Callback): void; @@ -9492,7 +9441,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application.[object Object] * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 18 + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'effectSuggestionChange', callback: AsyncCallback): void; @@ -9504,7 +9454,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application.[object Object] * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 18 + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'effectSuggestionChange', callback?: AsyncCallback): void; @@ -9572,7 +9523,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 18 + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'lightStatusChange', callback: AsyncCallback): void; @@ -9584,377 +9536,129 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 18 + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ 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 { /** - * @since 20 - * @arkts 1.2 - */ - overload on { onError, onFocusStateChange, onSmoothZoomInfoAvailable, onMacroStatusChanged, onLcdFlashStatus, - onAutoDeviceSwitchStatusChange, onFocusTrackingInfoAvailable, onEffectSuggestionChange, onLightStatusChange }; - - /** - * 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. + * Normal level. This level indicates that the system pressure is normal. * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice * @since 20 - * @arkts 1.2 + * @arkts 1.1&1.2 */ - onError(type: 'error', callback: ErrorCallback): void; + SYSTEM_PRESSURE_NORMAL = 0, /** - * 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. + * Low level. This level indicates that the system pressure is slightly increased. * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice * @since 20 - * @arkts 1.2 + * @arkts 1.1&1.2 */ - onFocusStateChange(type: 'focusStateChange', callback: AsyncCallback): void; + SYSTEM_PRESSURE_MILD = 1, /** - * 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. + * Severity level. This level indicates that the system pressure is severely increased. * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice * @since 20 - * @arkts 1.2 + * @arkts 1.1&1.2 */ - onSmoothZoomInfoAvailable(type: 'smoothZoomInfoAvailable', callback: AsyncCallback): void; + SYSTEM_PRESSURE_SEVERE = 2, /** - * 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. + * Critical level. This level indicates that the system pressure has reached a critical threshold. * @syscap SystemCapability.Multimedia.Camera.Core - * @systemapi + * @atomicservice * @since 20 - * @arkts 1.2 + * @arkts 1.1&1.2 */ - onMacroStatusChanged(type: 'macroStatusChanged', callback: AsyncCallback): void; + SYSTEM_PRESSURE_CRITICAL = 3, /** - * 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. + * 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 - * @systemapi + * @atomicservice * @since 20 - * @arkts 1.2 + * @arkts 1.1&1.2 */ - onLcdFlashStatus(type: 'lcdFlashStatus', callback: AsyncCallback): void; + 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 { /** - * 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(). + * Sufficient lighting. * - * @param { 'autoDeviceSwitchStatusChange' } type - Event type. - * @param { AsyncCallback } callback - Callback used to return the result. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 20 - * @arkts 1.2 + * @systemapi + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ - onAutoDeviceSwitchStatusChange(type: 'autoDeviceSwitchStatusChange', - callback: AsyncCallback): void; + NORMAL = 0, /** - * Subscribes to focus tracking info event callback. + * Insufficient lighting. * - * @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 + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ - onFocusTrackingInfoAvailable(type: 'focusTrackingInfoAvailable', callback: Callback): void; + 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 { /** - * 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] + * portrait effect off. + * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 20 - * @arkts 1.2 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ - onEffectSuggestionChange(type: 'effectSuggestionChange', callback: AsyncCallback): void; + OFF = 0, /** - * Subscribes camera light status event callback. + * circular blurring for portrait. * - * @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 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ - onLightStatusChange(type: 'lightStatusChange', callback: AsyncCallback): void; - - /** - * @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, + CIRCLES = 1, /** * heart blurring for portrait. @@ -10309,7 +10013,8 @@ declare namespace camera { * @param { ErrorCallback } callback - Callback used to get the capture session errors. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'error', callback: ErrorCallback): void; @@ -10320,7 +10025,8 @@ declare namespace camera { * @param { ErrorCallback } callback - Callback used to get the capture session errors. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'error', callback?: ErrorCallback): void; @@ -10331,7 +10037,8 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to get the focus state change. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'focusStateChange', callback: AsyncCallback): void; @@ -10342,7 +10049,8 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to get the focus state change. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'focusStateChange', callback?: AsyncCallback): void; @@ -10353,7 +10061,8 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to get the zoom info. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'smoothZoomInfoAvailable', callback: AsyncCallback): void; @@ -10364,7 +10073,8 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to get the zoom info. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'smoothZoomInfoAvailable', callback?: AsyncCallback): void; @@ -10376,7 +10086,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'lcdFlashStatus', callback: AsyncCallback): void; @@ -10388,120 +10099,11 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ 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. * @@ -10548,7 +10150,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'error', callback: ErrorCallback): void; @@ -10560,7 +10163,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'error', callback?: ErrorCallback): void; @@ -10572,7 +10176,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'focusStateChange', callback: AsyncCallback): void; @@ -10584,7 +10189,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'focusStateChange', callback?: AsyncCallback): void; @@ -10596,7 +10202,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'smoothZoomInfoAvailable', callback: AsyncCallback): void; @@ -10608,99 +10215,10 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ 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; } /** @@ -10817,7 +10335,8 @@ declare namespace camera { * @param { ErrorCallback } callback - Callback used to get the capture session errors. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'error', callback: ErrorCallback): void; @@ -10828,7 +10347,8 @@ declare namespace camera { * @param { ErrorCallback } callback - Callback used to get the capture session errors. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'error', callback?: ErrorCallback): void; @@ -10839,7 +10359,8 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to get the focus state change. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'focusStateChange', callback: AsyncCallback): void; @@ -10850,7 +10371,8 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to get the focus state change. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'focusStateChange', callback?: AsyncCallback): void; @@ -10861,7 +10383,8 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to get the zoom info. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'smoothZoomInfoAvailable', callback: AsyncCallback): void; @@ -10872,7 +10395,8 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to get the zoom info. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'smoothZoomInfoAvailable', callback?: AsyncCallback): void; @@ -10884,7 +10408,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'lcdFlashStatus', callback: AsyncCallback): void; @@ -10896,133 +10421,24 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ 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 { /** - * @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. + * ISO value. * * @type { ?int } * @readonly @@ -11121,7 +10537,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'error', callback: ErrorCallback): void; @@ -11133,7 +10550,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'error', callback?: ErrorCallback): void; @@ -11145,7 +10563,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'focusStateChange', callback: AsyncCallback): void; @@ -11157,7 +10576,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'focusStateChange', callback?: AsyncCallback): void; @@ -11169,7 +10589,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'smoothZoomInfoAvailable', callback: AsyncCallback): void; @@ -11181,7 +10602,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'smoothZoomInfoAvailable', callback?: AsyncCallback): void; @@ -11193,7 +10615,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'isoInfoChange', callback: AsyncCallback): void; @@ -11205,7 +10628,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'isoInfoChange', callback?: AsyncCallback): void; @@ -11217,7 +10641,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'exposureInfoChange', callback: AsyncCallback): void; @@ -11229,7 +10654,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'exposureInfoChange', callback?: AsyncCallback): void; @@ -11241,7 +10667,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'apertureInfoChange', callback: AsyncCallback): void; @@ -11253,7 +10680,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'apertureInfoChange', callback?: AsyncCallback): void; @@ -11265,7 +10693,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'luminationInfoChange', callback: AsyncCallback): void; @@ -11277,185 +10706,10 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ 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; } /**