From d129de96a96beb474a44e7c46079830eb0bc9ba5 Mon Sep 17 00:00:00 2001 From: supeng Date: Tue, 18 Oct 2022 20:32:03 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=B8=E6=9C=BA=E6=A1=86=E6=9E=B6=E5=85=A8?= =?UTF-8?q?=E5=B1=80=E5=BC=80=E5=85=B3=E6=8E=A5=E5=8F=A3=E5=9B=9E=E5=90=88?= =?UTF-8?q?weekly?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: supeng --- api/@ohos.multimedia.camera.d.ts | 36 ++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/api/@ohos.multimedia.camera.d.ts b/api/@ohos.multimedia.camera.d.ts index fbe6c9ee52..596e921301 100644 --- a/api/@ohos.multimedia.camera.d.ts +++ b/api/@ohos.multimedia.camera.d.ts @@ -200,6 +200,32 @@ declare namespace camera { */ getSupportedOutputCapability(camera: CameraDevice): Promise; + /** + * Determine whether camera is muted. + * @return Is camera muted. + * @since 9 + * @syscap SystemCapability.Multimedia.Camera.Core + */ + isCameraMuted(): boolean; + + /** + * Determine whether camera mute is supported. + * @return Is camera mute supported. + * @since 9 + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + */ + isCameraMuteSupported(): boolean; + + /** + * Mute camera. + * @param mute Mute camera if TRUE, otherwise unmute camera. + * @since 9 + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + */ + muteCamera(mute: boolean): void; + /** * Creates a CameraInput instance by camera. * @param camera Camera device used to create the instance. @@ -344,6 +370,16 @@ declare namespace camera { * @syscap SystemCapability.Multimedia.Camera.Core */ on(type: 'cameraStatus', callback: AsyncCallback): void; + + /** + * Subscribes camera mute change event callback. + * @param type Event type. + * @param callback Callback used to get the camera mute change. + * @since 9 + * @syscap SystemCapability.Multimedia.Camera.Core + * @systemapi + */ + on(type: 'cameraMute', callback: AsyncCallback): void; } /** -- Gitee