From 367a88775fc6c01159723d8e8858efa1f40147df Mon Sep 17 00:00:00 2001 From: w30076694 Date: Mon, 25 Aug 2025 09:45:58 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=BB=E8=BE=91=E7=9B=B8=E6=9C=BA=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: w30076694 --- api/@ohos.multimedia.camera.d.ts | 35 ++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/api/@ohos.multimedia.camera.d.ts b/api/@ohos.multimedia.camera.d.ts index 4ede7d69f0..70d30f9763 100644 --- a/api/@ohos.multimedia.camera.d.ts +++ b/api/@ohos.multimedia.camera.d.ts @@ -2967,6 +2967,41 @@ declare namespace camera { * @since 18 */ controlAuxiliary(auxiliaryType: AuxiliaryType, auxiliaryStatus: AuxiliaryStatus): Promise; + + /** + * Query whether physical camera orientation is variable under different fold status. + * + * @returns { boolean } Is physical camera orientation variable under different fold status. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 21 + * @arkts 1.1&1.2 + */ + isPhysicalCameraOrientationVariable(): boolean; + + /** + * Get physical camera orientation under current fold status. + * + * @returns { int } The physical camera orientation. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 21 + * @arkts 1.1&1.2 + */ + getPhysicalCameraOrientation(): int; + + /** + * Choose whether to use the physical camera orientation. + * + * @param { boolean } isUsed - Use physical camera orientation if TRUE. + * @throws { BusinessError } 7400102 - Operation not allowed. + * @throws { BusinessError } 7400201 - Camera service fatal error. + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 21 + * @arkts 1.1&1.2 + */ + usePhysicalCameraOrientation(isUsed: boolean): void; } /** -- Gitee