Debian Codegraph @

tools/build-tool/data/android/integrated-services/download_urls/README.adoc

raw
1 ## download_urls
2
3 This service allows to download from `http` and `https` on Android.
4
5 Add it to your link:https://castle-engine.io/project_manifest[CastleEngineManifest.xml]:
6
7 [source,xml]
8 ----
9 <android>
10 <services>
11 <service name="download_urls" />
12 </services>
13 </android>
14 ----
15
16 Then you can use our Pascal API (https://castle-engine.io/manual_network.php[Download and TCastleDownload]) to download resources from `http` and `https` on Android, just like on other platforms.
17
18 Note: This service is automatically used if your project already declares that it needs to download `https` like this:
19
20 [source,xml]
21 ----
22 <dependencies>
23 <dependency name="Https" /> <!-- read https links -->
24 </dependencies>
25 ----
26
27 In you declare a dependency on `https`, there's no need to request the `download_urls` service on Android explicitly.