From d56375fa8984b843a582ccba98152504a0743810 Mon Sep 17 00:00:00 2001 From: w30076694 Date: Fri, 15 Aug 2025 16:06:34 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"CameraKit=20=E9=87=8D=E8=BD=BD?= =?UTF-8?q?=E6=95=B4=E6=94=B9PR4"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 37a11b42bad96a58cb71e29cc865b0c433340df4. Signed-off-by: w30076694 --- api/@ohos.multimedia.camera.d.ts | 1172 ++++-------------------------- 1 file changed, 153 insertions(+), 1019 deletions(-) diff --git a/api/@ohos.multimedia.camera.d.ts b/api/@ohos.multimedia.camera.d.ts index a5b1a2336ee..348d690289a 100644 --- a/api/@ohos.multimedia.camera.d.ts +++ b/api/@ohos.multimedia.camera.d.ts @@ -12722,7 +12722,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; @@ -12741,7 +12742,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; @@ -12764,7 +12766,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; @@ -12783,69 +12786,10 @@ 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; - - /** - * @since 20 - * @arkts 1.2 - */ - overload on { onError, onFocusStateChange }; - - /** - * 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; - - /** - * @since 20 - * @arkts 1.2 - */ - overload off { offError, offFocusStateChange }; - - /** - * 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; } /** @@ -12867,7 +12811,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; @@ -12879,7 +12824,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; @@ -12891,7 +12837,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; @@ -12903,7 +12850,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; @@ -12915,7 +12863,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; @@ -12927,100 +12876,11 @@ 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; - /** * Gets the light painting type in use. * @@ -13081,7 +12941,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; @@ -13093,7 +12954,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; @@ -13105,7 +12967,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: 'effectSuggestionChange', callback: AsyncCallback): void; @@ -13117,7 +12980,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: 'effectSuggestionChange', callback?: AsyncCallback): void; @@ -13129,7 +12993,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; @@ -13141,7 +13006,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; @@ -13153,7 +13019,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; @@ -13165,16 +13032,23 @@ 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, onEffectSuggestionChange, onFocusStateChange, onSmoothZoomInfoAvailable }; - + /** + * Panorama photo session object. + * + * @extends Session, Focus, AutoExposure, WhiteBalance, ColorEffect + * @interface PanoramaPhotoSession + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 + */ + interface PanoramaPhotoSession extends Session, Focus, AutoExposure, WhiteBalance, ColorEffect { /** * Subscribes to error events. * @@ -13183,23 +13057,23 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 20 - * @arkts 1.2 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ - onError(type: 'error', callback: ErrorCallback): void; + on(type: 'error', callback: ErrorCallback): void; /** - * Subscribes to effect suggestion event callback. + * Unsubscribes from error events. * - * @param { 'effectSuggestionChange' } type - Event type. - * @param { AsyncCallback } callback - Callback used to return the result. + * @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 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ - onEffectSuggestionChange(type: 'effectSuggestionChange', callback: AsyncCallback): void; + off(type: 'error', callback?: ErrorCallback): void; /** * Subscribes focus state change event callback. @@ -13209,205 +13083,23 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 20 - * @arkts 1.2 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ - onFocusStateChange(type: 'focusStateChange', callback: AsyncCallback): void; + on(type: 'focusStateChange', callback: AsyncCallback): void; /** - * Subscribes zoom info event callback. + * Unsubscribes from focus state change event callback. * - * @param { 'smoothZoomInfoAvailable' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the zoom info. + * @param { 'focusStateChange' } type - Event type. + * @param { AsyncCallback } callback - Callback used to get the focus state change. * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 20 - * @arkts 1.2 - */ - onSmoothZoomInfoAvailable(type: 'smoothZoomInfoAvailable', callback: AsyncCallback): void; - - /** - * @since 20 - * @arkts 1.2 - */ - overload off { offError, offEffectSuggestionChange, 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 effect suggestion event callback. - * - * @param { 'effectSuggestionChange' } 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 - */ - offEffectSuggestionChange(type: 'effectSuggestionChange', callback?: AsyncCallback): void; - - /** - * Unsubscribes from focus state change event callback. - * - * @param { 'focusStateChange' } type - Event type. - * @param { AsyncCallback } [callback] - Callback used to get the focus state change. - * @throws { BusinessError } 202 - Not System Application. - * @syscap SystemCapability.Multimedia.Camera.Core - * @systemapi - * @since 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; - } - - /** - * Panorama photo session object. - * - * @extends Session, Focus, AutoExposure, WhiteBalance, ColorEffect - * @interface PanoramaPhotoSession - * @syscap SystemCapability.Multimedia.Camera.Core - * @systemapi - * @since arkts {'1.1':'12','1.2':'20'} - * @arkts 1.1&1.2 - */ - interface PanoramaPhotoSession extends Session, Focus, AutoExposure, WhiteBalance, ColorEffect { - /** - * 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 12 - */ - on(type: 'error', callback: ErrorCallback): 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 12 - */ - off(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 12 - */ - on(type: 'focusStateChange', callback: AsyncCallback): void; - - /** - * Unsubscribes from focus state change event callback. - * - * @param { 'focusStateChange' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the focus state change. - * @throws { BusinessError } 202 - Not System Application. - * @syscap SystemCapability.Multimedia.Camera.Core - * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'focusStateChange', callback?: AsyncCallback): void; - - /** - * @since 20 - * @arkts 1.2 - */ - overload on { onError, onFocusStateChange }; - - /** - * 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; - - /** - * @since 20 - * @arkts 1.2 - */ - overload off { offError, offFocusStateChange }; - - /** - * 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; } /** @@ -13429,7 +13121,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: 'error', callback: ErrorCallback): void; @@ -13441,7 +13134,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: 'error', callback?: ErrorCallback): void; @@ -13453,7 +13147,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: 'focusStateChange', callback: AsyncCallback): void; @@ -13465,73 +13160,10 @@ 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: 'focusStateChange', callback?: AsyncCallback): void; - - /** - * @since 20 - * @arkts 1.2 - */ - overload on { onError, onFocusStateChange }; - - /** - * 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; - - /** - * @since 20 - * @arkts 1.2 - */ - overload off { offError, offFocusStateChange }; - - /** - * 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; } /** @@ -13602,8 +13234,8 @@ declare namespace camera { /** * Portrait Photo Conflict Functions object. * - * @extends ZoomQuery, PortraitQuery, ApertureQuery * @interface PortraitPhotoFunctions + * @extends ZoomQuery, PortraitQuery, ApertureQuery * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi * @since arkts {'1.1':'13','1.2':'20'} @@ -13644,7 +13276,8 @@ declare namespace camera { * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since 19 + * @since arkts {'1.1':'19','1.2':'20'} + * @arkts 1.1&1.2 */ release(callback: AsyncCallback): void; @@ -13663,37 +13296,10 @@ declare namespace camera { * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since 19 + * @since arkts {'1.1':'19','1.2':'20'} + * @arkts 1.1&1.2 */ release(): Promise; - - /** - * @since 20 - * @arkts 1.2 - */ - overload release { releaseWithCallback, releaseReturnsPromise }; - - /** - * Release output instance. - * - * @param { AsyncCallback } callback - Callback used to return the result. - * @throws { BusinessError } 7400201 - Camera service fatal error. - * @syscap SystemCapability.Multimedia.Camera.Core - * @since 20 - * @arkts 1.2 - */ - releaseWithCallback(callback: AsyncCallback): void; - - /** - * Release output instance. - * - * @returns { Promise } Promise used to return the result. - * @throws { BusinessError } 7400201 - Camera service fatal error. - * @syscap SystemCapability.Multimedia.Camera.Core - * @since 20 - * @arkts 1.2 - */ - releaseReturnsPromise(): Promise; } /** @@ -13814,7 +13420,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: 'frameStart', callback: AsyncCallback): void; @@ -13833,7 +13440,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: 'frameStart', callback?: AsyncCallback): void; @@ -13856,7 +13464,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: 'frameEnd', callback: AsyncCallback): void; @@ -13875,7 +13484,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: 'frameEnd', callback?: AsyncCallback): void; @@ -13898,7 +13508,8 @@ declare namespace camera { * @param { ErrorCallback } callback - Callback used to get the preview output 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; @@ -13917,7 +13528,8 @@ declare namespace camera { * @param { ErrorCallback } callback - Callback used to get the preview output 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; @@ -14154,7 +13766,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: 'sketchStatusChanged', callback: AsyncCallback): void; @@ -14166,125 +13779,10 @@ 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: 'sketchStatusChanged', callback?: AsyncCallback): void; - - /** - * @since 20 - * @arkts 1.2 - */ - overload on { onFrameStart, onFrameEnd, onError, onSketchStatusChanged }; - - /** - * Registers a listener for the preview frame to start 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 20 - * @arkts 1.2 - */ - onFrameStart(type: 'frameStart', callback: AsyncCallback): void; - - /** - * Registers a listener for the end of the preview frame 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 { 'frameEnd' } type - Event type. - * @param { AsyncCallback } callback - Callback used to return the result. - * @syscap SystemCapability.Multimedia.Camera.Core - * @since 20 - * @arkts 1.2 - */ - onFrameEnd(type: 'frameEnd', callback: AsyncCallback): void; - - /** - * Registers a listener for error events on the preview 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 preview output errors. - * @syscap SystemCapability.Multimedia.Camera.Core - * @since 20 - * @arkts 1.2 - */ - onError(type: 'error', callback: ErrorCallback): void; - - /** - * Subscribes sketch status changed event callback. - * - * @param { 'sketchStatusChanged' } type - Event type. - * @param { AsyncCallback } callback - Callback used to sketch status data. - * @throws { BusinessError } 202 - Not System Application. - * @syscap SystemCapability.Multimedia.Camera.Core - * @systemapi - * @since 20 - * @arkts 1.2 - */ - onSketchStatusChanged(type: 'sketchStatusChanged', callback: AsyncCallback): void; - - /** - * @since 20 - * @arkts 1.2 - */ - overload off { offFrameStart, offFrameEnd, offError, offSketchStatusChanged }; - - /** - * 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 20 - * @arkts 1.2 - */ - offFrameStart(type: 'frameStart', 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 20 - * @arkts 1.2 - */ - offFrameEnd(type: 'frameEnd', callback?: AsyncCallback): void; - - /** - * Unsubscribes from error events. - * - * @param { 'error' } type - Event type. - * @param { ErrorCallback } [callback] - Callback used to get the preview output errors. - * @syscap SystemCapability.Multimedia.Camera.Core - * @since 20 - * @arkts 1.2 - */ - offError(type: 'error', callback?: ErrorCallback): void; - - /** - * Unsubscribes sketch status changed event callback. - * - * @param { 'sketchStatusChanged' } type - Event type. - * @param { AsyncCallback } [callback] - Callback used to get sketch status data. - * @throws { BusinessError } 202 - Not System Application. - * @syscap SystemCapability.Multimedia.Camera.Core - * @systemapi - * @since 20 - * @arkts 1.2 - */ - offSketchStatusChanged(type: 'sketchStatusChanged', callback?: AsyncCallback): void; } /** @@ -14936,7 +14434,8 @@ declare namespace camera { * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since 19 + * @since arkts {'1.1':'19','1.2':'20'} + * @arkts 1.1&1.2 */ capture(callback: AsyncCallback): void; @@ -14957,7 +14456,8 @@ declare namespace camera { * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since 19 + * @since arkts {'1.1':'19','1.2':'20'} + * @arkts 1.1&1.2 */ capture(): Promise; @@ -14982,7 +14482,8 @@ declare namespace camera { * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since 19 + * @since arkts {'1.1':'19','1.2':'20'} + * @arkts 1.1&1.2 */ capture(setting: PhotoCaptureSetting, callback: AsyncCallback): void; @@ -15020,69 +14521,11 @@ declare namespace camera { * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since 19 + * @since arkts {'1.1':'19','1.2':'20'} + * @arkts 1.1&1.2 */ capture(setting: PhotoCaptureSetting): Promise; - /** - * @since 20 - * @arkts 1.2 - */ - overload capture { captureWithCallback, captureReturnsPromise, captureWithSettingCallback, captureWithSettingReturnsPromise }; - - /** - * Start capture output. - * - * @param { AsyncCallback } callback - Callback used to return the result. - * @throws { BusinessError } 7400104 - Session not running. - * @throws { BusinessError } 7400201 - Camera service fatal error. - * @syscap SystemCapability.Multimedia.Camera.Core - * @since 20 - * @arkts 1.2 - */ - captureWithCallback(callback: AsyncCallback): void; - - /** - * Start capture output. - * - * @returns { Promise } Promise used to return the result. - * @throws { BusinessError } 7400104 - Session not running. - * @throws { BusinessError } 7400201 - Camera service fatal error. - * @syscap SystemCapability.Multimedia.Camera.Core - * @since 20 - * @arkts 1.2 - */ - captureReturnsPromise(): Promise; - - /** - * Start capture output. - * - * @param { PhotoCaptureSetting } setting - Photo capture settings. - * @param { AsyncCallback } callback - Callback used to return the result. - * @throws { BusinessError } 7400101 - Parameter missing or parameter type incorrect. - * @throws { BusinessError } 7400104 - Session not running. - * @throws { BusinessError } 7400201 - Camera service fatal error. - * @syscap SystemCapability.Multimedia.Camera.Core - * @since 20 - * @arkts 1.2 - */ - captureWithSettingCallback(setting: PhotoCaptureSetting, callback: AsyncCallback): void; - - /** - * Start capture output. - * Remove optional param. - * - * @param { PhotoCaptureSetting } setting - Photo capture settings. - * @returns { Promise } Promise used to return the result. - * @throws { BusinessError } 7400101 - Parameter missing or parameter type incorrect. - * @throws { BusinessError } 7400104 - Session not running. - * @throws { BusinessError } 7400201 - Camera service fatal error. - * @syscap SystemCapability.Multimedia.Camera.Core - * @since 20 - * @arkts 1.2 - */ - captureWithSettingReturnsPromise(setting: PhotoCaptureSetting): Promise; - /** * Start burst capture. * @@ -15275,7 +14718,8 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to get the Photo. * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since 19 + * @since arkts {'1.1':'19','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'photoAvailable', callback: AsyncCallback): void; @@ -15294,7 +14738,8 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to get the Photo. * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since 19 + * @since arkts {'1.1':'19','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'photoAvailable', callback?: AsyncCallback): void; @@ -15306,7 +14751,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: 'deferredPhotoProxyAvailable', callback: AsyncCallback): void; @@ -15318,7 +14764,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: 'deferredPhotoProxyAvailable', callback?: AsyncCallback): void; @@ -15349,7 +14796,8 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to get the asset. * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since 19 + * @since arkts {'1.1':'19','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'photoAssetAvailable', callback: AsyncCallback): void; @@ -15368,7 +14816,8 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to get the asset. * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since 19 + * @since arkts {'1.1':'19','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'photoAssetAvailable', callback?: AsyncCallback): void; @@ -15461,8 +14910,9 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to get the capture start info. * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since 19 - */ + * @since arkts {'1.1':'19','1.2':'20'} + * @arkts 1.1&1.2 + */ on(type: 'captureStartWithInfo', callback: AsyncCallback): void; /** @@ -15480,7 +14930,8 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to get the capture start info. * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since 19 + * @since arkts {'1.1':'19','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'captureStartWithInfo', callback?: AsyncCallback): void; @@ -15499,7 +14950,8 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to get the frame shutter information. * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since 19 + * @since arkts {'1.1':'19','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'frameShutter', callback: AsyncCallback): void; @@ -15518,7 +14970,8 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to get the frame shutter information. * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since 19 + * @since arkts {'1.1':'19','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'frameShutter', callback?: AsyncCallback): void; @@ -15541,7 +14994,8 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to get the frame shutter end information. * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since 19 + * @since arkts {'1.1':'19','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'frameShutterEnd', callback: AsyncCallback): void; @@ -15560,7 +15014,8 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to get the frame shutter end information. * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since 19 + * @since arkts {'1.1':'19','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'frameShutterEnd', callback?: AsyncCallback): void; @@ -15580,11 +15035,12 @@ declare namespace camera { * within the callback method of on(). * * @param { 'captureEnd' } type - Listens to the event, fixed to 'captureEnd', when photoOutput is - * created successfully. This event can be triggered when the photoOutput is created successfully. + * created successfully. This event can be triggered when the photoOutput is created successfully. * @param { AsyncCallback } callback - Callback used to get the capture end information. * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since 19 + * @since arkts {'1.1':'19','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'captureEnd', callback: AsyncCallback): void; @@ -15603,7 +15059,8 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to get the capture end information. * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since 19 + * @since arkts {'1.1':'19','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'captureEnd', callback?: AsyncCallback): void; @@ -15626,7 +15083,8 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to notice capture ready. * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since 19 + * @since arkts {'1.1':'19','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'captureReady', callback: AsyncCallback): void; @@ -15645,7 +15103,8 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to notice capture ready. * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since 19 + * @since arkts {'1.1':'19','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'captureReady', callback?: AsyncCallback): void; @@ -15668,7 +15127,8 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to notify the estimated capture duration (in milliseconds). * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since 19 + * @since arkts {'1.1':'19','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'estimatedCaptureDuration', callback: AsyncCallback): void; @@ -15687,7 +15147,8 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to notify the estimated capture duration (in milliseconds). * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since 19 + * @since arkts {'1.1':'19','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'estimatedCaptureDuration', callback?: AsyncCallback): void; @@ -15710,7 +15171,8 @@ declare namespace camera { * @param { ErrorCallback } callback - Callback used to get the photo output 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; @@ -15729,7 +15191,8 @@ declare namespace camera { * @param { ErrorCallback } callback - Callback used to get the photo output 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; @@ -15815,7 +15278,8 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to get the quick thumbnail. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'quickThumbnail', callback: AsyncCallback): void; @@ -15827,7 +15291,8 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to get the quick thumbnail. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'quickThumbnail', callback?: AsyncCallback): void; @@ -15992,7 +15457,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: 'offlineDeliveryFinished', callback: AsyncCallback): void; @@ -16001,346 +15467,14 @@ declare namespace camera { * This method is valid only after enableOffline() is called. * * @param { 'offlineDeliveryFinished' } type - Event type. - * @param { AsyncCallback} [callback] - Callback used to get offline Delivery finished events. + * @param { AsyncCallback} callback - Callback used to get offline Delivery finished events. * @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: 'offlineDeliveryFinished', callback?: AsyncCallback): void; - - /** - * @since 20 - * @arkts 1.2 - */ - overload on { onPhotoAvailable, onDeferredPhotoProxyAvailable, onPhotoAssetAvailable, onCaptureStartWithInfo, - onFrameShutter, onFrameShutterEnd, onCaptureEnd, onCaptureReady, onEstimatedCaptureDuration, onError, - onQuickThumbnailWithCallbackofImagePixelMap, onOfflineDeliveryFinished }; - - /** - * Registers a listener for full quality chart uploads 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 { 'photoAvailable' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the Photo. - * @syscap SystemCapability.Multimedia.Camera.Core - * @since 20 - * @arkts 1.2 - */ - onPhotoAvailable(type: 'photoAvailable', callback: AsyncCallback): void; - - /** - * Subscribes deferred photo proxy available event callback. - * - * @param { 'deferredPhotoProxyAvailable' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the DeferredPhotoProxy. - * @throws { BusinessError } 202 - Not System Application. - * @syscap SystemCapability.Multimedia.Camera.Core - * @systemapi - * @since 20 - * @arkts 1.2 - */ - onDeferredPhotoProxyAvailable(type: 'deferredPhotoProxyAvailable', callback: AsyncCallback): void; - - /** - * Registers a listener for photoAsset uploads to monitor the upload process. 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(). - * - *

This API processes deferred photo delivery data by quickly displaying low-quality images to give - * users the impression of faster photo capture, while also generating high-quality images to maintain the - * final output quality. For details about the design specifications, see {@link - * https://developer.huawei.com/consumer/en/doc/best-practices/bpta-camera-shot2see}.

- * @param { 'photoAssetAvailable' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the asset. - * @syscap SystemCapability.Multimedia.Camera.Core - * @since 20 - * @arkts 1.2 - */ - onPhotoAssetAvailable(type: 'photoAssetAvailable', callback: AsyncCallback): void; - - /** - * Registers a listener for the start of the photo taking to get the CaptureStartInfo 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 { 'captureStartWithInfo' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the capture start info. - * @syscap SystemCapability.Multimedia.Camera.Core - * @since 20 - * @arkts 1.2 - */ - onCaptureStartWithInfo(type: 'captureStartWithInfo', callback: AsyncCallback): void; - - /** - * Subscribes frame shutter event callback. - * - * @param { 'frameShutter' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the frame shutter information. - * @syscap SystemCapability.Multimedia.Camera.Core - * @since 20 - * @arkts 1.2 - */ - onFrameShutter(type: 'frameShutter', callback: AsyncCallback): void; - - /** - * Registers a listener for the end of photo exposure capture 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 { 'frameShutterEnd' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the frame shutter end information. - * @syscap SystemCapability.Multimedia.Camera.Core - * @since 20 - * @arkts 1.2 - */ - onFrameShutterEnd(type: 'frameShutterEnd', callback: AsyncCallback): void; - - /** - * Registers a listener for the end of the photo shoot 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 { 'captureEnd' } type - Listens to the event, fixed to 'captureEnd', when photoOutput is - * created successfully. This event can be triggered when the photoOutput is created successfully. - * @param { AsyncCallback } callback - Callback used to get the capture end information. - * @syscap SystemCapability.Multimedia.Camera.Core - * @since 20 - * @arkts 1.2 - */ - onCaptureEnd(type: 'captureEnd', callback: AsyncCallback): void; - - /** - * Registers a listener for the next available shot 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 { 'captureReady' } type - Event type. - * @param { AsyncCallback } callback - Callback used to notice capture ready. - * @syscap SystemCapability.Multimedia.Camera.Core - * @since 20 - * @arkts 1.2 - */ - onCaptureReady(type: 'captureReady', callback: AsyncCallback): void; - - /** - * Registers a listener for the estimated time to take a picture 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 { 'estimatedCaptureDuration' } type - Event type. - * @param { AsyncCallback } callback - Callback used to notify the estimated capture duration (in milliseconds). - * @syscap SystemCapability.Multimedia.Camera.Core - * @since 20 - * @arkts 1.2 - */ - onEstimatedCaptureDuration(type: 'estimatedCaptureDuration', callback: AsyncCallback): void; - - /** - * Registers a listener for errors in the photo 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 photo output errors. - * @syscap SystemCapability.Multimedia.Camera.Core - * @since 20 - * @arkts 1.2 - */ - onError(type: 'error', callback: ErrorCallback): void; - - /** - * Subscribes to camera thumbnail events. - * This method is valid only after enableQuickThumbnail(true) is called. - * - * @param { 'quickThumbnail' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the quick thumbnail. - * @syscap SystemCapability.Multimedia.Camera.Core - * @systemapi - * @since 20 - * @arkts 1.2 - */ - onQuickThumbnailWithCallbackofImagePixelMap(type: 'quickThumbnail', - callback: AsyncCallback): void; - - /** - * Subscribes offline Delivery finished events. - * This method is valid only after enableOffline() is called. - * - * @param { 'offlineDeliveryFinished' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get offline Delivery finished events. - * @throws { BusinessError } 202 - Not System Application. - * @syscap SystemCapability.Multimedia.Camera.Core - * @systemapi - * @since 20 - * @arkts 1.2 - */ - onOfflineDeliveryFinished(type: 'offlineDeliveryFinished', callback: AsyncCallback): void; - - /** - * @since 20 - * @arkts 1.2 - */ - overload off { offPhotoAvailable, offDeferredPhotoProxyAvailable, offPhotoAssetAvailable, offCaptureStartWithInfo, - offFrameShutter, offFrameShutterEnd, offCaptureEnd, offCaptureReady, offEstimatedCaptureDuration, offError, - offQuickThumbnailWithCallbackofImagePixelMap, offOfflineDeliveryFinished }; - - /** - * Unsubscribes photo available event callback. - * - * @param { 'photoAvailable' } type - Event type. - * @param { AsyncCallback } [callback] - Callback used to get the Photo. - * @syscap SystemCapability.Multimedia.Camera.Core - * @since 20 - * @arkts 1.2 - */ - offPhotoAvailable(type: 'photoAvailable', callback?: AsyncCallback): void; - - /** - * Unsubscribes deferred photo proxy available event callback. - * - * @param { 'deferredPhotoProxyAvailable' } type - Event type. - * @param { AsyncCallback } [callback] - Callback used to get the DeferredPhotoProxy. - * @throws { BusinessError } 202 - Not System Application. - * @syscap SystemCapability.Multimedia.Camera.Core - * @systemapi - * @since 20 - * @arkts 1.2 - */ - offDeferredPhotoProxyAvailable(type: 'deferredPhotoProxyAvailable', callback?: AsyncCallback): void; - - /** - * Unsubscribes photo asset event callback. - * - * @param { 'photoAssetAvailable' } type - Event type. - * @param { AsyncCallback } [callback] - Callback used to get the asset. - * @syscap SystemCapability.Multimedia.Camera.Core - * @since 20 - * @arkts 1.2 - */ - offPhotoAssetAvailable(type: 'photoAssetAvailable', callback?: AsyncCallback): void; - - /** - * Unsubscribes from capture start event callback. - * - * @param { 'captureStartWithInfo' } type - Event type. - * @param { AsyncCallback } [callback] - Callback used to get the capture start info. - * @syscap SystemCapability.Multimedia.Camera.Core - * @since 20 - * @arkts 1.2 - */ - offCaptureStartWithInfo(type: 'captureStartWithInfo', callback?: AsyncCallback): void; - - /** - * Unsubscribes from frame shutter event callback. - * - * @param { 'frameShutter' } type - Event type. - * @param { AsyncCallback } [callback] - Callback used to get the frame shutter information. - * @syscap SystemCapability.Multimedia.Camera.Core - * @since 20 - * @arkts 1.2 - */ - offFrameShutter(type: 'frameShutter', callback?: AsyncCallback): void; - - /** - * Unsubscribes from frame shutter end event callback. - * - * @param { 'frameShutterEnd' } type - Event type. - * @param { AsyncCallback } [callback] - Callback used to get the frame shutter end information. - * @syscap SystemCapability.Multimedia.Camera.Core - * @since 20 - * @arkts 1.2 - */ - offFrameShutterEnd(type: 'frameShutterEnd', callback?: AsyncCallback): void; - - /** - * Unsubscribes from capture end event callback. - * - * @param { 'captureEnd' } type - Event type. - * @param { AsyncCallback } [callback] - Callback used to get the capture end information. - * @syscap SystemCapability.Multimedia.Camera.Core - * @since 20 - * @arkts 1.2 - */ - offCaptureEnd(type: 'captureEnd', callback?: AsyncCallback): void; - - /** - * Unsubscribes from capture ready event callback. - * - * @param { 'captureReady' } type - Event type. - * @param { AsyncCallback } [callback] - Callback used to notice capture ready. - * @syscap SystemCapability.Multimedia.Camera.Core - * @since 20 - * @arkts 1.2 - */ - offCaptureReady(type: 'captureReady', callback?: AsyncCallback): void; - - /** - * Unsubscribes from estimated capture duration event callback. - * - * @param { 'estimatedCaptureDuration' } type - Event type. - * @param { AsyncCallback } [callback] - Callback used to notify the estimated - * capture duration (in milliseconds). - * @syscap SystemCapability.Multimedia.Camera.Core - * @since 20 - * @arkts 1.2 - */ - offEstimatedCaptureDuration(type: 'estimatedCaptureDuration', callback?: AsyncCallback): void; - - /** - * Unsubscribes from error events. - * - * @param { 'error' } type - Event type. - * @param { ErrorCallback } [callback] - Callback used to get the photo output errors. - * @syscap SystemCapability.Multimedia.Camera.Core - * @since 20 - * @arkts 1.2 - */ - offError(type: 'error', callback?: ErrorCallback): void; - - /** - * Unsubscribes from camera thumbnail events. - * This method is valid only after enableQuickThumbnail(true) is called. - * - * @param { 'quickThumbnail' } type - Event type. - * @param { AsyncCallback } [callback] - Callback used to get the quick thumbnail. - * @syscap SystemCapability.Multimedia.Camera.Core - * @systemapi - * @since 20 - * @arkts 1.2 - */ - offQuickThumbnailWithCallbackofImagePixelMap(type: 'quickThumbnail', callback?: AsyncCallback): void; - - /** - * Unsubscribes offline Delivery finished events. - * This method is valid only after enableOffline() is called. - * - * @param { 'offlineDeliveryFinished' } type - Event type. - * @param { AsyncCallback} [callback] - Callback used to get offline Delivery finished events. - * @throws { BusinessError } 202 - Not System Application. - * @syscap SystemCapability.Multimedia.Camera.Core - * @systemapi - * @since 20 - * @arkts 1.2 - */ - offOfflineDeliveryFinished(type: 'offlineDeliveryFinished', callback?: AsyncCallback): void; } /** -- Gitee