| java.lang.Object | ||
| ↳ | BaseLoader | |
| ↳ | com.steerpath.sdk.meta.MetaLoader | |
MetaLoader connects to Steerpath Web API and fetches GeoJSON based on given MetaQuery object.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| class | MetaLoader.InvalidMetaQueryException | This exception will be thrown by MetaLoader if MetaQuery has illegal arguments. | |||||||||
| interface | MetaLoader.LoadListener | Callback for asynchronous load tasks. | |||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| static void |
load(MetaQuery query, MetaLoader.LoadListener listener)
Loads MetaFeatures from Steerpath server or from cache.
| ||||||||||
| static void |
removeListener(MetaLoader.LoadListener listener)
Remove listener that was previously set with load();
| ||||||||||
| static void |
validate(MetaQuery query)
Checks mandatory parameters and parameter combinations.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Loads MetaFeatures from Steerpath server or from cache. LoadListener will be invoked with MetaQueryResult once ready. Non-blocking method and can be executed from the main thread.
Remove listener that was previously set with load();
Checks mandatory parameters and parameter combinations. Does nothing if query is valid.
| MetaLoader.InvalidMetaQueryException | if any mandatory parameter is missing or paramater combination is invalid. |
|---|