Package 

Interface Location


  • 
    public interface Location
    
                        

    The 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 Unit enableGps() Enables GPS on the device.
      abstract Unit disableGps() Disables GPS on the device.
      abstract Unit setLocation(Double lat, Double lon) Sets current location.
      • Methods inherited from class com.kaspersky.kaspresso.device.location.Location

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • enableGps

         abstract Unit enableGps()

        Enables GPS on the device.

        Required Permissions: INTERNET

      • disableGps

         abstract Unit disableGps()

        Disables GPS on the device.

        Required Permissions: INTERNET