From 44277723ab80b34ffc3796d159fbc1707a33ee7c Mon Sep 17 00:00:00 2001 From: w30076694 Date: Sat, 13 Sep 2025 10:52:42 +0800 Subject: [PATCH] CameraKit overload pr5 Signed-off-by: w30076694 --- api/@ohos.multimedia.camera.d.ts | 543 +++++++++++++++++++++++++++---- 1 file changed, 479 insertions(+), 64 deletions(-) diff --git a/api/@ohos.multimedia.camera.d.ts b/api/@ohos.multimedia.camera.d.ts index 79e4f95f6b..eb0c9c6f25 100644 --- a/api/@ohos.multimedia.camera.d.ts +++ b/api/@ohos.multimedia.camera.d.ts @@ -13955,12 +13955,11 @@ declare namespace camera { * Subscribes deferred video enhancement info callback. * * @param { 'deferredVideoEnhancementInfo' } type - Event type. - * @param { AsyncCallback } callback - Callback used to return the result. + * @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':'13','1.2':'20'} - * @arkts 1.1&1.2 + * @since 13 dynamic */ on(type: 'deferredVideoEnhancementInfo', callback: AsyncCallback): void; @@ -13972,8 +13971,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 */ off(type: 'deferredVideoEnhancementInfo', callback?: AsyncCallback): void; @@ -13996,8 +13994,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: 'frameStart', callback: AsyncCallback): void; @@ -14016,8 +14013,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: 'frameStart', callback?: AsyncCallback): void; @@ -14036,8 +14032,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: 'frameEnd', callback: AsyncCallback): void; @@ -14056,8 +14051,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: 'frameEnd', callback?: AsyncCallback): void; @@ -14080,8 +14074,7 @@ declare namespace camera { * @param { ErrorCallback } callback - Callback used to get the video output 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; @@ -14100,11 +14093,102 @@ declare namespace camera { * @param { ErrorCallback } callback - Callback used to get the video output 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; + /** + * Subscribes deferred video enhancement info callback. + * + * @param { 'deferredVideoEnhancementInfo' } 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 + */ + onDeferredVideoEnhancementInfo(callback: AsyncCallback): void; + + /** + * Registers a listener for the start of the video recording 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 { 'frameStart' } type - Event type. + * @param { AsyncCallback } callback - Callback used to return the result. + * @syscap SystemCapability.Multimedia.Camera.Core + * @since 22 static + */ + onFrameStart(callback: AsyncCallback): void; + + /** + * Subscribes frame end event callback. + * + * @param { 'frameEnd' } type - Event type. + * @param { AsyncCallback } callback - Callback used to return the result. + * @syscap SystemCapability.Multimedia.Camera.Core + * @since 22 static + */ + onFrameEnd(callback: AsyncCallback): void; + + /** + * Registers a listener for errors in the metadata stream 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 video output errors. + * @syscap SystemCapability.Multimedia.Camera.Core + * @since 22 static + */ + onError(callback: ErrorCallback): void; + + /** + * Unsubscribes from deferred video enhancement info callback. + * + * @param { 'deferredVideoEnhancementInfo' } 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 + */ + offDeferredVideoEnhancementInfo(callback?: AsyncCallback): void; + + /** + * Unsubscribes from frame start event callback. + * + * @param { 'frameStart' } type - Event type. + * @param { AsyncCallback } [callback] - Callback used to return the result. + * @syscap SystemCapability.Multimedia.Camera.Core + * @since 22 static + */ + offFrameStart(callback?: AsyncCallback): void; + + /** + * Unsubscribes from frame end event callback. + * + * @param { 'frameEnd' } type - Event type. + * @param { AsyncCallback } [callback] - Callback used to return the result. + * @syscap SystemCapability.Multimedia.Camera.Core + * @since 22 static + */ + offFrameEnd(callback?: AsyncCallback): void; + + /** + * Unsubscribes from error events. + * + * @param { 'error' } type - Event type. + * @param { ErrorCallback } [callback] - Callback used to get the video output errors. + * @syscap SystemCapability.Multimedia.Camera.Core + * @since 22 static + */ + offError(callback?: ErrorCallback): void; + /** * Gets the current preconfig type if you had already call preconfig interface. * @@ -14172,6 +14256,117 @@ declare namespace camera { VIDEO_META_MAKER_INFO = 0 } + /** + * Video capability object + * + * @typedef VideoCapability + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 20 + * @arkts 1.1&1.2 + */ + interface VideoCapability { + /** + * Determine whether BFrame is supported. + * + * @returns { boolean } Is BFrame supported. + * @throws { BusinessError } 202 - Not System Application. + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 20 + * @arkts 1.1&1.2 + */ + isBFrameSupported(): boolean; + } + + /** + * Movie settings object + * + * @typedef MovieSettings + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 20 + * @arkts 1.1&1.2 + */ + interface MovieSettings { + /** + * Movie codec type. + * + * @type { VideoCodecType } + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 20 + * @arkts 1.1&1.2 + */ + videoCodec: VideoCodecType; + + /** + * Video rotation. + * + * @type { ?ImageRotation } + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 20 + * @arkts 1.1&1.2 + */ + rotation?: ImageRotation; + + /** + * Movie location. + * + * @type { ?Location } + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 20 + * @arkts 1.1&1.2 + */ + location?: Location; + + /** + * Configure whether to enable B-frame, default false. + * + * @type { ?boolean } + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 20 + * @arkts 1.1&1.2 + */ + isBFrameEnabled?: boolean; + } + + /** + * Movie info object + * + * @typedef MovieInfo + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 20 + * @arkts 1.1&1.2 + */ + interface MovieInfo { + /** + * Capture identity value. + * + * @type { int } + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 20 + * @arkts 1.1&1.2 + */ + captureId: int; + + /** + * ID of the photo taken. + * + * @type { ?photoAccessHelper.PhotoAsset } + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 20 + * @arkts 1.1&1.2 + */ + asset?: photoAccessHelper.PhotoAsset; + } + /** * Metadata object type. * @@ -14566,8 +14761,8 @@ declare namespace camera { /** * Metadata object for face. * - * @typedef MetadataFaceObject * @extends MetadataObject + * @typedef MetadataFaceObject * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi * @since arkts {'1.1':'13','1.2':'20'} @@ -14662,8 +14857,8 @@ declare namespace camera { /** * Metadata object for human body. * - * @typedef MetadataHumanBodyObject * @extends MetadataObject + * @typedef MetadataHumanBodyObject * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi * @since arkts {'1.1':'13','1.2':'20'} @@ -14675,8 +14870,8 @@ declare namespace camera { /** * Metadata object for cat face. * - * @typedef MetadataCatFaceObject * @extends MetadataObject + * @typedef MetadataCatFaceObject * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi * @since arkts {'1.1':'13','1.2':'20'} @@ -14711,8 +14906,8 @@ declare namespace camera { /** * Metadata object for cat body. * - * @typedef MetadataCatBodyObject * @extends MetadataObject + * @typedef MetadataCatBodyObject * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi * @since arkts {'1.1':'13','1.2':'20'} @@ -14724,8 +14919,8 @@ declare namespace camera { /** * Metadata object for dog face. * - * @typedef MetadataDogFaceObject * @extends MetadataObject + * @typedef MetadataDogFaceObject * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi * @since arkts {'1.1':'13','1.2':'20'} @@ -14760,8 +14955,8 @@ declare namespace camera { /** * Metadata object for dog body. * - * @typedef MetadataDogBodyObject * @extends MetadataObject + * @typedef MetadataDogBodyObject * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi * @since arkts {'1.1':'13','1.2':'20'} @@ -14773,8 +14968,8 @@ declare namespace camera { /** * Metadata object for salient detection. * - * @typedef MetadataSalientDetectionObject * @extends MetadataObject + * @typedef MetadataSalientDetectionObject * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi * @since arkts {'1.1':'13','1.2':'20'} @@ -14979,8 +15174,7 @@ declare namespace camera { * @param { AsyncCallback> } callback - Callback used to get the available metadata objects. * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since arkts {'1.1':'19','1.2':'20'} - * @arkts 1.1&1.2 + * @since 19 dynamic */ on(type: 'metadataObjectsAvailable', callback: AsyncCallback>): void; @@ -14999,8 +15193,7 @@ declare namespace camera { * @param { AsyncCallback> } callback - Callback used to get the available metadata objects. * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since arkts {'1.1':'19','1.2':'20'} - * @arkts 1.1&1.2 + * @since 19 dynamic */ off(type: 'metadataObjectsAvailable', callback?: AsyncCallback>): void; @@ -15023,8 +15216,7 @@ declare namespace camera { * @param { ErrorCallback } callback - Callback used to get the video output 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; @@ -15043,10 +15235,57 @@ declare namespace camera { * @param { ErrorCallback } callback - Callback used to get the video output 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; + + /** + * Registers a listener for the detected metadata object 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 { 'metadataObjectsAvailable' } type - Event type. + * @param { AsyncCallback> } callback - Callback used to get the available metadata objects. + * @syscap SystemCapability.Multimedia.Camera.Core + * @since 22 static + */ + onMetadataObjectsAvailable(callback: AsyncCallback>): void; + + /** + * Registers a listener for errors in the video output 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 video output errors. + * @syscap SystemCapability.Multimedia.Camera.Core + * @since 22 static + */ + onError(callback: ErrorCallback): void; + + /** + * Unsubscribes from metadata objects available event callback. + * + * @param { 'metadataObjectsAvailable' } type - Event type. + * @param { AsyncCallback> } [callback] - Callback used to get the available metadata objects. + * @syscap SystemCapability.Multimedia.Camera.Core + * @since 22 static + */ + offmetadataObjectsAvailable(callback?: AsyncCallback>): void; + + /** + * Unsubscribes from error events. + * + * @param { 'error' } type - Event type. + * @param { ErrorCallback } [callback] - Callback used to get the video output errors. + * @syscap SystemCapability.Multimedia.Camera.Core + * @since 22 static + */ + offError(callback?: ErrorCallback): void; } /** @@ -15337,8 +15576,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: 'error', callback: ErrorCallback): void; @@ -15350,8 +15588,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: 'error', callback?: ErrorCallback): void; @@ -15363,8 +15600,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: 'focusStateChange', callback: AsyncCallback): void; @@ -15376,8 +15612,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: 'focusStateChange', callback?: AsyncCallback): void; @@ -15389,8 +15624,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: 'isoInfoChange', callback: AsyncCallback): void; @@ -15402,8 +15636,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: 'isoInfoChange', callback?: AsyncCallback): void; @@ -15415,8 +15648,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: 'exposureInfoChange', callback: AsyncCallback): void; @@ -15428,8 +15660,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: 'exposureInfoChange', callback?: AsyncCallback): void; @@ -15441,8 +15672,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: 'luminationInfoChange', callback: AsyncCallback): void; @@ -15454,8 +15684,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: 'luminationInfoChange', callback?: AsyncCallback): void; @@ -15506,8 +15735,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: 'tryAEInfoChange', callback: AsyncCallback): void; @@ -15519,11 +15747,154 @@ 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: 'tryAEInfoChange', callback?: AsyncCallback): void; + /** + * 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 22 static + */ + onError(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 22 static + */ + onFocusStateChange(callback: AsyncCallback): void; + + /** + * Subscribes ISO info event callback. + * + * @param { 'isoInfoChange' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the ISO info. + * @throws { BusinessError } 202 - Not System Application. + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 22 static + */ + onIsoInfoChange(callback: AsyncCallback): void; + + /** + * Subscribes exposure info event callback. + * + * @param { 'exposureInfoChange' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the exposure info. + * @throws { BusinessError } 202 - Not System Application. + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 22 static + */ + onExposureInfoChange(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 22 static + */ + onLuminationInfoChange(callback: AsyncCallback): void; + + /** + * Subscribes try AE info event callback. + * + * @param { 'tryAEInfoChange' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the try AE info. + * @throws { BusinessError } 202 - Not System Application. + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 22 static + */ + onTryAEInfoChange(callback: AsyncCallback): void; + + /** + * 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 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. + * @throws { BusinessError } 202 - Not System Application. + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 22 static + */ + offFocusStateChange(callback?: AsyncCallback): void; + + /** + * Unsubscribes from ISO info event callback. + * + * @param { 'isoInfoChange' } type - Event type. + * @param { AsyncCallback } [callback] - Callback used to get the ISO info. + * @throws { BusinessError } 202 - Not System Application. + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 22 static + */ + offIsoInfoChange(callback?: AsyncCallback): void; + + /** + * Unsubscribes from exposure info event callback. + * + * @param { 'exposureInfoChange' } type - Event type. + * @param { AsyncCallback } [callback] - Callback used to get the exposure info. + * @throws { BusinessError } 202 - Not System Application. + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 22 static + */ + offExposureInfoChange(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 22 static + */ + offLuminationInfoChange(callback?: AsyncCallback): void; + + /** + * Unsubscribes from try AE info event callback. + * + * @param { 'tryAEInfoChange' } type - Event type. + * @param { AsyncCallback } [callback] - Callback used to get the try AE info. + * @throws { BusinessError } 202 - Not System Application. + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 22 static + */ + offTryAEInfoChange(callback?: AsyncCallback): void; + /** * Gets supported timelapse interval range. * @@ -15854,8 +16225,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: 'depthDataAvailable', callback: AsyncCallback): void; @@ -15867,8 +16237,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 */ off(type: 'depthDataAvailable', callback?: AsyncCallback): void; @@ -15880,8 +16249,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: 'error', callback: ErrorCallback): void; @@ -15893,10 +16261,57 @@ 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: 'error', callback?: ErrorCallback): void; + + /** + * Subscribes to depth data objects available event callback. + * + * @param { 'depthDataAvailable' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the available DepthData objects. + * @throws { BusinessError } 202 - Not System Application. + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 22 static + */ + onDepthDataAvailable(callback: AsyncCallback): void; + + /** + * Subscribes to error events. + * + * @param { 'error' } type - Event type. + * @param { ErrorCallback } callback - Callback used to get the video output errors. + * @throws { BusinessError } 202 - Not System Application. + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 22 static + */ + onError(callback: ErrorCallback): void; + + /** + * Unsubscribes from depth data objects available event callback. + * + * @param { 'depthDataAvailable' } type - Event type. + * @param { AsyncCallback } [callback] - Callback used to get the available DepthData objects. + * @throws { BusinessError } 202 - Not System Application. + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 22 static + */ + offDepthDataAvailable(callback?: AsyncCallback): void; + + /** + * Unsubscribes from error events. + * + * @param { 'error' } type - Event type. + * @param { ErrorCallback } [callback] - Callback used to get the video output errors. + * @throws { BusinessError } 202 - Not System Application. + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 22 static + */ + offError(callback?: ErrorCallback): void; } /** -- Gitee