FileDocCategorySizeDatePackage
LocationRequestUnbundled.javaAPI DocAndroid 5.1 API4270Thu Mar 12 22:22:30 GMT 2015com.android.location.provider

LocationRequestUnbundled

public final class LocationRequestUnbundled extends Object
This class is an interface to LocationRequests for unbundled applications.

IMPORTANT: This class is effectively a public API for unbundled applications, and must remain API stable. See README.txt in the root of this package for more information.

Fields Summary
public static final int
ACCURACY_FINE
Returned by {@link #getQuality} when requesting the most accurate locations available.

This may be up to 1 meter accuracy, although this is implementation dependent.

public static final int
ACCURACY_BLOCK
Returned by {@link #getQuality} when requesting "block" level accuracy.

Block level accuracy is considered to be about 100 meter accuracy, although this is implementation dependent. Using a coarse accuracy such as this often consumes less power.

public static final int
ACCURACY_CITY
Returned by {@link #getQuality} when requesting "city" level accuracy.

City level accuracy is considered to be about 10km accuracy, although this is implementation dependent. Using a coarse accuracy such as this often consumes less power.

public static final int
POWER_NONE
Returned by {@link #getQuality} when requiring no direct power impact (passive locations).

This location request will not trigger any active location requests, but will receive locations triggered by other applications. Your application will not receive any direct power blame for location work.

public static final int
POWER_LOW
Returned by {@link #getQuality} when requesting low power impact.

This location request will avoid high power location work where possible.

public static final int
POWER_HIGH
Returned by {@link #getQuality} when allowing high power consumption for location.

This location request will allow high power location work.

private final android.location.LocationRequest
delegate
Constructors Summary
LocationRequestUnbundled(android.location.LocationRequest delegate)


      
        this.delegate = delegate;
    
Methods Summary
public longgetFastestInterval()
Get the fastest interval of this request, in milliseconds.

The system will never provide location updates faster than the minimum of {@link #getFastestInterval} and {@link #getInterval}.

return
fastest interval in milliseconds, exact

        return delegate.getFastestInterval();
    
public longgetInterval()
Get the desired interval of this request, in milliseconds.

return
desired interval in milliseconds, inexact

        return delegate.getInterval();
    
public intgetQuality()
Get the quality of the request.

return
an accuracy or power constant

        return delegate.getQuality();
    
public floatgetSmallestDisplacement()
Get the minimum distance between location updates, in meters.

return
minimum distance between location updates in meters

        return delegate.getSmallestDisplacement();
    
public java.lang.StringtoString()

      return delegate.toString();