Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.service.geolocation
Interface GeolocationService


public interface GeolocationService

Instances of GeolocationService allow to retrieve the current geolocation for SIP Communicator. You need to use this interface in order to implements geolocation services like GPS, GeoIP, etc...

Author:
Guillaume Schreiner

Method Summary
 void addGeolocationListener(GeolocationListener listener)
          Registers a listener that would get notifications any time the provider geolocation was succesfully refreshed.
 Map<String,String> getCurrentGeolocation()
          Returns the Geolocation currently set for the provider
 void removeGeolocationListener(GeolocationListener listener)
          Remove a listener that would get notifications any time the provider geolocation was succesfully refreshed.
 

Method Detail

getCurrentGeolocation

Map<String,String> getCurrentGeolocation()
Returns the Geolocation currently set for the provider

Returns:
the last Geolocation that we have set by a geolocation backend.

addGeolocationListener

void addGeolocationListener(GeolocationListener listener)
Registers a listener that would get notifications any time the provider geolocation was succesfully refreshed.

Parameters:
listener - the ProviderGeolocationPresenceListener to register

removeGeolocationListener

void removeGeolocationListener(GeolocationListener listener)
Remove a listener that would get notifications any time the provider geolocation was succesfully refreshed.

Parameters:
listener - the ProviderGeolocationPresenceListener to remove

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.