getScreenCaptureSources method
Get a list of screens or windows in a screen.
Available since: 3.1.0 Description: Get a list of screens or windows in a screen. Restrictions: Only support in Windows/macOS.
thumbnailWidthGet the thumbnail width corresponding to the window, the thumbnail can be used to draw on the window selection interface. (unit is pixel)thumbnailHeightGet the thumbnail height corresponding to the window, the thumbnail can be used to draw on the window selection interface. (unit is pixel)iconWidthGet the width of the icon corresponding to the program. (unit is pixel)iconHeightGet the height of the icon corresponding to the program. (unit is pixel)- Returns List of capture source info objects.
Implementation
Future<List<ZegoScreenCaptureSourceInfo>> getScreenCaptureSources(
int thumbnailWidth,
int thumbnailHeight,
int iconWidth,
int iconHeight) async {
return await ZegoExpressImpl.instance.getScreenCaptureSources(
thumbnailWidth, thumbnailHeight, iconWidth, iconHeight);
}