getWindowAppIcon method
@hidden(iOS)
@brief Gets application window preview thumbnail for screen sharing.
@region Screen Sharing
@author liyi.000
@param sourceId ID of the screen-sharing object. You can get the ID from ByteRTCScreenCaptureSourceInfo returned by calling getScreenCaptureSourceList{@link #ByteRTCEngine#getScreenCaptureSourceList}.
@param width Maximum width of the App icon. The width is always equal to the height. SDK will set the height and width to the smaller value if the given values are unequal. RTC will return nullptr if you set the value with a number out of the valid range, 32, 256. The default size is 100 x 100.
@param height Maximum height of the app icon. Refer to the note for width.
@return Application icon thumbnail. You can call this API when the item to be shared is an application. If not, the return value will be nullptr.
Implementation
FutureOr<ByteRTCImage> getWindowAppIcon(
intptr_t sourceId, int width, int height) async {
return await nativeCall(
'getWindowAppIcon:width:height:', [sourceId, width, height]);
}