diff --git a/api/@ohos.multimedia.camera.d.ts b/api/@ohos.multimedia.camera.d.ts index 79e4f95f6b15707b6aee9e942c90f1e82695a290..fadb58b43b3700ead52e64cb426127af701b578a 100644 --- a/api/@ohos.multimedia.camera.d.ts +++ b/api/@ohos.multimedia.camera.d.ts @@ -1421,8 +1421,7 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to get the camera status change. * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since arkts {'1.1':'19','1.2':'20'} - * @arkts 1.1&1.2 + * @since 19 dynamic */ on(type: 'cameraStatus', callback: AsyncCallback): void; @@ -1441,8 +1440,7 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to get the camera status change. * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since arkts {'1.1':'19','1.2':'20'} - * @arkts 1.1&1.2 + * @since 19 dynamic */ off(type: 'cameraStatus', callback?: AsyncCallback): void; @@ -1464,8 +1462,7 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to get the fold status change. * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since arkts {'1.1':'19','1.2':'20'} - * @arkts 1.1&1.2 + * @since 19 dynamic */ on(type: 'foldStatusChange', callback: AsyncCallback): void; @@ -1484,8 +1481,7 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to get the fold status change. * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since arkts {'1.1':'19','1.2':'20'} - * @arkts 1.1&1.2 + * @since 19 dynamic */ off(type: 'foldStatusChange', callback?: AsyncCallback): void; @@ -1506,8 +1502,7 @@ declare namespace camera { * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since arkts {'1.1':'13','1.2':'20'} - * @arkts 1.1&1.2 + * @since 13 dynamic */ on(type: 'cameraMute', callback: AsyncCallback): void; @@ -1528,11 +1523,34 @@ declare namespace camera { * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since arkts {'1.1':'13','1.2':'20'} - * @arkts 1.1&1.2 + * @since 13 dynamic */ off(type: 'cameraMute', callback?: AsyncCallback): void; + /** + * Subscribes control center status change event callback. + * + * @param { 'controlCenterStatusChange' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the control center status change. + * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 20 dynamic + */ + on(type: 'controlCenterStatusChange', callback: AsyncCallback): void; + + /** + * Unsubscribes control center status change event callback. + * + * @param { 'controlCenterStatusChange' } type - Event type. + * @param { AsyncCallback } [callback] - Callback used to get the control center status change. + * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 20 dynamic + */ + off(type: 'controlCenterStatusChange', callback?: AsyncCallback): void; + /** * Determines whether the camera device supports prelaunch. * This function must be called in prior to the setPrelaunchConfig and prelaunch functions. @@ -1773,8 +1791,7 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to return the torch status change * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since arkts {'1.1':'19','1.2':'20'} - * @arkts 1.1&1.2 + * @since 19 dynamic */ on(type: 'torchStatusChange', callback: AsyncCallback): void; @@ -1793,10 +1810,128 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to return the torch status change * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since arkts {'1.1':'19','1.2':'20'} - * @arkts 1.1&1.2 + * @since 19 dynamic */ off(type: 'torchStatusChange', callback?: AsyncCallback): void; + + /** + * Camera state callback to get the state change of the camera 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 { 'cameraStatus' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the camera status change. + * @syscap SystemCapability.Multimedia.Camera.Core + * @since 22 static + */ + onCameraStatus(callback: AsyncCallback): void; + + /** + * Registers a listener for fold state changes. 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 { 'foldStatusChange' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the fold status change. + * @syscap SystemCapability.Multimedia.Camera.Core + * @since 22 static + */ + onFoldStatusChange(callback: AsyncCallback): void; + + /** + * Subscribes camera mute change event callback. + * + * @param { 'cameraMute' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the camera mute change. + * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 22 static + */ + onCameraMute(callback: AsyncCallback): void; + + /** + * Registers a listener for flashlight state changes to get flashlight state change 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 { 'torchStatusChange' } type - Event type + * @param { AsyncCallback } callback - Callback used to return the torch status change + * @syscap SystemCapability.Multimedia.Camera.Core + * @since 22 static + */ + onTorchStatusChange(callback: AsyncCallback): void; + + /** + * Subscribes control center status change event callback. + * + * @param { 'controlCenterStatusChange' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the control center status change. + * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 22 static + */ + onControlCenterStatusChange(callback: AsyncCallback): void; + + /** + * Unsubscribes from camera status change event callback. + * + * @param { 'cameraStatus' } type - Event type. + * @param { AsyncCallback } [callback] - Callback used to get the camera status change. + * @syscap SystemCapability.Multimedia.Camera.Core + * @since 22 static + */ + offCameraStatus(callback?: AsyncCallback): void; + + /** + * Unsubscribes from fold status change event callback. + * + * @param { 'foldStatusChange' } type - Event type. + * @param { AsyncCallback } [callback] - Callback used to get the fold status change. + * @syscap SystemCapability.Multimedia.Camera.Core + * @since 22 static + */ + offFoldStatusChange(callback?: AsyncCallback): void; + + /** + * Unsubscribes from camera mute change event callback. + * + * @param { 'cameraMute' } type - Event type. + * @param { AsyncCallback } [callback] - Callback used to get the camera mute change. + * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 22 static + */ + offCameraMute(callback?: AsyncCallback): void; + + /** + * Unsubscribes torch status change event callback. + * + * @param { 'torchStatusChange' } type - Event type + * @param { AsyncCallback } [callback] - Callback used to return the torch status change + * @syscap SystemCapability.Multimedia.Camera.Core + * @since 22 static + */ + offTorchStatusChange(callback?: AsyncCallback): void; + + /** + * Unsubscribes control center status change event callback. + * + * @param { 'controlCenterStatusChange' } type - Event type. + * @param { AsyncCallback } [callback] - Callback used to get the control center status change. + * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 22 static + */ + offControlCenterStatusChange(callback?: AsyncCallback): void; } /** @@ -2891,8 +3026,7 @@ declare namespace camera { * @param { ErrorCallback } callback - Callback used to get the camera input errors. * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since arkts {'1.1':'19','1.2':'20'} - * @arkts 1.1&1.2 + * @since 19 dynamic */ on(type: 'error', camera: CameraDevice, callback: ErrorCallback): void; @@ -2913,8 +3047,7 @@ declare namespace camera { * @param { ErrorCallback } callback - Callback used to get the camera input errors. * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since arkts {'1.1':'19','1.2':'20'} - * @arkts 1.1&1.2 + * @since 19 dynamic */ off(type: 'error', camera: CameraDevice, callback?: ErrorCallback): void; @@ -2926,8 +3059,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 dynamic */ on(type: 'cameraOcclusionDetection', callback: AsyncCallback): void; @@ -2939,11 +3071,60 @@ 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 dynamic */ off(type: 'cameraOcclusionDetection', callback?: AsyncCallback): void; + /** + * Registers a listener for CameraInput error events 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 { CameraDevice } camera - Camera device. + * @param { ErrorCallback } callback - Callback used to get the camera input errors. + * @syscap SystemCapability.Multimedia.Camera.Core + * @since 22 static + */ + onError(camera: CameraDevice, callback: ErrorCallback): void; + + /** + * Subscribes to camera occlusion detection results. + * + * @param { 'cameraOcclusionDetection' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get detection results. + * @throws { BusinessError } 202 - Not System Application. + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 22 static + */ + onCameraOcclusionDetection(callback: AsyncCallback): void; + + /** + * Unsubscribes from error events. + * + * @param { 'error' } type - Event type. + * @param { CameraDevice } camera - Camera device. + * @param { ErrorCallback } [callback] - Callback used to get the camera input errors. + * @syscap SystemCapability.Multimedia.Camera.Core + * @since 22 static + */ + offError(camera: CameraDevice, callback?: ErrorCallback): void; + + /** + * Unsubscribes from camera occlusion detection results. + * + * @param { 'cameraOcclusionDetection' } type - Event type. + * @param { AsyncCallback } [callback] - Callback used to get detection results. + * @throws { BusinessError } 202 - Not System Application. + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 22 static + */ + offCameraOcclusionDetection(callback?: AsyncCallback): void; + /** * Sets the camera to be used as a camera at the specified position. * @@ -7913,8 +8094,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 dynamic */ on(type: 'error', callback: ErrorCallback): void; @@ -7933,8 +8113,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 dynamic */ off(type: 'error', callback?: ErrorCallback): void; @@ -7957,8 +8136,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 dynamic */ on(type: 'focusStateChange', callback: AsyncCallback): void; @@ -7977,8 +8155,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 dynamic */ off(type: 'focusStateChange', callback?: AsyncCallback): void; @@ -8001,8 +8178,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 dynamic */ on(type: 'smoothZoomInfoAvailable', callback: AsyncCallback): void; @@ -8021,8 +8197,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 dynamic */ off(type: 'smoothZoomInfoAvailable', callback?: AsyncCallback): void; @@ -8034,8 +8209,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 dynamic */ on(type: 'macroStatusChanged', callback: AsyncCallback): void; @@ -8047,8 +8221,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 dynamic */ off(type: 'macroStatusChanged', callback?: AsyncCallback): void; @@ -8061,8 +8234,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 dynamic */ on(type: 'featureDetection', featureType: SceneFeatureType, callback: AsyncCallback): void; @@ -8075,8 +8247,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 dynamic */ off(type: 'featureDetection', featureType: SceneFeatureType, callback?: AsyncCallback): void; @@ -8087,8 +8258,7 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to return the result. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 dynamic */ on(type: 'effectSuggestionChange', callback: AsyncCallback): void; @@ -8099,8 +8269,7 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to return the result. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 dynamic */ off(type: 'effectSuggestionChange', callback?: AsyncCallback): void; @@ -8123,8 +8292,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 dynamic */ on(type: 'autoDeviceSwitchStatusChange', callback: AsyncCallback): void; @@ -8143,8 +8311,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 dynamic */ off(type: 'autoDeviceSwitchStatusChange', callback?: AsyncCallback): void; @@ -8156,8 +8323,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 dynamic */ on(type: 'lcdFlashStatus', callback: AsyncCallback): void; @@ -8169,11 +8335,244 @@ 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 dynamic */ off(type: 'lcdFlashStatus', callback?: AsyncCallback): void; + /** + * Subscribes to system pressure level event callback. + * + * @param { 'systemPressureLevelChange' } type - Event type. + * @param { AsyncCallback } callback - Callback used to return the result. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 dynamic + */ + on(type: 'systemPressureLevelChange', callback: AsyncCallback): void; + + /** + * Unsubscribes to system pressure level event callback. + * + * @param { 'systemPressureLevelChange' } type - Event type. + * @param { AsyncCallback } [callback] - Callback used to return the result. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 20 dynamic + */ + off(type: 'systemPressureLevelChange', callback?: AsyncCallback): void; + + /** + * Registers a listener for error events from a normal video session 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 + * @since 22 static + */ + onError(callback: ErrorCallback): void; + + /** + * Registers a listener for camera focus 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 { 'focusStateChange' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the focus state change. + * @syscap SystemCapability.Multimedia.Camera.Core + * @since 22 static + */ + onFocusStateChange(callback: AsyncCallback): void; + + /** + * 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 + * @since 22 static + */ + onSmoothZoomInfoAvailable(callback: AsyncCallback): void; + + /** + * 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 + * @systemapi + * @since 22 static + */ + onMacroStatusChanged(callback: AsyncCallback): void; + + /** + * Subscribes to feature detection results. + * + * @param { 'featureDetection' } type - Event type. + * @param { SceneFeatureType } featureType - Feature type. + * @param { AsyncCallback } callback - Callback used to get the detection result. + * @throws { BusinessError } 202 - Not System Application. + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 22 static + */ + onFeatureDetection(featureType: SceneFeatureType, callback: AsyncCallback): void; + + /** + * Subscribes to effect suggestion event callback. + * + * @param { 'effectSuggestionChange' } type - Event type. + * @param { AsyncCallback } callback - Callback used to return the result. + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 22 static + */ + onEffectSuggestionChange(callback: AsyncCallback): void; + + /** + * 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 + * @since 22 static + */ + onAutoDeviceSwitchStatusChange(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 22 static + */ + onLcdFlashStatus(callback: AsyncCallback): void; + + /** + * Subscribes to system pressure level event callback. + * + * @param { 'systemPressureLevelChange' } type - Event type. + * @param { AsyncCallback } callback - Callback used to return the result. + * @syscap SystemCapability.Multimedia.Camera.Core + * @since 22 static + */ + onSystemPressureLevelChange(callback: AsyncCallback): void; + + /** + * 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 22 static + */ + offError(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 22 static + */ + offFocusStateChange(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 22 static + */ + offSmoothZoomInfoAvailable(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 22 static + */ + offMacroStatusChanged(callback?: AsyncCallback): void; + + /** + * Unsubscribes from feature detection result. + * + * @param { 'featureDetection' } type - Event type. + * @param { SceneFeatureType } featureType - Feature type. + * @param { AsyncCallback } [callback] - Callback used to get the detection result. + * @throws { BusinessError } 202 - Not System Application. + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 22 static + */ + offFeatureDetection(featureType: SceneFeatureType, callback?: AsyncCallback): void; + + /** + * Unsubscribes from effect suggestion event callback. + * + * @param { 'effectSuggestionChange' } type - Event type. + * @param { AsyncCallback } [callback] - Callback used to return the result. + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 22 static + */ + offEffectSuggestionChange(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 22 static + */ + offAutoDeviceSwitchStatusChange(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 22 static + */ + offLcdFlashStatus(callback?: AsyncCallback): void; + + /** + * Unsubscribes to system pressure level event callback. + * + * @param { 'systemPressureLevelChange' } type - Event type. + * @param { AsyncCallback } [callback] - Callback used to return the result. + * @syscap SystemCapability.Multimedia.Camera.Core + * @since 22 static + */ + offSystemPressureLevelChange(callback?: AsyncCallback): void; + /** * Gets session functions. * @@ -8735,6 +9134,63 @@ declare namespace camera { 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, + + /** + * 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. *