Build 1.0_r1(from source)

android.location
Interface ILocationManager

All Superinterfaces:
IInterface
All Known Implementing Classes:
ILocationManager.Stub

public interface ILocationManager
extends IInterface

System private API for talking with the location service.


Nested Class Summary
static class ILocationManager.Stub
          Local-side IPC implementation stub class.
 
Method Summary
 boolean addGpsStatusListener(IGpsStatusListener listener)
           
 void addProximityAlert(double latitude, double longitude, float distance, long expiration, PendingIntent intent)
           
 void addTestProvider(String name, boolean requiresNetwork, boolean requiresSatellite, boolean requiresCell, boolean hasMonetaryCost, boolean supportsAltitude, boolean supportsSpeed, boolean supportsBearing, int powerRequirement, int accuracy)
           
 void clearTestProviderEnabled(String provider)
           
 void clearTestProviderLocation(String provider)
           
 void clearTestProviderStatus(String provider)
           
 List getAllProviders()
           
 String getFromLocation(double latitude, double longitude, int maxResults, String language, String country, String variant, String appName, List<Address> addrs)
           
 String getFromLocationName(String locationName, double lowerLeftLatitude, double lowerLeftLongitude, double upperRightLatitude, double upperRightLongitude, int maxResults, String language, String country, String variant, String appName, List<Address> addrs)
           
 Location getLastKnownLocation(String provider)
           
 Bundle getProviderInfo(String provider)
           
 List getProviders(boolean enabledOnly)
           
 boolean isProviderEnabled(String provider)
           
 void removeGpsStatusListener(IGpsStatusListener listener)
           
 void removeProximityAlert(PendingIntent intent)
           
 void removeTestProvider(String provider)
           
 void removeUpdates(ILocationListener listener)
           
 void requestLocationUpdates(String provider, long minTime, float minDistance, ILocationListener listener)
           
 boolean sendExtraCommand(String provider, String command, Bundle extras)
           
 void setTestProviderEnabled(String provider, boolean enabled)
           
 void setTestProviderLocation(String provider, Location loc)
           
 void setTestProviderStatus(String provider, int status, Bundle extras, long updateTime)
           
 void updateProviders()
           
 
Methods inherited from interface android.os.IInterface
asBinder
 

Method Detail

getAllProviders

List getAllProviders()
                     throws RemoteException
Throws:
RemoteException

getProviders

List getProviders(boolean enabledOnly)
                  throws RemoteException
Throws:
RemoteException

updateProviders

void updateProviders()
                     throws RemoteException
Throws:
RemoteException

requestLocationUpdates

void requestLocationUpdates(String provider,
                            long minTime,
                            float minDistance,
                            ILocationListener listener)
                            throws RemoteException
Throws:
RemoteException

removeUpdates

void removeUpdates(ILocationListener listener)
                   throws RemoteException
Throws:
RemoteException

addGpsStatusListener

boolean addGpsStatusListener(IGpsStatusListener listener)
                             throws RemoteException
Throws:
RemoteException

removeGpsStatusListener

void removeGpsStatusListener(IGpsStatusListener listener)
                             throws RemoteException
Throws:
RemoteException

sendExtraCommand

boolean sendExtraCommand(String provider,
                         String command,
                         Bundle extras)
                         throws RemoteException
Throws:
RemoteException

addProximityAlert

void addProximityAlert(double latitude,
                       double longitude,
                       float distance,
                       long expiration,
                       PendingIntent intent)
                       throws RemoteException
Throws:
RemoteException

removeProximityAlert

void removeProximityAlert(PendingIntent intent)
                          throws RemoteException
Throws:
RemoteException

getProviderInfo

Bundle getProviderInfo(String provider)
                       throws RemoteException
Throws:
RemoteException

isProviderEnabled

boolean isProviderEnabled(String provider)
                          throws RemoteException
Throws:
RemoteException

getLastKnownLocation

Location getLastKnownLocation(String provider)
                              throws RemoteException
Throws:
RemoteException

getFromLocation

String getFromLocation(double latitude,
                       double longitude,
                       int maxResults,
                       String language,
                       String country,
                       String variant,
                       String appName,
                       List<Address> addrs)
                       throws RemoteException
Throws:
RemoteException

getFromLocationName

String getFromLocationName(String locationName,
                           double lowerLeftLatitude,
                           double lowerLeftLongitude,
                           double upperRightLatitude,
                           double upperRightLongitude,
                           int maxResults,
                           String language,
                           String country,
                           String variant,
                           String appName,
                           List<Address> addrs)
                           throws RemoteException
Throws:
RemoteException

addTestProvider

void addTestProvider(String name,
                     boolean requiresNetwork,
                     boolean requiresSatellite,
                     boolean requiresCell,
                     boolean hasMonetaryCost,
                     boolean supportsAltitude,
                     boolean supportsSpeed,
                     boolean supportsBearing,
                     int powerRequirement,
                     int accuracy)
                     throws RemoteException
Throws:
RemoteException

removeTestProvider

void removeTestProvider(String provider)
                        throws RemoteException
Throws:
RemoteException

setTestProviderLocation

void setTestProviderLocation(String provider,
                             Location loc)
                             throws RemoteException
Throws:
RemoteException

clearTestProviderLocation

void clearTestProviderLocation(String provider)
                               throws RemoteException
Throws:
RemoteException

setTestProviderEnabled

void setTestProviderEnabled(String provider,
                            boolean enabled)
                            throws RemoteException
Throws:
RemoteException

clearTestProviderEnabled

void clearTestProviderEnabled(String provider)
                              throws RemoteException
Throws:
RemoteException

setTestProviderStatus

void setTestProviderStatus(String provider,
                           int status,
                           Bundle extras,
                           long updateTime)
                           throws RemoteException
Throws:
RemoteException

clearTestProviderStatus

void clearTestProviderStatus(String provider)
                             throws RemoteException
Throws:
RemoteException

Build 1.0_r1(from source)

Please submit a feedback, bug or feature