!598 avscreencapture支持pc端排除指定windowID窗口

Merge pull request !598 from 杰尼/master
This commit is contained in:
openharmony_ci 2024-05-13 03:06:08 +00:00 committed by Gitee
commit 64daaa7a61
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 17 additions and 0 deletions

View File

@ -86,5 +86,9 @@
{
"first_introduced": "12",
"name": "OH_AVScreenCapture_ExcludeContent"
},
{
"first_introduced": "12",
"name": "OH_AVScreenCapture_ContentFilter_AddWindowContent"
}
]

View File

@ -350,6 +350,19 @@ OH_AVSCREEN_CAPTURE_ErrCode OH_AVScreenCapture_ContentFilter_AddAudioContent(
OH_AVSCREEN_CAPTURE_ErrCode OH_AVScreenCapture_ExcludeContent(struct OH_AVScreenCapture *capture,
struct OH_AVScreenCapture_ContentFilter *filter);
/**
* @brief Add Window content to the screen capture content filter
* @syscap SystemCapability.Multimedia.Media.AVScreenCapture
* @param filter Pointer to an OH_AVScreenCapture_ContentFilter instance
* @param Pointer to windowIDs to be added
* @param windowCount to be added
* @return Returns AV_SCREEN_CAPTURE_ERR_OK if the execution is successful,
* otherwise returns a specific error code, refer to {@link OH_AVSCREEN_CAPTURE_ErrCode}
* @since 12
* @version 1.0
*/
OH_AVSCREEN_CAPTURE_ErrCode OH_AVScreenCapture_ContentFilter_AddWindowContent(
struct OH_AVScreenCapture_ContentFilter *filter, int32_t *windowIDs, int32_t windowCount);
#ifdef __cplusplus
}
#endif