FileDocCategorySizeDatePackage
IFusedLocationHardware.javaAPI DocAndroid 5.1 API16541Sat Mar 14 05:48:02 GMT 2015android.hardware.location

IFusedLocationHardware

public interface IFusedLocationHardware implements android.os.IInterface
Fused Location hardware interface. This interface is the basic set of supported functionality by Fused Hardware modules that offer Location batching capabilities.
hide

Fields Summary
Constructors Summary
Methods Summary
public intgetSupportedBatchSize()
Provides access to the batch size available in Hardware.

return
The batch size the hardware supports.

public voidinjectDeviceContext(int deviceEnabledContext)
Injects device context information into the Hardware subsystem.

param
deviceEnabledContext The context to inject.
throws
RuntimeException if injection is not supported.

public voidinjectDiagnosticData(java.lang.String data)
Injects diagnostic data into the Hardware subsystem.

param
data The data to inject.
throws
RuntimeException if injection is not supported.

public voidregisterSink(android.hardware.location.IFusedLocationHardwareSink eventSink)
Registers a sink with the Location Hardware object.

param
eventSink The sink to register.

public voidrequestBatchOfLocations(int batchSizeRequested)
Requests the most recent locations available in Hardware. This operation does not dequeue the locations, so still other batching events will continue working.

param
batchSizeRequested The number of locations requested.

public voidstartBatching(int id, android.location.FusedBatchOptions batchOptions)
Requests the Hardware to start batching locations.

param
id An Id associated with the request.
param
batchOptions The options required for batching.
throws
RuntimeException if the request Id exists.

public voidstopBatching(int id)
Requests the Hardware to stop batching for the given Id.

param
id The request that needs to be stopped.
throws
RuntimeException if the request Id is unknown.

public booleansupportsDeviceContextInjection()
Flags if the Hardware supports injection of device context information.

return
True if device context injection is supported, false otherwise.

public booleansupportsDiagnosticDataInjection()
Flags if the Hardware supports injection of diagnostic data.

return
True if data injection is supported, false otherwise.

public voidunregisterSink(android.hardware.location.IFusedLocationHardwareSink eventSink)
Unregisters a sink with the Location Hardware object.

param
eventSink The sink to unregister.

public voidupdateBatchingOptions(int id, android.location.FusedBatchOptions batchOptions)
Updates a batching operation in progress.

param
id The Id of the operation to update.
param
batchOptions The options to apply to the given operation.
throws
RuntimeException if the Id of the request is unknown.