From 4d55373332664ffa3cc4b13e2a78345257dd3998 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=87=E8=B6=85?= <524054420@qq.com> Date: Sun, 8 Jun 2025 11:20:26 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=B8=E6=9C=BA=E6=A1=86=E6=9E=B6=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E7=A7=BB=E5=8A=A8=E7=84=A6=E7=82=B9=E8=83=BD=E5=8A=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 文超 <524054420@qq.com> --- api/@ohos.multimedia.camera.d.ts | 37 ++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/api/@ohos.multimedia.camera.d.ts b/api/@ohos.multimedia.camera.d.ts index 25ecb3c3a2..30ffe14840 100644 --- a/api/@ohos.multimedia.camera.d.ts +++ b/api/@ohos.multimedia.camera.d.ts @@ -4864,6 +4864,18 @@ declare namespace camera { * @since 12 */ getZoomPointInfos(): Array; + + /** + * Checks whether zoom center point is supported. + * + * @returns { boolean } Is zoom center point supported. + * @throws { BusinessError } 202 - Not System Application. + * @throws { BusinessError } 7400103 - Session not config, only throw in session usage. + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 19 + */ + isZoomCenterPointSupported(): boolean; } /** @@ -4981,6 +4993,31 @@ declare namespace camera { * @since 11 */ unprepareZoom(): void; + + /** + * Gets current zoom center point. + * + * @returns { Point } The zoom center point + * @throws { BusinessError } 202 - Not System Application. + * @throws { BusinessError } 7400103 - Session not config, only throw in session usage. + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 19 + */ + getZoomCenterPoint(): Point; + + /** + * Sets the zoom center point. + * + * @param { Point } point - The point of zoom center. + * @throws { BusinessError } 202 - Not System Application. + * @throws { BusinessError } 7400101 - Parameter missing or parameter type incorrect. + * @throws { BusinessError } 7400103 - Session not config, only throw in session usage. + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + * @since 19 + */ + setZoomCenterPoint(point: Point): void; } /** -- Gitee