com.nutiteq.location
Interface LocationSource

All Known Implementing Classes:
AndroidGPSProvider, BluetoothProvider, CellIdLocationProvider, LocationAPIProvider, MotorolaCellIdLocationProvider, SonyEricssonCellIdLocationProvider

public interface LocationSource

Coordinates data source for LocationMarker.


Field Summary
static int STATUS_CANT_LOCATE
           
static int STATUS_CONNECTED
           
static int STATUS_CONNECTING
           
static int STATUS_CONNECTION_LOST
           
 
Method Summary
 void addLocationListener(LocationListener listener)
          Add listener for location coordinates
 WgsPoint getLocation()
           
 LocationMarker getLocationMarker()
          Get location marker used on screen
 int getStatus()
          Get status code for location source.
 void quit()
          Quit location polling
 void setLocationMarker(LocationMarker marker)
          Set location marker where to push location updates
 void start()
          Start location polling
 

Field Detail

STATUS_CONNECTING

static final int STATUS_CONNECTING
See Also:
Constant Field Values

STATUS_CONNECTED

static final int STATUS_CONNECTED
See Also:
Constant Field Values

STATUS_CONNECTION_LOST

static final int STATUS_CONNECTION_LOST
See Also:
Constant Field Values

STATUS_CANT_LOCATE

static final int STATUS_CANT_LOCATE
See Also:
Constant Field Values
Method Detail

getStatus

int getStatus()
Get status code for location source.

Returns:
status code

getLocation

WgsPoint getLocation()

setLocationMarker

void setLocationMarker(LocationMarker marker)
Set location marker where to push location updates

Parameters:
marker - marker displayed on screen

getLocationMarker

LocationMarker getLocationMarker()
Get location marker used on screen

Returns:
associated location marker

start

void start()
Start location polling


quit

void quit()
Quit location polling


addLocationListener

void addLocationListener(LocationListener listener)
Add listener for location coordinates

Parameters:
listener - listener to be added