com.sygic.sdk.map.object.MapRoute Class Reference
Inheritance diagram for com.sygic.sdk.map.object.MapRoute:
Collaboration diagram for com.sygic.sdk.map.object.MapRoute:

Classes

interface  RouteType
 

Public Member Functions

String toString ()
 
- Public Member Functions inherited from com.sygic.sdk.map.object.MapObject< RouteData >
int getMapObjectType ()
 
boolean equals (Object o)
 
int hashCode ()
 
void writeToParcel (final Parcel dest, final int flags)
 

Static Public Member Functions

static RouteData.Builder from (final @NonNull Route route)
 

Static Public Attributes

static final Creator< MapRouteCREATOR
 

Protected Member Functions

 MapRoute (final Parcel in)
 
- Protected Member Functions inherited from com.sygic.sdk.map.object.MapObject< RouteData >
 MapObject ( @NonNull final T objectData, final @MapObjectType int type, final int id, final int zIndex)
 
 MapObject (final Parcel in)
 

Detailed Description

MapObject in the shape of a route that can be displayed on a map. In order to display the route object on the map, the route object needs to be added to an com.sygic.sdk.map.MapView by calling com.sygic.sdk.map.MapView#addMapObject(MapObject)

Constructor & Destructor Documentation

◆ MapRoute()

com.sygic.sdk.map.object.MapRoute.MapRoute ( final Parcel  in)
protected

Member Function Documentation

◆ from()

static RouteData.Builder com.sygic.sdk.map.object.MapRoute.from ( final @NonNull Route  route)
static

Returns a builder able to create a route instance

By default the route is constructed with MapRoute.RouteType#Primary type

Parameters
RouteData describing the route
Returns
Builder for a MapRoute class

◆ toString()

String com.sygic.sdk.map.object.MapRoute.toString ( )

Member Data Documentation

◆ CREATOR

final Creator<MapRoute> com.sygic.sdk.map.object.MapRoute.CREATOR
static
Initial value:
= new Creator<MapRoute>() {
@Override
public MapRoute createFromParcel(final Parcel source) {
return new MapRoute(source);
}
@Override
public MapRoute[] newArray(final int size) {
return new MapRoute[size];
}
}

The documentation for this class was generated from the following file: