Skip to main content

overwolf.games.launchers.events API

Returns an object with launcher related events and info-updates (Currently supported only for the League of Legends Launcher).

Methods Reference

Events Reference

Types Reference

How to register for features

The Launcher Events Provider keeps an info DB with information about the launcher state.

Updates for these entries can be received as events by registering an event listener using overwolf.games.launchers.events.onInfoUpdates().

It is also possible to get the currently available information using overwolf.games.launchers.events.getInfo().

setRequiredFeatures(launcherClassId, features, callback)

Version added: 0.126

Sets the required features from the provider.

ParameterTypeDescription
launcherClassIdintLauncher ID of interest
featuresstringString array of features to utilize
callback(Result: SetRequiredFeaturesResult) => voidReturns with the result

getInfo(launcherClassId, callback)

Version added: 0.126

Gets the current information for a given launcher id.

ParameterTypeDescription
launcherClassIdintThe launcher Id of interest
callback(Result: GetInfoResult) => voidReturns with the result

onInfoUpdates

Version added: 0.78

Fired when there are game info updates with a JSON object of the updates.

onNewEvents

Version added: 0.78

Fired when there are new game events with a JSON object of the events.

SetRequiredFeaturesResult Object

ParameterTypeDescription
successboolean
errorstringnull if success is true
supportedFeaturesstring[]an array of supported features

Example data: Success

{"success": true, "supportedFeatures": Array[1])}

GetInfoResult Object

ParameterTypeDescription
successboolean
errorstringnull if success is true
resobjectProvides the current game info

Example data: Success

{  
"success":true,
"res":{
"game_flow":{
"phase":"None"
},
"summoner_info":{
"account_id":"224346939",
"display_name":"itaygl",
"internal_name":"itaygl",
"profile_icon_id":"3902",
"summoner_id":"79489298",
"summoner_level":"31"
},
"game_info": {
"close_client_during_game": "0"
},
"credentials": {
"token": "cmlvdDpxb2hlamFqeHRzRUI4dGw1TUljSmJR",
"port": "65038"
}

}
}

Example data: Failure

{
"success": false,
"error": "Launcher isn't running or the associated game isn't running"
}