Help Center/ Meeting/ Client SDK Reference/ Electron SDK/ APIs/ Common Configuration Management Objects/ Making Windows Transparent During Screen Sharing
Updated on 2024-09-13 GMT+08:00

Making Windows Transparent During Screen Sharing

Function

Up to four windows handles are supported (valid only for the Windows platform).

Function Prototype

setTransparentWnd(wndInfo: TransparentWndInfo, onSetTransparentWndResult?: (ret: SDKERR, reason: string) => void): voidsetTransparentWnd(wndInfo: TransparentWndInfo, onSetTransparentWndResult?: (ret: SDKERR, reason: string) => void): void

Request Parameters

Table 1 Input parameter description
Parameter Mandatory Type Description
wndInfo Yes TransparentWndInfo Window handle information.
onSetTransparentWndResult Yes (ret: SDKERR, reason: string) => void Callback of making windows transparent.
Table 2 TransparentWndInfo
Parameter Mandatory Type Description
handle Yes HWM_HWND * Window handles.
count Yes number Number of window handles.

Return Values

void

Callback Method Parameters

(ret: SDKERR, reason: string) => void

Table 3 Input parameter description
Parameter Type Description
ret For details about SDKERR, see Error Code Reference. Error code.
reason string Error description.