Skip to main content

overwolf.logitech.arx API

An API for Logitech Arx Control features.

Methods Reference

Events Reference

Types Reference

init(identifier, friendlyName, callback)

Version added: 0.93

Initializes the Arx API.

ParameterTypeDescription
identifierstringID for the app that will be discovered by LGS
friendlyNamestringFriendly display name
callbackfunctionCallback with the result of the request

publishApp(indexFilename, callback)

Version added: 0.93

Publishes an entire app according to the folder set in the manifest file and/or optional sets in an index file.

ParameterTypeDescription
indexFilenamestringOptional file to use as index
callbackfunctionCallback with the result of the request

addFileAs(fileUrl, fileName, mimeType, callback)

Version added: 0.93

Adds a file using an overwolf-extension:// or overwolf-media:// url.

ParameterTypeDescription
fileUrlstringOverwolf url to add
fileNamestringFile name to add as
mimeTypestringOptional mime type
callbackfunctionCallback with the result of the request

addContentAs(base64Content, fileName, callback)

Version added: 0.93

Adds content from a base64 string.

ParameterTypeDescription
base64ContentstringBase64 string
fileNamestringFile name to add as
callbackfunctionCallback with the result of the request

addContentAs(content, fileName, mimeType, callback)

Version added: 0.93

Adds content from a byte array.

ParameterTypeDescription
contentByte[]Base64 string
fileNamestringFile name to add as
mimeTypestringOptional mime type
callbackfunctionCallback with the result of the request

addUtf8StringAs(stringContent, fileName, mimeType, callback)

Version added: 0.93

Adds content from a UTF8 string.

ParameterTypeDescription
stringContentstringUTF8 string
fileNamestringFile name to add as
mimeTypestringOptional mime type
callbackfunctionCallback with the result of the request

addImageFromBitmap(bitmap, width, height, fileName, callback)

Version added: 0.93

Add an image from a bitmap.

ParameterTypeDescription
bitmapByte[]A byte array representing a bitmap
widthintWidth of the bitmap
heightintHeight of the bitmap
fileNamestringFile name to add as
callbackfunctionCallback with the result of the request

setIndex(fileName, callback)

Version added: 0.93

Sets the index file of the website.

ParameterTypeDescription
fileNamestringFile to use as index
callbackfunctionCallback with the result of the request

setTagPropertyById(tagId, prop, newValue, callback)

Version added: 0.93

Sets a property of a tag by ID.

ParameterTypeDescription
tagIdstringID of the tag to set the property to
propstringName of the property to change
newValuestringNew value
fileNamestringFile name to add as
callbackfunctionCallback with the result of the request

setTagsPropertyByClass(tagsClass, prop, newValue, callback)

Version added: 0.93

Sets a property of a tag by class.

ParameterTypeDescription
tagsClassstringClass of the tag(s) to set the property to
propstringName of the property to change
newValuestringNew value
callbackfunctionCallback with the result of the request

setTagContentById(tagId, newContent, callback)

Version added: 0.93

Sets the content of a tag by ID.

ParameterTypeDescription
tagIdstringID of the tag to set the content to
newContentstringNew content
callbackfunctionCallback with the result of the request

setTagsContentByClass(tagsClass, newContent, callback)

Version added: 0.93

Sets the content of a tag by ID.

ParameterTypeDescription
tagsClassstringClass of the tag(s) to set the content to
newContentstringNew content
callbackfunctionCallback with the result of the request

shutdown()

Version added: 0.93

Shuts down the API.

onEvent

Version added: 0.93

An Arx event sent with a [Logitech.Arx.Event.Data] object.

onError

Version added: 0.93

Triggered when an error occurs, sent with an error code.

Logitech.Arx.Event.Data Object

Version added: 0.93

Describes an Arx event.

ParameterTypeDescription
eventTypeintType code of the event
eventTypeStringstringType name of the event
eventValueintValue code of the event
eventValueStringstringValue string on the event
eventArgstringArgument of the event
contextIntPtrContext of the event