Overview
Electron APIs / Utility
This module provides utility methods for tracking and managing game-related events such as game launch, exit, and scanning for installed games. It is used to enable event-driven behavior based on a user's game activity.
Example
const utility: IOverwolfUtilityApi = new OverwolfUtility();
utility.trackGames({ includeUnsupported: true });
utility.on("game-launched", (gameInfo) => {
console.log("Game launched:", gameInfo.name);
});
utility.on("game-exit", (gameInfo) => {
console.log("Game exited:", gameInfo.name);
});
const installedGames = await utility.scan();
console.log("Installed games:", installedGames);
Interfaces
Interface | Description |
---|---|
IOverwolfUtilityApi | Defines the API for managing game launch and utility operations. |