Click or drag to resize
Ranorex

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
Syntax
public virtual void MockGps(
	double latitude,
	double longitude
)

Parameters

latitude
Type: SystemDouble
Latitude in decimal format.
longitude
Type: SystemDouble
Longitude in decimal format.
Exceptions
ExceptionCondition
ActionFailedExceptionThrown if invoking the action failed.
See Also