๐EnkaNetwork
EnkaNetwork
- the class in which all interaction with enka.network takes place
In the example on the last page, we used this class without parameters. Let's figure out what parameters it takes
language
language
The language to be used in the localization of names (characters, artifacts, etc.). Default is ยซEN
ยป
Full list of supported languages - EN, RU, CHS, CHT, DE, ES, FR, ID, JP, KR, PT, TH, VI
caching
caching
The value of this parameter is to enable caching of responses. The default value is ยซtrue
ยป
false
- to disable caching
userAgent
In paragraph 3, the enka.network API documentation states that using custom userAgent is a good practice. Default is ยซenkanetwork@version
ยป
false
- to disable userAgent in requests
string
- to set a custom UserAgent in requests
uiAssetsPath
uiAssetsPath
The path to which the {icon}.png
string will be added. Default is ยซhttps://enka.network/ui/
ยป
You can also use another resource
And now we get links to UI assets from this resource
or you can specify the path to your local folder with ui assets
assets
assets
Params for AssetsUpdater
Last updated