diff --git a/api/@ohos.multimedia.media.d.ts b/api/@ohos.multimedia.media.d.ts index bdea21c75aecb8ed26b4fa849b98926f91258c35..104d1ba5a498a77480d6096e7c9120d9102e2990 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; /**