getWindowAppIcon method

FutureOr getWindowAppIcon(
  1. intptr_t sourceId,
  2. int width,
  3. int height
)

@hidden(iOS) @brief 获取应用窗体所属应用的图标。 @region 屏幕共享 @author liyi.000 @param sourceId 屏幕共享对象的 ID,可通过 getScreenCaptureSourceList{@link #ByteRTCEngine#getScreenCaptureSourceList} 返回的ByteRTCScreenCaptureSourceInfo共享对象列表中获取。 @param width 最大宽度。返回的图标将是宽高相等的,输入的宽高不等时,取二者较小值。宽高范围为 32,256,超出该范围将返回 nullptr,默认输出 100 x 100 的图像。 @param height 最大高度。参见 width 的说明。 @return 应用图标。当屏幕共享对象为应用窗体时有效,否则返回 nullptr

Implementation

FutureOr<ByteRTCImage> getWindowAppIcon(
    intptr_t sourceId, int width, int height) async {
  return await nativeCall(
      'getWindowAppIcon:width:height:', [sourceId, width, height]);
}