From 441395a8da84b9f0420906ac7c2957e1376fc804 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E4=B8=80=E9=B8=A3?= Date: Sat, 15 Mar 2025 17:22:50 +0800 Subject: [PATCH] add unsupport for screencapture MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 李一鸣 --- api/@ohos.multimedia.media.d.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/api/@ohos.multimedia.media.d.ts b/api/@ohos.multimedia.media.d.ts index bdea21c75a..104d1ba5a4 100755 --- a/api/@ohos.multimedia.media.d.ts +++ b/api/@ohos.multimedia.media.d.ts @@ -8332,6 +8332,17 @@ declare namespace media { * @syscap SystemCapability.Multimedia.Media.AVScreenCapture * @since 12 */ + /** + * Listens for AVScreenCaptureRecord info callback. + * @param { 'error' } type - Type of the AVScreenCaptureRecord event to listen for. + * @param { ErrorCallback } callback - Callback used to listen for the AVScreenCaptureRecord error return. + * @throws { BusinessError } 201 - permission denied. + * @throws { BusinessError } 801 - Capability not supported. + * @throws { BusinessError } 5400103 - IO error. Return by ErrorCallback. + * @throws { BusinessError } 5400105 - Service died. Return by ErrorCallback. + * @syscap SystemCapability.Multimedia.Media.AVScreenCapture + * @since 20 + */ on(type: 'error', callback: ErrorCallback): void; /** -- Gitee