Function: isWindowUsable()
function isWindowUsable(
win?: WindowUsabilityCandidate | null
): win is WindowUsabilityCandidate & {
isDestroyed: () => boolean;
webContents: { isDestroyed: () => boolean };
};
Defined in: main/window/windowValidation.ts:16
Determines whether the provided BrowserWindow is still usable.
Parametersβ
win?β
| WindowUsabilityCandidate
| null
Returnsβ
win is WindowUsabilityCandidate & { isDestroyed: () => boolean; webContents: { isDestroyed: () => boolean } }
True when the window and its webContents remain alive.