 | AndroidAppMockGps Method |
Sets the GPS location to a specific latitude and longitude. Please enable (Settings -> Developer options) "Allow mock locations" and enable (Settings -> Location access) "GPS satellites" and disable "WiFi location".
Namespace:
Ranorex
Assembly:
Ranorex.Plugin.Mobile (in Ranorex.Plugin.Mobile.dll) Version: 12.7.4-git.38314c06
Syntaxpublic virtual void MockGps(
double latitude,
double longitude
)
Public Overridable Sub MockGps (
latitude As Double,
longitude As Double
)
Parameters
- latitude
- Type: SystemDouble
Latitude in decimal format. - longitude
- Type: SystemDouble
Longitude in decimal format.
Exceptions
See Also