Class PathConfiguration.Location
-
- All Implemented Interfaces:
public final class PathConfiguration.LocationRepresents the location of the app's path configuration JSON file(s).
-
-
Field Summary
Fields Modifier and Type Field Description private final StringassetFilePathprivate final StringremoteFileUrl
-
Constructor Summary
Constructors Constructor Description PathConfiguration.Location(String assetFilePath, String remoteFileUrl)
-
Method Summary
Modifier and Type Method Description final StringgetAssetFilePath()The location of the locally bundled configuration file. final StringgetRemoteFileUrl()The location of the remote configuration file on your server. -
-
Method Detail
-
getAssetFilePath
final String getAssetFilePath()
The location of the locally bundled configuration file. Providing a local configuration file is highly recommended, so your app's configuration is available immediately at startup. This must be located in the app's
assetsdirectory. For example, a configuration located inassets/json/configuration.jsonwould specify the path without theassetsprefix:"json/configuration.json".
-
getRemoteFileUrl
final String getRemoteFileUrl()
The location of the remote configuration file on your server. This file must be publicly available via a GET request. The file will be automatically downloaded and cached at app startup. This location must be the full url of the JSON file, for example:
"https://web.example.com/demo/json/configuration.json"
-
-
-
-