| java.lang.Object | |
| ↳ | com.datalogic.device.location.LocationManager | 
The LocationManager class provides access to geo-location related methods of the device.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
This is the constructor of LocationManager. 
  
   | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Set the GPS location provider mode. 
  
   | |||||||||||
| 
  [Expand]
   Inherited Methods  | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
   
From class
  java.lang.Object
 | |||||||||||
This is the constructor of LocationManager.
| DeviceException | in case of error. | 
|---|
Set the GPS location provider mode.
 Note: on Android-Q onward, GPS and network sensors can't be toggled separately. For this reason any value
 but OFF is interpreted as the location mode is on.
 
| mode | LocationMode indicates the mode to use by the location provider. | 
        
|---|
int SUCCESS in case of success,
 otherwise a possible error code, matching one of the DeviceException error constants.| DeviceException | in case of error, when exceptions are enabled through the ErrorManager singleton.
 | 
        
|---|