-
public interface LocationThe interface to work with device's location.
Required: Started AdbServer 1. Download a file "kaspresso/artifacts/adbserver-desktop.jar" 2. Start AdbServer => input in cmd "java jar path_to_file/adbserver-desktop.jar" Methods demanding to use AdbServer in the default implementation of this interface are marked. But nobody can't deprecate you to write implementation that doesn't require AdbServer.
-
-
Method Summary
Modifier and Type Method Description abstract UnitenableGps()Enables GPS on the device. abstract UnitdisableGps()Disables GPS on the device. abstract UnitsetLocation(Double lat, Double lon)Sets current location. -
-
Method Detail
-
disableGps
abstract Unit disableGps()
Disables GPS on the device.
Required Permissions: INTERNET
-
setLocation
abstract Unit setLocation(Double lat, Double lon)
Sets current location.
Required Permissions: INTERNET
-
-
-
-