public abstract class RouteGenerationTask extends android.os.AsyncTask<RouteGenerationPackage,java.lang.Double,RoutePointPackage>
RouteGenerationTask.RouteGenerationEventListener
instances with
its subclasses.Modifier and Type | Class and Description |
---|---|
static interface |
RouteGenerationTask.RouteGenerationEventListener
Interface for signaling events and progress updates.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TAG |
Constructor and Description |
---|
RouteGenerationTask(RouteGenerationTask.RouteGenerationEventListener listener) |
Modifier and Type | Method and Description |
---|---|
protected RoutePointPackage |
doInBackground(RouteGenerationPackage... routeGenerationPackages) |
abstract RoutePointPackage |
generateRoute(android.content.SharedPreferences prefs,
GeoPoint origin,
GeoPoint dest,
java.util.List<GeoPoint> byWayOf) |
RouteGenerationTask.RouteGenerationEventListener |
getListener() |
protected void |
onCancelled() |
protected void |
onPostExecute(RoutePointPackage routePointPackage) |
protected void |
onPreExecute() |
protected void |
onProgressUpdate(java.lang.Double... values) |
void |
setAlertOnCreation(boolean value)
Sets whether or not a dialog box will be displayed when the route is calculated.
|
public static final java.lang.String TAG
public RouteGenerationTask(RouteGenerationTask.RouteGenerationEventListener listener)
public RouteGenerationTask.RouteGenerationEventListener getListener()
public void setAlertOnCreation(boolean value)
protected void onPreExecute()
onPreExecute
in class android.os.AsyncTask<RouteGenerationPackage,java.lang.Double,RoutePointPackage>
protected void onPostExecute(RoutePointPackage routePointPackage)
onPostExecute
in class android.os.AsyncTask<RouteGenerationPackage,java.lang.Double,RoutePointPackage>
protected void onProgressUpdate(java.lang.Double... values)
onProgressUpdate
in class android.os.AsyncTask<RouteGenerationPackage,java.lang.Double,RoutePointPackage>
protected void onCancelled()
onCancelled
in class android.os.AsyncTask<RouteGenerationPackage,java.lang.Double,RoutePointPackage>
protected RoutePointPackage doInBackground(RouteGenerationPackage... routeGenerationPackages)
doInBackground
in class android.os.AsyncTask<RouteGenerationPackage,java.lang.Double,RoutePointPackage>
public abstract RoutePointPackage generateRoute(android.content.SharedPreferences prefs, GeoPoint origin, GeoPoint dest, java.util.List<GeoPoint> byWayOf)