Methods Summary |
---|
public int | getAccuracy()Returns a constant describing the horizontal accuracy returned
by this provider.
return mAccuracy;
|
public int | getPowerRequirement()Returns the power requirement for this provider.
return mPowerRequirement;
|
public boolean | hasMonetaryCost()Returns true if the use of this provider may result in a
monetary charge to the user, false if use is free. It is up to
each provider to give accurate information.
return mHasMonetaryCost;
|
public boolean | requiresCell()Returns true if the provider requires access to an appropriate
cellular network (e.g., to make use of cell tower IDs), false
otherwise.
return mRequiresCell;
|
public boolean | requiresNetwork()Returns true if the provider requires access to a
data network (e.g., the Internet), false otherwise.
return mRequiresNetwork;
|
public boolean | requiresSatellite()Returns true if the provider requires access to a
satellite-based positioning system (e.g., GPS), false
otherwise.
return mRequiresSatellite;
|
public void | setAccuracy(int accuracy)
mAccuracy = accuracy;
|
public void | setHasMonetaryCost(boolean hasMonetaryCost)
mHasMonetaryCost = hasMonetaryCost;
|
public void | setPowerRequirement(int powerRequirement)
mPowerRequirement = powerRequirement;
|
public void | setRequiresCell(boolean requiresCell)
mRequiresCell = requiresCell;
|
public void | setRequiresNetwork(boolean requiresNetwork)
mRequiresNetwork = requiresNetwork;
|
public void | setRequiresSatellite(boolean requiresSatellite)
mRequiresSatellite = requiresSatellite;
|
public void | setSupportsAltitude(boolean supportsAltitude)
mSupportsAltitude = supportsAltitude;
|
public void | setSupportsBearing(boolean supportsBearing)
mSupportsBearing = supportsBearing;
|
public void | setSupportsSpeed(boolean supportsSpeed)
mSupportsSpeed = supportsSpeed;
|
public boolean | supportsAltitude()Returns true if the provider is able to provide altitude
information, false otherwise. A provider that reports altitude
under most circumstances but may occassionally not report it
should return true.
return mSupportsAltitude;
|
public boolean | supportsBearing()Returns true if the provider is able to provide bearing
information, false otherwise. A provider that reports bearing
under most circumstances but may occassionally not report it
should return true.
return mSupportsBearing;
|
public boolean | supportsSpeed()Returns true if the provider is able to provide speed
information, false otherwise. A provider that reports speed
under most circumstances but may occassionally not report it
should return true.
return mSupportsSpeed;
|