Snapdragon® Telematics Application Framework (TelAF) Interface Specification
|
This API is used to enable and disable the Positioning Control service.
The functions of this API are provided by the tafLocationSvc application service.
The following example illustrates how to bind to the Positioning Control service.
bindings: { clientExe.clientComponent.taf_locPosCtrl -> tafLocationSvc.taf_locPosCtrl }
To request that the Positioning Control service be activated, call taf_locPosCtrl_Request(). To release the Positioning Control service when finished with it, call taf_locPosCtrl_Release().
If the Positioning Control service is already active when taf_locPosCtrl_Request() is called, it will remain active. This happens if another application has already requested that the service be activated and not yet released the Positioning Control service.
The Positioning Control service need not be swititched off when an application calls taf_locPosCtrl_Release(). The service will be switched off only after all applications that have requested that the service be active have also released the Positioning Control service.