public class FusedLocationHardwareSink extends Object
Default implementations allow new methods to be added without crashing clients compiled against an old library version.
Constructor and Description |
---|
FusedLocationHardwareSink() |
Modifier and Type | Method and Description |
---|---|
void |
onCapabilities(int capabilities)
Called when capabilities are available from the FLP HAL.
|
void |
onDiagnosticDataAvailable(String data)
Called when diagnostic data is available from the FLP HAL.
|
void |
onLocationAvailable(Location[] locations)
Called when one or more locations are available from the FLP
HAL.
|
void |
onStatusChanged(int status)
Called when the status changes in the underlying FLP HAL
implementation (the ability to compute location).
|
public void onLocationAvailable(Location[] locations)
public void onDiagnosticDataAvailable(String data)
public void onCapabilities(int capabilities)
capabilities
- A bitmask of capabilities defined in
fused_location.h.public void onStatusChanged(int status)
FusedLocationHardware.getVersion()
).status
- One of FLP_STATUS_LOCATION_AVAILABLE or
FLP_STATUS_LOCATION_UNAVAILABLE as defined in
fused_location.h.