com.vaadin.addon.touchkit.extensions
Interface PositionCallback


public interface PositionCallback

Callback interface containing methods called by the Geolocator extension when the result of an asynchronous geolocation request is available.


Method Summary
 void onFailure(int errorCode)
          Called when a geolocation request fails.
 void onSuccess(Position position)
          Called when a geolocation request succeeds.
 

Method Detail

onSuccess

void onSuccess(Position position)
Called when a geolocation request succeeds.

Parameters:
position - a Position object holding the position data.

onFailure

void onFailure(int errorCode)
Called when a geolocation request fails. See PositionError for the error code specifications.

Parameters:
errorCode - the error code for the failure.


Copyright © 2014 Vaadin Ltd. All rights reserved.