diff --git a/api/@ohos.multimedia.camera.d.ts b/api/@ohos.multimedia.camera.d.ts index a5b1a2336eeb24724809d9bdec0b51a6d1a1b812..6a7c04ea4a88f338b78d1a362cb65c0276dc1180 100644 --- a/api/@ohos.multimedia.camera.d.ts +++ b/api/@ohos.multimedia.camera.d.ts @@ -16608,7 +16608,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 */ start(callback: AsyncCallback): void; @@ -16629,40 +16630,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 */ start(): Promise; - /** - * @since 20 - * @arkts 1.2 - */ - overload start { startWithCallback, startReturnsPromise }; - - /** - * Start video output. - * - * @param { AsyncCallback } callback - Callback used to return the result. - * @throws { BusinessError } 7400103 - Session not config. - * @throws { BusinessError } 7400201 - Camera service fatal error. - * @syscap SystemCapability.Multimedia.Camera.Core - * @since 20 - * @arkts 1.2 - */ - startWithCallback(callback: AsyncCallback): void; - - /** - * Start video output. - * - * @returns { Promise } Promise used to return the result. - * @throws { BusinessError } 7400103 - Session not config. - * @throws { BusinessError } 7400201 - Camera service fatal error. - * @syscap SystemCapability.Multimedia.Camera.Core - * @since 20 - * @arkts 1.2 - */ - startReturnsPromise(): Promise; - /** * Stop video output. * @@ -16676,7 +16648,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 */ stop(callback: AsyncCallback): void; @@ -16693,36 +16666,11 @@ declare namespace camera { * @returns { Promise } Promise 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 */ stop(): Promise; - /** - * @since 20 - * @arkts 1.2 - */ - overload stop { stopWithCallback, stopReturnsPromise }; - - /** - * Stop video output. - * - * @param { AsyncCallback } callback - Callback used to return the result. - * @syscap SystemCapability.Multimedia.Camera.Core - * @since 20 - * @arkts 1.2 - */ - stopWithCallback(callback: AsyncCallback): void; - - /** - * Stop video output. - * - * @returns { Promise } Promise used to return the result. - * @syscap SystemCapability.Multimedia.Camera.Core - * @since 20 - * @arkts 1.2 - */ - stopReturnsPromise(): Promise; - /** * Determine whether video mirror is supported. * @@ -16980,11 +16928,12 @@ 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 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'deferredVideoEnhancementInfo', callback: AsyncCallback): void; @@ -16996,7 +16945,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: 'deferredVideoEnhancementInfo', callback?: AsyncCallback): void; @@ -17019,7 +16969,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; @@ -17038,7 +16989,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; @@ -17057,7 +17009,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; @@ -17076,7 +17029,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; @@ -17099,7 +17053,8 @@ declare namespace camera { * @param { ErrorCallback } callback - Callback used to get the video 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; @@ -17118,122 +17073,11 @@ declare namespace camera { * @param { ErrorCallback } callback - Callback used to get the video 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; - /** - * @since 20 - * @arkts 1.2 - */ - overload on { onDeferredVideoEnhancementInfo, onFrameStart, onFrameEnd, onError }; - - /** - * 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 20 - * @arkts 1.2 - */ - onDeferredVideoEnhancementInfo(type: 'deferredVideoEnhancementInfo', 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 19 - * @arkts 1.2 - */ - onFrameStart(type: 'frameStart', 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 19 - * @arkts 1.2 - */ - onFrameEnd(type: 'frameEnd', 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 19 - * @arkts 1.2 - */ - onError(type: 'error', callback: ErrorCallback): void; - - /** - * @since 20 - * @arkts 1.2 - */ - overload off { offDeferredVideoEnhancementInfo, offFrameStart, offFrameEnd, offError }; - - /** - * 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 20 - * @arkts 1.2 - */ - offDeferredVideoEnhancementInfo(type: 'deferredVideoEnhancementInfo', 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 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 video output errors. - * @syscap SystemCapability.Multimedia.Camera.Core - * @since 20 - * @arkts 1.2 - */ - offError(type: 'error', callback?: ErrorCallback): void; - /** * Gets the current preconfig type if you had already call preconfig interface. * @@ -17302,188 +17146,77 @@ declare namespace camera { } /** - * Video capability object + * Metadata object type. * - * @typedef VideoCapability + * @enum { int } * @syscap SystemCapability.Multimedia.Camera.Core - * @systemapi - * @since 20 + * @since 10 + */ + /** + * Metadata object type. + * + * @enum { int } + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since arkts {'1.1':'19','1.2':'20'} * @arkts 1.1&1.2 */ - interface VideoCapability { + enum MetadataObjectType { /** - * Determine whether BFrame is supported. + * Face detection type. * - * @returns { boolean } Is BFrame supported. - * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core - * @systemapi - * @since 20 + * @since 10 + */ + /** + * Face detection type. + * + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since arkts {'1.1':'19','1.2':'20'} * @arkts 1.1&1.2 */ - isBFrameSupported(): boolean; - } + FACE_DETECTION = 0, - /** - * Movie settings object - * - * @typedef MovieSettings - * @syscap SystemCapability.Multimedia.Camera.Core - * @systemapi - * @since 20 - * @arkts 1.1&1.2 - */ - interface MovieSettings { /** - * Movie codec type. + * Human body detection type. * - * @type { VideoCodecType } * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 20 + * @since arkts {'1.1':'13','1.2':'20'} * @arkts 1.1&1.2 */ - videoCodec: VideoCodecType; + HUMAN_BODY = 1, /** - * Video rotation. + * Cat face detection type. * - * @type { ?ImageRotation } * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 20 + * @since arkts {'1.1':'13','1.2':'20'} * @arkts 1.1&1.2 */ - rotation?: ImageRotation; + CAT_FACE = 2, /** - * Movie location. + * Cat body detection type. * - * @type { ?Location } * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 20 + * @since arkts {'1.1':'13','1.2':'20'} * @arkts 1.1&1.2 */ - location?: Location; + CAT_BODY = 3, /** - * Configure whether to enable B-frame, default false. + * Dog face detection type. * - * @type { ?boolean } * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 20 + * @since arkts {'1.1':'13','1.2':'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. - * - * @enum { int } - * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 - */ - /** - * Metadata object type. - * - * @enum { int } - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since arkts {'1.1':'19','1.2':'20'} - * @arkts 1.1&1.2 - */ - enum MetadataObjectType { - /** - * Face detection type. - * - * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 - */ - /** - * Face detection type. - * - * @syscap SystemCapability.Multimedia.Camera.Core - * @atomicservice - * @since arkts {'1.1':'19','1.2':'20'} - * @arkts 1.1&1.2 - */ - FACE_DETECTION = 0, - - /** - * Human body detection type. - * - * @syscap SystemCapability.Multimedia.Camera.Core - * @systemapi - * @since arkts {'1.1':'13','1.2':'20'} - * @arkts 1.1&1.2 - */ - HUMAN_BODY = 1, - - /** - * Cat face detection type. - * - * @syscap SystemCapability.Multimedia.Camera.Core - * @systemapi - * @since arkts {'1.1':'13','1.2':'20'} - * @arkts 1.1&1.2 - */ - CAT_FACE = 2, - - /** - * Cat body detection type. - * - * @syscap SystemCapability.Multimedia.Camera.Core - * @systemapi - * @since arkts {'1.1':'13','1.2':'20'} - * @arkts 1.1&1.2 - */ - CAT_BODY = 3, - - /** - * Dog face detection type. - * - * @syscap SystemCapability.Multimedia.Camera.Core - * @systemapi - * @since arkts {'1.1':'13','1.2':'20'} - * @arkts 1.1&1.2 - */ - DOG_FACE = 4, + DOG_FACE = 4, /** * Dog body detection type. @@ -17806,8 +17539,8 @@ declare namespace camera { /** * Metadata object for face. * - * @extends MetadataObject * @typedef MetadataFaceObject + * @extends MetadataObject * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi * @since arkts {'1.1':'13','1.2':'20'} @@ -17902,8 +17635,8 @@ declare namespace camera { /** * Metadata object for human body. * - * @extends MetadataObject * @typedef MetadataHumanBodyObject + * @extends MetadataObject * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi * @since arkts {'1.1':'13','1.2':'20'} @@ -17915,8 +17648,8 @@ declare namespace camera { /** * Metadata object for cat face. * - * @extends MetadataObject * @typedef MetadataCatFaceObject + * @extends MetadataObject * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi * @since arkts {'1.1':'13','1.2':'20'} @@ -17951,8 +17684,8 @@ declare namespace camera { /** * Metadata object for cat body. * - * @extends MetadataObject * @typedef MetadataCatBodyObject + * @extends MetadataObject * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi * @since arkts {'1.1':'13','1.2':'20'} @@ -17964,8 +17697,8 @@ declare namespace camera { /** * Metadata object for dog face. * - * @extends MetadataObject * @typedef MetadataDogFaceObject + * @extends MetadataObject * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi * @since arkts {'1.1':'13','1.2':'20'} @@ -18000,8 +17733,8 @@ declare namespace camera { /** * Metadata object for dog body. * - * @extends MetadataObject * @typedef MetadataDogBodyObject + * @extends MetadataObject * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi * @since arkts {'1.1':'13','1.2':'20'} @@ -18013,8 +17746,8 @@ declare namespace camera { /** * Metadata object for salient detection. * - * @extends MetadataObject * @typedef MetadataSalientDetectionObject + * @extends MetadataObject * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi * @since arkts {'1.1':'13','1.2':'20'} @@ -18107,7 +17840,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 */ start(callback: AsyncCallback): void; @@ -18128,40 +17862,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 */ start(): Promise; - /** - * @since 20 - * @arkts 1.2 - */ - overload start { startWithCallback, startReturnsPromise }; - - /** - * Start output metadata - * - * @param { AsyncCallback } callback - Callback used to return the result. - * @throws { BusinessError } 7400103 - Session not config. - * @throws { BusinessError } 7400201 - Camera service fatal error. - * @syscap SystemCapability.Multimedia.Camera.Core - * @since 20 - * @arkts 1.2 - */ - startWithCallback(callback: AsyncCallback): void; - - /** - * Start output metadata - * - * @returns { Promise } Promise used to return the result. - * @throws { BusinessError } 7400103 - Session not config. - * @throws { BusinessError } 7400201 - Camera service fatal error. - * @syscap SystemCapability.Multimedia.Camera.Core - * @since 20 - * @arkts 1.2 - */ - startReturnsPromise(): Promise; - /** * Stop output metadata * @@ -18175,7 +17880,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 */ stop(callback: AsyncCallback): void; @@ -18192,36 +17898,11 @@ declare namespace camera { * @returns { Promise } Promise 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 */ stop(): Promise; - /** - * @since 20 - * @arkts 1.2 - */ - overload stop { stopWithCallback, stopReturnsPromise }; - - /** - * Stop output metadata - * - * @param { AsyncCallback } callback - Callback used to return the result. - * @syscap SystemCapability.Multimedia.Camera.Core - * @since 20 - * @arkts 1.2 - */ - stopWithCallback(callback: AsyncCallback): void; - - /** - * Stop output metadata - * - * @returns { Promise } Promise used to return the result. - * @syscap SystemCapability.Multimedia.Camera.Core - * @since 20 - * @arkts 1.2 - */ - stopReturnsPromise(): Promise; - /** * Add metadata object types. * @@ -18271,7 +17952,8 @@ declare namespace camera { * @param { AsyncCallback> } callback - Callback used to get the available metadata objects. * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since 19 + * @since arkts {'1.1':'19','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'metadataObjectsAvailable', callback: AsyncCallback>): void; @@ -18290,7 +17972,8 @@ declare namespace camera { * @param { AsyncCallback> } callback - Callback used to get the available metadata objects. * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since 19 + * @since arkts {'1.1':'19','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'metadataObjectsAvailable', callback?: AsyncCallback>): void; @@ -18313,7 +17996,8 @@ declare namespace camera { * @param { ErrorCallback } callback - Callback used to get the video 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; @@ -18332,73 +18016,10 @@ declare namespace camera { * @param { ErrorCallback } callback - Callback used to get the video 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; - - /** - * @since 20 - * @arkts 1.2 - */ - overload on { onMetadataObjectsAvailable, onError }; - - /** - * 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 20 - * @arkts 1.2 - */ - onMetadataObjectsAvailable(type: 'metadataObjectsAvailable', 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 20 - * @arkts 1.2 - */ - onError(type: 'error', callback: ErrorCallback): void; - - /** - * @since 20 - * @arkts 1.2 - */ - overload off { offmetadataObjectsAvailable, offError }; - - /** - * 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 20 - * @arkts 1.2 - */ - offmetadataObjectsAvailable(type: 'metadataObjectsAvailable', 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 20 - * @arkts 1.2 - */ - offError(type: 'error', callback?: ErrorCallback): void; } /** @@ -18689,7 +18310,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; @@ -18701,8 +18323,9 @@ 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; /** @@ -18713,7 +18336,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; @@ -18725,7 +18349,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; @@ -18737,7 +18362,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'isoInfoChange', callback: AsyncCallback): void; @@ -18749,7 +18375,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'isoInfoChange', callback?: AsyncCallback): void; @@ -18761,7 +18388,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'exposureInfoChange', callback: AsyncCallback): void; @@ -18773,7 +18401,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'exposureInfoChange', callback?: AsyncCallback): void; @@ -18785,7 +18414,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'luminationInfoChange', callback: AsyncCallback): void; @@ -18797,7 +18427,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: 'luminationInfoChange', callback?: AsyncCallback): void; @@ -18848,7 +18479,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: 'tryAEInfoChange', callback: AsyncCallback): void; @@ -18860,180 +18492,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: 'tryAEInfoChange', callback?: AsyncCallback): void; - /** - * @since 20 - * @arkts 1.2 - */ - overload on { onError, onFocusStateChange, onIsoInfoChange, onExposureInfoChange, onLuminationInfoChange, - onTryAEInfoChange }; - - /** - * 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 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 20 - * @arkts 1.2 - */ - onIsoInfoChange(type: 'isoInfoChange', callback: AsyncCallback): void; - - /** - * Subscribes exposure info event callback. - * - * @param { 'exposureInfoChange' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the exposure info. - * @throws { BusinessError } 202 - Not System Application. - * @syscap SystemCapability.Multimedia.Camera.Core - * @systemapi - * @since 20 - * @arkts 1.2 - */ - onExposureInfoChange(type: 'exposureInfoChange', callback: AsyncCallback): void; - - /** - * Subscribes lumination info event callback. - * - * @param { 'luminationInfoChange' } type - Event type. - * @param { AsyncCallback } callback - Callback used to get the lumination info. - * @throws { BusinessError } 202 - Not System Application. - * @syscap SystemCapability.Multimedia.Camera.Core - * @systemapi - * @since 20 - * @arkts 1.2 - */ - onLuminationInfoChange(type: 'luminationInfoChange', callback: AsyncCallback): void; - - /** - * 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 20 - * @arkts 1.2 - */ - onTryAEInfoChange(type: 'tryAEInfoChange', callback: AsyncCallback): void; - - /** - * @since 20 - * @arkts 1.2 - */ - overload off { offError, offFocusStateChange, offIsoInfoChange, offExposureInfoChange, offLuminationInfoChange, - offTryAEInfoChange }; - - /** - * 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 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 20 - * @arkts 1.2 - */ - offIsoInfoChange(type: 'isoInfoChange', callback?: AsyncCallback): void; - - /** - * Unsubscribes from exposure info event callback. - * - * @param { 'exposureInfoChange' } type - Event type. - * @param { AsyncCallback } [callback] - Callback used to get the exposure info. - * @throws { BusinessError } 202 - Not System Application. - * @syscap SystemCapability.Multimedia.Camera.Core - * @systemapi - * @since 20 - * @arkts 1.2 - */ - offExposureInfoChange(type: 'exposureInfoChange', callback?: AsyncCallback): void; - - /** - * Unsubscribes from lumination info event callback. - * - * @param { 'luminationInfoChange' } type - Event type. - * @param { AsyncCallback } [callback] - Callback used to get the lumination info. - * @throws { BusinessError } 202 - Not System Application. - * @syscap SystemCapability.Multimedia.Camera.Core - * @systemapi - * @since 20 - * @arkts 1.2 - */ - offLuminationInfoChange(type: 'luminationInfoChange', callback?: AsyncCallback): void; - - /** - * 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 20 - * @arkts 1.2 - */ - offTryAEInfoChange(type: 'tryAEInfoChange', callback?: AsyncCallback): void; - /** * Gets supported timelapse interval range. * @@ -19364,7 +18827,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: 'depthDataAvailable', callback: AsyncCallback): void; @@ -19376,7 +18840,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: 'depthDataAvailable', callback?: AsyncCallback): void; @@ -19388,7 +18853,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; @@ -19400,73 +18866,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: 'error', callback?: ErrorCallback): void; - - /** - * @since 20 - * @arkts 1.2 - */ - overload on { onDepthDataAvailable, onError }; - - /** - * 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 20 - * @arkts 1.2 - */ - onDepthDataAvailable(type: 'depthDataAvailable', 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 20 - * @arkts 1.2 - */ - onError(type: 'error', callback: ErrorCallback): void; - - /** - * @since 20 - * @arkts 1.2 - */ - overload off { offDepthDataAvailable, offError }; - - /** - * 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 20 - * @arkts 1.2 - */ - offDepthDataAvailable(type: 'depthDataAvailable', 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 20 - * @arkts 1.2 - */ - offError(type: 'error', callback?: ErrorCallback): void; } /**