Android SDK change log from version 2.1.0 to version 2.2.0

com.skobbler.ngx.reversegeocode

Added class:SKReverseGeocoderManager

com.skobbler.ngx

Removed classes:

/**
* Class storing information about the application
* ( application name - app name from strings.xml and application version - android:versionName from manifest file).
**/
SKAppInfo

SKMaps

Removed methods:

/**
* Gets a mapping between place type (subcategory) ids 
* and the corresponding place type data objects
**/
(Map<Integer, SKPOIData>) getpoidatamap()

SKMapInitSettings

Removed methods:

/**
* Return app information.  
**/
SKAppInfo getAppInfo()

/**
* Set app information. 
**/
void setAppInfo(SKAppInfo)

Added methods:

/**
* Return the name of the application that uses SKMaps.
**/
String getAppName()

/**
* Returns the version of the application that uses SKMaps.
**/
String getAppVersion()

/**
* Sets the name of the application that uses SKMaps.
**/
void setAppName(String)

/**
* Sets the version of the application that uses SKMaps.
**/
void setAppVersion(String)

com.skobbler.ngx.map

Added classes:

/**
* Stores information about the annotation animation settings.
**/
SKAnimationSettings

/**
* The type of animation for the poi
**/
SKAnimationSettings.SKAnimationType

/**
* Types of easing curves (study http://easings.net/ or related literature for more details)
**/
SKAnimationSettings.SKEasingType

/**
* Specifies types of orientation for the phone.
**/
SKMapSurfaceView.SKOrientationType

/**
* Stores the pulse animation settings.
**/
SKPulseAnimationSettings

SKAnnotation

Removed methods:

/**
* Returns the screen coordinates for the annotation.
**/
SKScreenPoint getScreenPoint()

/**
* Gets the text that is displayed with the annotation
**/
SKAnnotationText getText()

/**
* The screenPoint where the annotation should be added.
**/
void setScreenPoint(SKScreenPoint)

/**
* Sets the text that is displayed with the annotation
**/
void setText(SKAnnotationText)

Added methods:

String toString()

Removed fields:

int SK_ANNOTATION_TYPE_GPX_WAY_POINT

int SK_ANNOTATION_TYPE_HOME

int SK_ANNOTATION_TYPE_MATCHED_DANGER_ZONE_2D

int SK_ANNOTATION_TYPE_MATCHED_DANGER_ZONE_3D

int SK_ANNOTATION_TYPE_MOBILE_MATCHED_SPEED_CAM_2D

int SK_ANNOTATION_TYPE_MOBILE_MATCHED_SPEED_CAM_3D

int SK_ANNOTATION_TYPE_MOBILE_UNMATCHED_SPEED_CAM_2D

int SK_ANNOTATION_TYPE_MOBILE_UNMATCHED_SPEED_CAM_3D

int SK_ANNOTATION_TYPE_STATIC_MATCHED_SPEED_CAM_2D

int SK_ANNOTATION_TYPE_STATIC_MATCHED_SPEED_CAM_3D

int SK_ANNOTATION_TYPE_STATIC_UNMATCHED_SPEED_CAM_2D

int SK_ANNOTATION_TYPE_STATIC_UNMATCHED_SPEED_CAM_3D

int SK_ANNOTATION_TYPE_UNMATCHED_DANGER_ZONE_2D

int SK_ANNOTATION_TYPE_UNMATCHED_DANGER_ZONE_3D

int SK_ANNOTATION_TYPE_WORK

SKAnnotationView

Removed methods:

/**
* Returns the bitmap size.
**/
int getProperSize()

/**
* Sets the bitmap size (value must be a power of 2).
**/
void setProperSize(int)

Added methods:

/**
* Returns the height of the image.
**/
int getHeight()

/**
* Returns the width of the image.
**/
int getWidth()

/**
* Sets the height of the image.
**/
void setHeight(int)

/**
* Sets the width of the image.
**/
void setWidth(int)

String toString()

SKCalloutView

Added constructors:

SKCalloutView(Context)

Removed methods:

/**
* Modify the popup's position on the screen
**/
void changePosition(float,float, float)

void dispatchDraw(Canvas)

/**
* Get the view contained in the popup
**/
View getContainedView()

/**
* Get the distance between the screen point and the top edge of the popup
**/
float getPointToTopDistance()

Added methods:

/**
* Get callout GPS coordinates.
**/
SKCoordinate getCoordinates()

/**
* Get vertical offset between the point and the bottom of the callout
**/
float getVerticalOffset()

/**
* Hide the callout.
**/
void hide()

/**
* Modify view position and resize it if needed
**/
void redraw()

/**
* Modify the callout's position on the screen
**/
void repositionView()

/**
* Set a custom view for the whole callout.
**/
SKCalloutView setCustomView(View)

/**
* Sets the string value of the description TextView.
**/
SKCalloutView setDescription(String)

/**
* Set description color
**/
SKCalloutView setDescriptionTextColor(int)

/**
* Set description text size
**/
SKCalloutView setDescriptionTextSize(float)

/**
* Sets the typeface and style in which the text should be displayed, and turns on the fake bold and italic bits in the Paint if the Typeface that you provided does not have all the bits in the style that you specified.
**/
SKCalloutView setDescriptionTypeface(Typeface, int)

/**
* Sets a drawable as the content of the left image.
**/
SKCalloutView setLeftImage(Drawable)

void setMapViewHolder(SKMapViewHolder)

/**
* Register a callback to be invoked when the left image is clicked.
**/
SKCalloutView setOnLeftImageClickListener(OnClickListener)

/**
* Register a callback to be invoked when the right image is clicked.
**/
SKCalloutView setOnRightImageClickListener(OnClickListener)

/**
* Register a callback to be invoked when the text area is clicked.
**/
SKCalloutView setOnTextClickListener(OnClickListener)

/**
* Sets a drawable as the content of the right image.
**/
SKCalloutView setRightImage(Drawable)

/**
* Sets the string value of the title TextView.
**/
SKCalloutView setTitle(String)

/**
* Set title color
**/
SKCalloutView setTitleTextColor(int)

/**
Set title text size
**/
SKCalloutView setTitleTextSize(float)

/**
* Sets the typeface and style in which the text should be displayed, and turns on the fake bold and italic bits in the Paint if the Typeface that you provided does not have all the bits in the style that you specified.
**/
SKCalloutView setTitleTypeface(Typeface, int)

/**
* Specify an offset between the callout and y coordinate
**/
SKCalloutView setVerticalOffset(float)

/**
* Set the background color of the view
**/
SKCalloutView setViewColor(int)

/**
* Show the callout on map at the specified coordinates.
**/
void showAtLocation(SKCoordinate, boolean)

SKMapPOI

Removed constructors:

/**
* Creates a SKMapPOI
**/
SKMapPOI(SKPOICategory, int, String, SKCoordinate, List<SKSearchResultParent>)

Added constructors:

/**
* Creates a SKMapPOI
**/
SKMapPOI(int, int, String, SKCoordinate, ArrayList<SKSearchResultParent>)

/**
* Creates a SKMapPOI
**/
SKMapPOI(int, String, SKCoordinate, ArrayList<SKSearchResultParent>)

Removed methods:

/**
* Return the texure id.
**/
int getTextureID()

/**
* Sets the texture ID.
**/
void setTextureID(int)

Added methods:

String toString()

SKMapScaleView

Removed methods:

/**
* Draw the views components
**/
void draw(Canvas)

/**
* Sets the scale reference value (distance in meters between two points on the screen 200px apart - this value is used as reference when rendering the scale).
**/
void setScaleReferenceValue(double)

Added methods:

void onDraw(Canvas)

/**
* Sets the border color for the scale view.
**/
void setBorderColor(int)

/**
* Sets the lighter color for the scale view.
**/
void setFadeOutEnabled(boolean)

/**
* Shows the map scale and starts the timer for it to be hidden again after 5 secs.
**/
void showScaleBar()

Removed fields:

/**
* Number of pixels for scale
**/
float PIX_SCALE

SKMapSettings

Added methods:

/**
* Returns if map poi icons are show on the map.
**/
boolean isMapPoiIconsShown()

/**
* Sets if map poi icons are shown on the map.
**/
void setMapPoiIconsShown(boolean)

SKMapSurfaceListener

Removed methods:

/**
* Notifies when inertia animation are finished.
**/
void onAnimationsFinished(SKAnimationType,boolean)

SKMapSurfaceView

Removed methods:

/**
 * Renders a bitmap annotation at the specified GPS position
 **/
void addGpsBitmapPOI(int, Bitmap, SKCoordinate,int, int, int, int, int, int, int,SKAnnotationText)

/**
 * Renders a bitmap annotation at the specified screen position
 */
void addScreenBitmapPOI(int, Bitmap,SKScreenPoint, int, int, int, int, int, int, int,SKAnnotationText)

/**
 * De-selects the cluster element.
 */
void deselectClusterObjects()

/**
 * Drags the map with dx and dy.
 */
void drag(float, float)

/**
 * Gets the cluster location in mercator coordinates
 */
int[] getClusterLocation(int, int, int, boolean)

/**
 * Gets closest custom POI from point(screenX, screenY) - using pixel distance
 */
int getCustomPoi(double, double, double)

List<SKDrawingOrder> getDrawingOrder()

/**
 * @return the current map angle/course
 */
float getMapAngle()

int getObjectAtLocation(SKCoordinate)

int getObjectAtScreenLocation(SKScreenPoint)

/**
 * Gets the current scale of the map.
 */
float getScale()

/**
 * Converts GPS coordinates to mercator coordinates.
 */
double[] gpsToMercator(double, double)

/**
 * Converts mercator coordinates to GPS coordinates.
 */
double[] mercatorToGps(double, double)

/**
 * Converts mercator to screen coordinates.
 */
double[] mercatorToScreen(double, double)

/**
 * Returns the place found by reverse geocoding the 
 * coordinates.
 */
SKSearchResult reverseGeocodePosition(SKCoordinate)

/**
 * Converts the given scale value to the equivalent
 * zoom level.
 */
float scaleToZoom(float)

/**
 * Converts screen to mercator coordinates.
 */
double[] screenToMercator(SKScreenPoint)

/**
 * Sets the active element in a cluster so that its 
 * icon is placed in front
 */
void setActiveElementInCluster(int, int, int,boolean)

/**
 * Disables the .onAnimationsFinished
 * (SKAnimationType, boolean) notification for 
 * the current animation type.
 */
void setAnimationNotification(SKAnimationType,SKAnimationNotificationType)

void setDrawingOrder(List<SKDrawingOrder>)

/**
 * Sets the map in navigation mode.
 */
void setInNavigationMode(boolean)

/**
 * Converts the given zoom level to the corresponding scale value.
 */
float zoomToScale(float)

Added methods:

/**
 * Returns the map bearing.
 **/
float getMapBearing()

/**
 * Applies a pulse animation to the current position according to the provided settings
 */
boolean setCCPPulseAnimation(SKPulseAnimationSettings)

/**
 * Shows or hides the accuracy circle around the current position
 */
void showAccuracyCircle(boolean)

/**
 * Stops the current position pulse animation
 */
boolean stopPulseAnimation()

Changed methods:

/**
 * Change in signature from SKAnnotationto
 * (SKAnnotation, SKAnimationSettings).
 *
 * Adds an annotation.
 **/
void addAnnotation(SKAnnotation, SKAnimationSettings)

/**
 * Change in return type from int[] toSKBoundingBox.
 *
 * Gets the bounding box of the current real reach area displayed on the map
 */
SKBoundingBox getRealReachBoundingBox()

/**
 * Change in signature from int toSKOrientationType.
 * Documentation changed from old to new.
 *
 * Passes the device screen orientation to the library.
 */
boolean reportNewDeviceOrientation(SKOrientationType)

Removed fields

/**
 * Constant used for left landscape
 **/
byte ORIENTATION_LANDSCAPE_LEFT

/**
 * Constant used for right landscape
 */
byte ORIENTATION_LANDSCAPE_RIGHT

/**
 * Constant used for portrait orientation
 */
byte ORIENTATION_PORTRAIT

/**
 * Constant used for portrait upside down orientation
 */
byte ORIENTATION_PORTRAIT_UPSIDEDOWN

/**
 * Constant used for unknown orientation
 */
byte ORIENTATION_UNKNOWN

SKMapViewHolder

Added methods:

/**
 * Returns the callout view.
 **/
SKCalloutView getCalloutView()

/**
 * Returns the map scale view .
 */
SKMapScaleView getScaleView()

/**
 * Returns if the map scale view is shown.
 */
boolean isScaleViewEnabled()

/**
 * Enables or disables the scale view.
 */
void setScaleViewEnabled(boolean)

/**
 * Set the alignment rules, horizontal and vertical padding in pixels for positioning the scale view.
 */
void setScaleViewMargins(int,int, int, int)

/**
 * Set horizontal and vertical padding in pixels for positioning the scale view.
 */
void setScaleViewPosition(int,int)

/**
 * Set the alignment rules, horizontal and vertical padding in pixels for positioning the scale view
 */
void setScaleViewPosition(int,int, int, int)

SKPOICluster

Added constructors:

/**
 * Constructor
 */
SKPOICluster(List<Integer>,List<SKMapPOI>, boolean)

SKScreenPoint

Added methods:

String toString()

com.skobbler.ngx.navigation

SKNavigationManager

Removed methods:

/**
 * Plays an audio warning to let the user know the current speed limit.
 */
void playSpeedLimit()

/**
 * Callback when a via point was reached
 */
void viaPointReachedCallback(int)

Added methods:

/**
 * When called, the current speed limit audio info will be provided inSKNavigationListener.onSignalNewAdvice(String[], boolean).
 */
void giveSpeedLimitAudioInfo()

/**
 * Returns if a navigation has been started.
 */
boolean isNavigationMode()

/**
 * Sets the position of the current position in navigation mode (2D) .
 */
void setMapNavigationPan(float,float)

/**
 * Return the positioner horizontal aligment.
 */
float getPositionerHorizontalAlignment()

/**
 * Set the positioner horizontal alignment.
 */
void setPositionerHorizontalAlignment(float)

SKNavigationState

Changed methods:

/**
 * Change in return type from int toSKStreetType.
 *
 * type of the current advice.
 */
SKStreetType getCurrentAdviceCurrentOsmStreetType()

/**
 * Change in return type from int toSKStreetType.
 *
 * et type of the current advice.
 */
SKStreetType getCurrentAdviceNextOsmStreetType()

/**
 * Change in return type from int toSKStreetType.
 *
 * street type of the next advice.
 */
SKStreetType getNextAdviceCurrentOsmStreetType()

/**
 * Change in return type from int toSKStreetType.
 *
 * Gets thenext OSM street type of the next advice.
 */
SKStreetType getNextAdviceNextOsmStreetType()

/**
 * Change in signature from int toSKStreetType.
 *
 * Sets the current OSM street type of the current advice.
 */
void setCurrentAdviceCurrentOsmStreetType(SKStreetType)

/**
 * Change in signature from int toSKStreetType.
 *
 * Sets the next OSM street type of the current advice.
 */
void setCurrentAdviceNextOsmStreetType(SKStreetType)

/**
 * Change in signature from int toSKStreetType.
 *
 * Sets the current OSM street type of the next advice.
 */
void setNextAdviceCurrentOsmStreetType(SKStreetType)

/**
 * Change in signature from int toSKStreetType.
 *
 * Sets the next OSM street type of the next advice.
 */
void setNextAdviceNextOsmStreetType(SKStreetType)

com.skobbler.ngx.positioner

SKPosition

Changed constructor from (latitude/longitude) to (LONGITUDE,LATITUDE)

Changed constructor:

/**
 * Documentation changed from old to new.
 *
 * Construct from an Android Location object
 */
SKPosition(Location)

/**
 * Documentation changed from old to new.
 *
 * Creates a point using given latitude and longitude.
 */
SKPosition(double, double)

/**
 * Documentation changed from old to new.
 *
 * Constructor
 */
SKPosition(double, double,double, double, double)

/**
 * Documentation changed from old to new.
 *
 * Constructor using all fields.
 */
SKPosition(double, double,double, double, double,double, double)

com.skobbler.ngx.routing

SKRouteAdvice

Added method:

/**
 * Sets the sentence used for generating the audio advice.
 */
void setAdviceInstruction(String)

SKRouteAlternativeSettings

Added methods:

/**
 * Gets the number of alternative routes to be calculted in this mode
 */
int getNumberOfRoutesInThisMode()

/**
 * Sets the number of alternative routes to be calculted in this mode
 */
void setNumberOfRoutesInThisMode(int)

com.skobbler.ngx.search

Removed classes:

/**
 * Online Geocoders Types
 */
SKOnelineSearchSettings.SKGeocoderType

SKOnelineSearchSettings

Removed constructor:

/**
 * Constructor
 */
SKOnelineSearchSettings(String,SKSearchMode, SKGeocoderType)

Added constructor:

/**
 * Constructor
 */
SKOnelineSearchSettings(String,SKSearchMode)

Removed methods:

/**
 * Returns the type of server that should be used for online search.
 */
SKGeocoderType getOnlineGeocoder()

/**
 * Sets the type of server that should be used for online search.
 */
void setOnlineGeocoder(SKGeocoderType)

SKSearchResult

Removed methods:

/**
 * Returns the texture id. It's available only for POI's.
 */
int getTextureID()

/**
 * Sets the texture for the poi.
 */
void setTextureID(int)

Added methods:

String toString()

SkSearchResultParent

Added methods:

String toString()

com.skobbler.ngx.versioning

SKMapUpdateListener

Changed methods:

/**
* Change in signature from void to int.
*
* Called when the map version is set to the library
*/
void onMapVersionSet(int)