ios_getWindowAppIcon method
@platform ios
@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
Future<$p_i.ByteRTCImage?> ios_getWindowAppIcon(
$p_i.intptr_t sourceId, int width, int height) async {
$() => ($instance as $p_i.ByteRTCEngine)
.getWindowAppIcon(sourceId, width, height);
if (Platform.isIOS) {
return $();
} else {
throw UnsupportedError(
'Not Support Platform ${Platform.operatingSystem}');
}
}