public final class

MetaLoader

extends BaseLoader
java.lang.Object
   ↳ BaseLoader
     ↳ com.steerpath.sdk.meta.MetaLoader

Class Overview

MetaLoader connects to Steerpath Web API and fetches GeoJSON based on given MetaQuery object.

Summary

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

Public Methods

public static void load (MetaQuery query, MetaLoader.LoadListener listener)

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.

public static void removeListener (MetaLoader.LoadListener listener)

Remove listener that was previously set with load();

public static void validate (MetaQuery query)

Checks mandatory parameters and parameter combinations. Does nothing if query is valid.

Throws
MetaLoader.InvalidMetaQueryException if any mandatory parameter is missing or paramater combination is invalid.