ActiveGameInfo
Electron APIs / overlay / ActiveGameInfo
Info about the currently running game.
Combines general game metadata, window information, and input interception state, allowing the overlay to assess readiness and manage behavior accordingly.
Example
const activeGameInfo = overlay.getActiveGameInfo();
if (activeGameInfo?.gameInfo) {
console.log(`The active game is ${activeGameInfo.gameInfo.title}`);
}
Properties
Property | Modifier | Type | Description |
---|---|---|---|
gameInfo | readonly | GameInfo | Information about the currently running game. See GameInfo. |
gameInputInfo | readonly | GameInputInterception | Input interception state between the overlay and the game. See GameInputInterception. |
gameWindowInfo | readonly | GameWindowInfo | Window-specific details for the running game. See GameWindowInfo. |