public final class MockGeolocation extends Object
Constructor and Description |
---|
MockGeolocation(WebViewCore webViewCore) |
Modifier and Type | Method and Description |
---|---|
void |
setError(int code,
String message)
Set the error for the mock Geolocation service.
|
void |
setPermission(boolean allow) |
void |
setPosition(double latitude,
double longitude,
double accuracy)
Set the position for the mock Geolocation service.
|
void |
setUseMock()
Sets use of the mock Geolocation client.
|
public MockGeolocation(WebViewCore webViewCore)
public void setUseMock()
public void setPosition(double latitude, double longitude, double accuracy)
public void setError(int code, String message)
public void setPermission(boolean allow)