FileDocCategorySizeDatePackage
ProviderRequest.javaAPI DocAndroid 5.1 API3008Thu Mar 12 22:22:30 GMT 2015com.android.internal.location

ProviderRequest

public final class ProviderRequest extends Object implements android.os.Parcelable
hide

Fields Summary
public boolean
reportLocation
Location reporting is requested (true)
public long
interval
The smallest requested interval
public List
locationRequests
A more detailed set of requests.

Location Providers can optionally use this to fine tune location updates, for example when there is a high power slow interval request and a low power fast interval request.

public static final Parcelable.Creator
CREATOR
Constructors Summary
public ProviderRequest()


       
Methods Summary
public intdescribeContents()


    
       
        return 0;
    
public java.lang.StringtoString()

        StringBuilder s = new StringBuilder();
        s.append("ProviderRequest[");
        if (reportLocation) {
            s.append("ON");
            s.append(" interval=");
            TimeUtils.formatDuration(interval, s);
        } else {
            s.append("OFF");
        }
        s.append(']");
        return s.toString();
    
public voidwriteToParcel(android.os.Parcel parcel, int flags)

        parcel.writeInt(reportLocation ? 1 : 0);
        parcel.writeLong(interval);
        parcel.writeInt(locationRequests.size());
        for (LocationRequest request : locationRequests) {
            request.writeToParcel(parcel, flags);
        }