Skip to main content

overwolf.os API

Use this API for Operating System related functionalities.

Methods Reference

Types Reference

getRegionInfo(callback)

Version added: 0.132

Returns regional information about the user.

ParameterTypeDescription
callback(Result: GetRegionInfoResult) => voidReturns with the result

GetRegionInfoResult Object

ParameterTypeDescription
successbooleaninherited from the "Result" Object
errorstringinherited from the "Result" Object
statusstringdeprecated. For backward compatibility only
Reasonstringdeprecated. For backward compatibility only
infoRegionInfo ObjectRegion Info

Example data: Success

{ 
"success": true,
"info":
{
"date_format": "M/d/yyyy",
"time_format": "h:mm:ss tt",
"currency_symbol": "$",
"is_metric": false,
"name": "en-US"}
}
}

RegionInfo Object

ParameterTypeDescription
date_formatstring
time_formatstring
currency_symbolstring
is_metricboolean
namestring