Skip to content

Commit 46ee4e3

Browse files
Site changes [skip-ci]
1 parent bc57829 commit 46ee4e3

File tree

6 files changed

+106
-0
lines changed

6 files changed

+106
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"elements": [
3+
{
4+
"description": "Get information about proxies for a specific url.",
5+
"examples": "",
6+
"name": "networkinfo.get_proxy_info",
7+
"parameters": [
8+
{
9+
"doc": "The url to get proxy configurations for\n",
10+
"name": "url",
11+
"types": [
12+
"string"
13+
]
14+
}
15+
],
16+
"returnvalues": [
17+
{
18+
"doc": "A list of proxies to try in order. Each proxy has three values\n type: direct (no proxy), http, socks\n host: proxy url\n port: proxy port number\n",
19+
"name": "table"
20+
}
21+
],
22+
"type": "FUNCTION"
23+
}
24+
],
25+
"info": {
26+
"api": "extension-network-info/networkinfo_api",
27+
"brief": "networkinfo",
28+
"description": "Functions to get information about the network configuration of the device.",
29+
"group": "EXTENSIONS",
30+
"language": "Lua",
31+
"name": "extension-network-info",
32+
"namespace": "networkinfo",
33+
"type": "Extension"
34+
}
35+
}

_data/refindex.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1465,6 +1465,33 @@
14651465
"type": "Extension",
14661466
"url": "/extension-ironsource/ironsource_api"
14671467
},
1468+
{
1469+
"branch": "alpha",
1470+
"filename": "extension-network-info_networkinfo",
1471+
"language": "Lua",
1472+
"name": "extension-network-info",
1473+
"namespace": "networkinfo",
1474+
"type": "Extension",
1475+
"url": "/extension-network-info/networkinfo_api"
1476+
},
1477+
{
1478+
"branch": "beta",
1479+
"filename": "extension-network-info_networkinfo",
1480+
"language": "Lua",
1481+
"name": "extension-network-info",
1482+
"namespace": "networkinfo",
1483+
"type": "Extension",
1484+
"url": "/extension-network-info/networkinfo_api"
1485+
},
1486+
{
1487+
"branch": "stable",
1488+
"filename": "extension-network-info_networkinfo",
1489+
"language": "Lua",
1490+
"name": "extension-network-info",
1491+
"namespace": "networkinfo",
1492+
"type": "Extension",
1493+
"url": "/extension-network-info/networkinfo_api"
1494+
},
14681495
{
14691496
"branch": "alpha",
14701497
"filename": "extension-odin_odin",
107 KB
Loading

extension-network-info/index.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
brief: This manual covers how to use the Network Info extension to get information about the network configuration of the device.
3+
github: https://github.com/defold/extension-network-info
4+
language: en
5+
layout: manual
6+
title: Network Info extension
7+
toc:
8+
- Network Info extension documentation
9+
- Installation
10+
- Example
11+
- Source code
12+
---
13+
14+
# Network Info extension documentation
15+
This extension provides functions to get information about the network configuration of the device.
16+
17+
18+
## Installation
19+
20+
To use Network Info extension in your Defold project, add a version of the Steam extension to your `game.project` dependencies from the list of available [Releases](https://github.com/defold/extension-network-info/releases). Find the version you want, copy the URL to ZIP archive of the release and add it to the project dependencies.
21+
22+
![](add-dependency.png)
23+
24+
Select `Project->Fetch Libraries` once you have added the version to `game.project` to download the version and make it available in your project.
25+
26+
## Example
27+
28+
[Refer to the example project](https://github.com/defold/extension-network-info/blob/master/example) to see an example of how the extension works.
29+
30+
31+
## Source code
32+
33+
The source code is available on [GitHub](https://github.com/defold/extension-network-info)
34+
## API reference
35+
[API Reference - networkinfo](/extension-network-info/networkinfo_api)
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
layout: api
3+
branch: stable
4+
ref: extension-network-info_networkinfo
5+
language: Lua
6+
title: API reference (extension-network-info)
7+
type: Extension
8+
---
9+
{% include anchor_headings.html html=content %}
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)